:root {
  color-scheme: dark;
  --bg: #161311;
  --bg-low: #110d0c;
  --panel: rgba(31, 27, 25, 0.88);
  --panel-raised: rgba(35, 31, 29, 0.94);
  --panel-high: #2e2927;
  --field: #0f0b0a;
  --line: rgba(164, 140, 122, 0.28);
  --line-hot: rgba(255, 183, 125, 0.56);
  --text: #eae1dd;
  --muted: #ddc1ae;
  --dim: #a48c7a;
  --primary: #ffb77d;
  --orange: #ff8c00;
  --red: #ff5625;
  --gold: #ffd700;
  --success: #76e09a;
  --danger: #ffb4ab;
  --danger-strong: #ff6758;
  --mx: 50%;
  --my: 18%;
  font-family: "Montserrat", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 140, 0, 0.18), transparent 280px),
    radial-gradient(circle at calc(100% - var(--mx)) 74%, rgba(255, 86, 37, 0.1), transparent 330px),
    linear-gradient(180deg, #171210 0%, #130f0e 44%, #21150f 100%);
  overflow-x: hidden;
}

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

body::before {
  background:
    linear-gradient(180deg, rgba(255, 140, 0, 0.12), transparent 120px);
  mask-image: linear-gradient(to bottom, #000 0 72%, transparent 100%);
}

body::after {
  top: auto;
  height: 260px;
  background:
    linear-gradient(135deg, transparent 0 12%, rgba(255, 255, 255, 0.035) 12.2% 12.8%, transparent 13%),
    linear-gradient(45deg, transparent 0 20%, rgba(255, 183, 125, 0.05) 20.2% 20.8%, transparent 21%);
  opacity: 0.45;
  clip-path: polygon(0 64%, 5% 48%, 9% 56%, 13% 18%, 18% 70%, 22% 48%, 26% 62%, 31% 20%, 36% 73%, 42% 44%, 49% 66%, 55% 34%, 61% 70%, 69% 42%, 74% 58%, 80% 24%, 88% 70%, 94% 46%, 100% 68%, 100% 100%, 0 100%);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    conic-gradient(from 190deg at var(--mx) var(--my), rgba(255, 183, 125, 0.15), transparent, rgba(255, 86, 37, 0.1), transparent),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
  pointer-events: none;
  transition: background 160ms ease;
}

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

button,
textarea,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 12px clamp(16px, 5vw, 56px);
  border-bottom: 0;
  background: rgba(17, 13, 12, 0.88);
  box-shadow: 0 1px 0 rgba(255, 183, 125, 0.08);
  backdrop-filter: blur(16px);
}

.coast-page .topbar {
  background: rgba(17, 13, 12, 0.9);
  box-shadow: 0 1px 0 rgba(255, 183, 125, 0.08), 0 18px 70px rgba(0, 0, 0, 0.24);
}

.brand,
nav,
.hero-actions,
.dialog-actions,
.form-header,
.panel-title,
.review-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  min-width: 0;
}

.brand-logo {
  width: 82px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 140, 0, 0.36));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.92rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.intro {
  display: grid;
  gap: 18px;
  padding: clamp(32px, 6vh, 56px) 0 24px;
}

.hero-copy {
  max-width: 780px;
}

.intro h1,
.admin-heading h1,
.rules-hero h1 {
  margin: 0;
  color: var(--primary);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #000, 0 0 26px rgba(255, 140, 0, 0.18);
}

.intro p,
.admin-heading p,
.guide p,
.rules-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.eyebrow,
.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted,
.form-note {
  color: var(--muted);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-link,
.icon-button {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 18px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.primary-button {
  color: #2f1500;
  background: linear-gradient(135deg, var(--primary), var(--orange) 52%, var(--red));
  box-shadow: 0 0 24px rgba(255, 140, 0, 0.2);
}

.secondary-button {
  border-color: var(--line-hot);
  background: rgba(255, 183, 125, 0.06);
}

.ghost-link,
.icon-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.ghost-link.active,
.ghost-link:hover,
.icon-button:hover {
  color: var(--primary);
}

.ghost-link.active::after,
.ghost-link:hover::after {
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  content: "";
}

.danger-button {
  border-color: rgba(255, 180, 171, 0.45);
  color: var(--danger);
  background: rgba(255, 180, 171, 0.08);
}

.compact {
  min-height: 36px;
  padding: 0 12px;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.ghost-link:hover,
.icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.24);
}

.hidden {
  display: none !important;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 4px 0 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(35, 31, 29, 0.9), rgba(22, 19, 17, 0.84));
  backdrop-filter: blur(12px);
}

.status-band > div {
  min-width: 0;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
}

.status-band strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.application-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 880px);
  gap: 24px;
  align-items: start;
  padding: 0 0 88px;
}

.guide {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}

.rail-item,
.step-list span {
  display: block;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-item {
  border-left: 3px solid transparent;
  padding: 14px 16px;
}

.rail-item.active,
.rail-item.complete,
.rail-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 183, 125, 0.08);
}

.rail-item.complete {
  border-color: rgba(255, 183, 125, 0.34);
  color: var(--muted);
}

.step-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.step-list span {
  border: 1px solid rgba(164, 140, 122, 0.18);
  padding: 12px;
  background: rgba(17, 13, 12, 0.4);
  text-transform: none;
}

.application-form,
.application-picker,
.review-list,
.review-detail,
.logs-panel,
.success-screen,
.rules-hero,
.rules-toc,
.rules-category,
.dialog-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(35, 31, 29, 0.96), rgba(26, 22, 20, 0.94));
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.application-form {
  padding: clamp(16px, 3vw, 28px);
}

.application-picker {
  grid-column: 1 / -1;
  padding: clamp(16px, 3vw, 28px);
}

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

.application-type-card {
  appearance: none;
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: clamp(260px, 34vw, 380px);
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 125, 0.22);
  border-radius: 8px;
  padding: 22px;
  color: var(--text);
  text-align: left;
  background: #0f0b0a;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

.application-type-card::before,
.application-type-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.application-type-card::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 13, 12, 0.03) 0%, rgba(17, 13, 12, 0.32) 44%, rgba(17, 13, 12, 0.96) 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 140, 0, 0.2), transparent 210px);
}

.application-type-card::after {
  z-index: 2;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 180ms ease;
}

.application-type-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04) brightness(0.78);
  transform: scale(1.04);
  transition: transform 320ms ease, filter 320ms ease;
}

.application-card-status,
.application-type-card strong,
.application-type-card small {
  position: relative;
  z-index: 3;
}

.application-card-status {
  width: max-content;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-type-card strong {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
  text-shadow: 0 3px 0 #000;
}

.application-type-card small {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.application-type-card:hover {
  border-color: rgba(255, 183, 125, 0.56);
  box-shadow: 0 18px 52px rgba(255, 112, 32, 0.12);
}

.application-type-card:hover::after {
  border-color: rgba(255, 183, 125, 0.72);
}

.application-type-card:hover img {
  filter: saturate(1.1) contrast(1.08) brightness(0.9);
  transform: scale(1.09);
}

.application-type-card:disabled,
.application-subtype-list button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.application-subtype-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.application-subtype-list .secondary-button {
  min-height: 40px;
  padding: 10px 12px;
}

.application-subtype-list small {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 10px;
}

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

.rail-button {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.rail-button:hover {
  transform: translateX(4px);
}

.rail-divider {
  display: block;
  height: 1px;
  margin: 8px 0;
  background: rgba(255, 183, 125, 0.18);
}

.business-subtype-empty {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 183, 125, 0.18);
  border-radius: 6px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 140, 0, 0.15), transparent 260px),
    rgba(17, 13, 12, 0.58);
}

.business-subtype-empty h3 {
  margin: 10px 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.business-subtype-empty p {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.7;
}

.form-header,
.panel-title {
  justify-content: space-between;
  margin-bottom: 20px;
}

.application-form h2,
.review-detail h2,
.guide h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #000;
}

#questions,
#applicationList,
.answers {
  display: grid;
  gap: 18px;
}

.question-section {
  display: none;
  gap: 14px;
}

.rules-shell {
  padding-bottom: 88px;
}

.rules-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 260px;
  margin: 42px 0 24px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(105deg, rgba(17, 13, 12, 0.98) 0 42%, rgba(17, 13, 12, 0.42) 70%),
    linear-gradient(135deg, rgba(255, 140, 0, 0.22), rgba(255, 86, 37, 0.08)),
    url("/assets/logo.png") right 32px center / min(430px, 50vw) no-repeat;
}

.rules-hero h1 {
  color: var(--primary);
  max-width: 760px;
}

.rules-hero p {
  max-width: 760px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.rules-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

#rulesToc,
.rules-stack {
  display: grid;
  gap: 14px;
}

.toc-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-left: 3px solid transparent;
  border-radius: 4px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.toc-item span {
  color: var(--primary);
}

.toc-item strong {
  min-width: 0;
  font: inherit;
}

.toc-item em {
  border: 1px solid rgba(255, 183, 125, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--primary);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0;
}

.toc-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 183, 125, 0.08);
  transform: translateX(4px);
}

.rules-category {
  overflow: hidden;
  scroll-margin-top: 96px;
}

.rules-category-image {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 300px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(17, 13, 12, 0.34) 38%, rgba(17, 13, 12, 0.96) 100%),
    var(--rules-image) center / cover no-repeat;
}

.rules-category-image::after {
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(255, 183, 125, 0.24);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 183, 125, 0.2), transparent 220px),
    linear-gradient(90deg, rgba(17, 13, 12, 0.7), transparent 58%);
  content: "";
}

.rules-category-image > * {
  position: relative;
  z-index: 1;
}

.rules-category-image span {
  width: max-content;
  border: 1px solid rgba(255, 183, 125, 0.36);
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 13, 12, 0.72);
}

.rules-category-image h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
  text-shadow: 0 3px 0 #000, 0 0 28px rgba(255, 140, 0, 0.22);
}

.category-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  margin-top: 14px;
}

.anchor-link {
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 183, 125, 0.24);
  border-radius: 4px;
  color: var(--primary);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.anchor-link.small {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.rules-category:hover .anchor-link,
.rules-section:hover .anchor-link,
.anchor-link:focus-visible {
  opacity: 1;
  transform: translateX(0);
}

.anchor-link:hover {
  border-color: var(--primary);
  background: rgba(255, 183, 125, 0.1);
}

.rules-category-image p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.65;
}

.rules-content {
  display: grid;
  gap: 22px;
  padding: clamp(18px, 4vw, 34px);
}

.rules-section {
  display: grid;
  gap: 14px;
  scroll-margin-top: 96px;
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: rules;
  list-style: none;
}

.rules-list li {
  position: relative;
  min-height: 50px;
  border: 1px solid rgba(164, 140, 122, 0.18);
  border-radius: 4px;
  padding: 14px 16px 14px 54px;
  color: var(--text);
  line-height: 1.55;
  background: rgba(15, 11, 10, 0.72);
}

.rules-list li::before {
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 4px;
  color: #2f1500;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.2);
}

ol.rules-list li {
  counter-increment: rules;
}

ol.rules-list li::before {
  content: counter(rules, decimal-leading-zero);
}

ul.rules-list li::before {
  content: "";
}

ul.rules-list li::after {
  position: absolute;
  top: 23px;
  left: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f1500;
  content: "";
}

.question-section.active {
  display: grid;
  animation: sectionIn 220ms ease both;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.section-heading span {
  display: block;
  width: 4px;
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--orange));
}

.section-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #000;
}

.section-questions {
  display: grid;
  gap: 12px;
}

.question-card,
.application-row,
.answer-row {
  position: relative;
  border: 1px solid rgba(164, 140, 122, 0.18);
  border-radius: 6px;
  padding: 18px;
  background: rgba(22, 19, 17, 0.72);
}

.answer-row::before,
.review-detail h2::before,
.application-form h2::before {
  display: inline-block;
  width: 4px;
  height: 28px;
  margin-right: 12px;
  border-radius: 3px;
  vertical-align: -5px;
  background: linear-gradient(180deg, var(--primary), var(--orange));
  content: "";
}

.question-card:hover,
.application-row:hover,
.answer-row:hover {
  border-color: var(--line-hot);
  box-shadow: inset 0 1px 0 rgba(255, 183, 125, 0.12), 0 0 28px rgba(255, 140, 0, 0.1);
}

.question-card label,
.dialog-card label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.question-title,
.question-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.question-card input[type="text"],
.question-card textarea,
.dialog-card textarea {
  width: 100%;
  border: 1px solid rgba(164, 140, 122, 0.16);
  border-bottom-color: rgba(255, 183, 125, 0.38);
  border-radius: 3px;
  padding: 14px;
  color: var(--text);
  background: var(--field);
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.question-card input[type="text"]:focus,
.question-card textarea:focus,
.dialog-card textarea:focus {
  border-color: var(--primary);
  background: #15100f;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.14), 0 0 22px rgba(255, 140, 0, 0.12);
}

.question-card textarea {
  min-height: 132px;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid rgba(164, 140, 122, 0.14);
  border-radius: 3px;
  padding: 12px;
  color: var(--text);
  background: var(--field);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.other-option {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr);
}

.option:hover {
  transform: translateX(4px);
  border-color: rgba(255, 183, 125, 0.42);
  background: rgba(255, 183, 125, 0.08);
}

.option input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--orange);
}

.other-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(164, 140, 122, 0.16);
  border-bottom-color: rgba(255, 183, 125, 0.38);
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(15, 11, 10, 0.86);
  outline: none;
}

.other-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.14);
}

.form-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.form-navigation .primary-button,
.form-navigation .secondary-button {
  min-width: 160px;
}

.submit-button {
  width: min(360px, 100%);
  min-height: 56px;
  font-size: 15px;
}

.success-screen {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
}

.success-screen img {
  width: min(190px, 58vw);
  filter: drop-shadow(0 0 24px rgba(255, 140, 0, 0.34));
}

.success-screen h2 {
  margin: 0;
  color: var(--primary);
  font-size: 32px;
  line-height: 1.2;
  text-shadow: 0 2px 0 #000;
}

.success-screen p {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.admin-shell {
  width: min(100% - 32px, 1360px);
  padding-bottom: 76px;
}

.admin-heading {
  padding: 48px 0 24px;
}

.admin-heading h1 {
  color: var(--text);
  font-size: 32px;
}

.review-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.review-list {
  min-height: 620px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(48, 27, 8, 0.28), transparent 230px),
    linear-gradient(180deg, rgba(22, 19, 17, 0.96), rgba(17, 13, 12, 0.92));
}

.review-detail {
  min-height: 620px;
  overflow: hidden;
  padding: 34px 38px;
}

.logs-panel {
  min-height: 560px;
  padding: 22px;
}

#logList {
  display: grid;
  gap: 12px;
}

.log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  border: 1px solid rgba(164, 140, 122, 0.18);
  border-radius: 6px;
  padding: 16px;
  background: rgba(22, 19, 17, 0.72);
}

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

.log-row strong {
  color: var(--primary);
  font-size: 14px;
  text-transform: uppercase;
}

.log-row span,
.log-row time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.log-row pre {
  grid-column: 1 / -1;
  max-width: 100%;
  margin: 8px 0 0;
  overflow: auto;
  border: 1px solid rgba(164, 140, 122, 0.14);
  border-radius: 4px;
  padding: 12px;
  color: var(--text);
  background: var(--field);
  white-space: pre-wrap;
}

.application-row {
  display: grid;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.application-row strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #2f1500;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: pulse 1.5s ease-in-out infinite;
}

.status-pending {
  background: var(--gold);
}

.status-accepted {
  background: var(--success);
}

.status-rejected {
  background: var(--danger);
}

.review-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 22px;
}

.queue-management {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(255, 183, 125, 0.16);
  border-radius: 6px;
  background: rgba(17, 13, 12, 0.46);
}

.answer-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-row p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  white-space: pre-wrap;
}

dialog {
  max-width: min(560px, calc(100% - 28px));
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.dialog-card {
  padding: 24px;
}

.dialog-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.dialog-card textarea {
  min-height: 140px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.interactive-card,
.question-card,
.application-form,
.application-picker,
.guide {
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.35);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0);
  }
}

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

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

  nav {
    justify-content: flex-start;
  }

  .application-layout,
  .review-grid,
  .status-band,
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .application-type-grid {
    grid-template-columns: 1fr;
  }

  .guide,
  .rules-toc {
    position: static;
  }

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

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

  .step-list {
    grid-column: 1 / -1;
  }

  .review-list,
  .review-detail,
  .logs-panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 10px 16px;
  }

  .brand-logo {
    width: 64px;
    height: 38px;
  }

  .brand span {
    display: none;
  }

  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .ghost-link,
  .secondary-button,
  .primary-button,
  .icon-button,
  .danger-button {
    width: 100%;
    padding-inline: 10px;
    font-size: 11px;
  }

  .shell,
  .admin-shell {
    width: min(100% - 24px, 1320px);
  }

  .intro h1 {
    font-size: 34px;
  }

  .rules-hero {
    align-items: stretch;
    flex-direction: column;
    min-height: 360px;
    background:
      linear-gradient(180deg, rgba(17, 13, 12, 0.72), rgba(17, 13, 12, 0.98)),
      url("/assets/logo.png") center 24px / min(280px, 76vw) no-repeat;
  }

  .admin-heading h1,
  .application-form h2,
  .review-detail h2 {
    font-size: 24px;
  }

  .intro p {
    font-size: 14px;
  }

  .guide,
  #rulesToc {
    grid-template-columns: 1fr;
  }

  .form-header,
  .panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  .application-form,
  .application-picker,
  .review-detail,
  .review-list,
  .logs-panel,
  .rules-toc,
  .rules-content {
    padding: 16px;
  }

  .rules-category-image {
    min-height: 260px;
  }

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

  .question-card,
  .answer-row {
    padding: 14px;
  }

  .form-navigation {
    flex-direction: column-reverse;
  }

  .form-navigation .primary-button,
  .form-navigation .secondary-button,
  .submit-button {
    width: 100%;
  }

  .other-option {
    grid-template-columns: auto 1fr;
  }

  .other-input {
    grid-column: 1 / -1;
  }
}

/* Home-inspired public page skin */
.coast-page {
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 140, 0, 0.14), transparent 30rem),
    radial-gradient(circle at 84% 34%, rgba(255, 86, 37, 0.11), transparent 34rem),
    linear-gradient(180deg, #110d0c 0%, #161311 44%, #21150f 100%);
}

.lighthouse-page {
  background:
    linear-gradient(90deg, rgba(17, 13, 12, 0.98) 0%, rgba(17, 13, 12, 0.86) 42%, rgba(17, 13, 12, 0.72) 100%),
    linear-gradient(180deg, rgba(17, 13, 12, 0.56), rgba(33, 21, 15, 0.94)),
    url("/assets/gta-bg.jpg") center center / cover fixed no-repeat;
  background-color: #110d0c;
}

.business-page-skin {
  background:
    linear-gradient(90deg, rgba(17, 13, 12, 0.96) 0%, rgba(17, 13, 12, 0.84) 42%, rgba(17, 13, 12, 0.72) 100%),
    linear-gradient(180deg, rgba(17, 13, 12, 0.62), rgba(33, 21, 15, 0.94)),
    url("/assets/lsv32.jpeg") center center / cover fixed no-repeat;
  background-color: #110d0c;
}

.applications-page .ambient,
.rules-page .ambient,
.business-page-skin .ambient,
.lighthouse-page .ambient {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 140, 0, 0.16), transparent 360px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.44));
}

.coast-page::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(255, 140, 0, 0.08), transparent 26rem);
  content: "";
  pointer-events: none;
}

.coast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  min-height: min(820px, calc(100vh - 72px));
  padding: clamp(84px, 13vh, 150px) 0 clamp(46px, 8vh, 90px);
}

.coast-hero-copy {
  display: grid;
  gap: 20px;
  max-width: 980px;
}

.coast-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 0 4px 0 #000, 0 0 34px rgba(255, 140, 0, 0.18);
}

.coast-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.home-info-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 0.52fr);
  gap: 18px;
  padding-bottom: 54px;
}

.home-info-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 125, 0.18);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 183, 125, 0.13), transparent 220px),
    rgba(35, 31, 29, 0.76);
  box-shadow: 0 24px 84px rgba(0, 0, 0, 0.34);
}

.lighthouse-page .home-info-card:first-child {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.channel-link-set {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.channel-link-set legend {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.creator-scroll-frame {
  overflow-x: auto;
  padding: 10px 0 26px;
  scrollbar-width: thin;
}

.creator-directory-track {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  width: max-content;
  min-width: 100%;
}

.creator-directory-card {
  display: grid;
  align-content: end;
  width: clamp(260px, 30vw, 420px);
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 125, 0.18);
  border-radius: 12px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(15, 11, 10, 0.04), rgba(15, 11, 10, 0.96)),
    rgba(35, 31, 29, 0.8);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.38);
}

.creator-directory-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(0.9) contrast(1.05);
  transform: scale(1.04);
  transition: opacity 180ms ease, transform 240ms ease, filter 240ms ease;
}

.creator-directory-card > div {
  position: relative;
  z-index: 1;
}

.creator-directory-card:hover img {
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.1);
  transform: scale(1.09);
}

@media (max-width: 980px) {
  .coast-hero,
  .home-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .coast-hero {
    min-height: auto;
    padding-top: 122px;
  }

  .business-page-skin,
  .lighthouse-page {
    background-attachment: scroll;
  }

  .coast-hero h1 {
    font-size: 42px;
  }

  .creator-directory-card {
    width: min(82vw, 340px);
  }
}

/* Lighthouse creator program */
.lighthouse-shell {
  padding-bottom: 88px;
}

.lighthouse-hero {
  --lighthouse-image: url("/assets/logo.png");
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 340px;
  margin: 42px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(104deg, rgba(17, 13, 12, 0.98) 0 42%, rgba(17, 13, 12, 0.56) 72%),
    radial-gradient(circle at 20% 20%, rgba(255, 183, 125, 0.22), transparent 280px),
    var(--lighthouse-image) center / cover no-repeat;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42), 0 0 46px rgba(255, 140, 0, 0.12);
}

.lighthouse-hero h1,
.directory-heading h2 {
  max-width: 840px;
  margin: 0;
  color: var(--primary);
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 3px 0 #000, 0 0 30px rgba(255, 140, 0, 0.18);
}

.lighthouse-hero p {
  max-width: 720px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

.lighthouse-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: 24px;
  align-items: start;
}

.lighthouse-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 140, 0, 0.14), transparent 260px),
    linear-gradient(180deg, rgba(35, 31, 29, 0.96), rgba(17, 13, 12, 0.92));
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.36);
}

.program-card-stack,
.creator-form,
.form-grid {
  display: grid;
  gap: 14px;
}

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

.program-card-stack section {
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 125, 0.18);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(17, 13, 12, 0.22), rgba(17, 13, 12, 0.92)),
    radial-gradient(circle at 24% 16%, rgba(255, 183, 125, 0.16), transparent 240px),
    rgba(15, 11, 10, 0.72);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.34);
}

.program-card-stack section:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 5px solid var(--primary);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(35, 31, 29, 0.98), rgba(35, 31, 29, 0.88)),
    rgba(35, 31, 29, 0.92);
}

.program-card-stack h3,
.creator-card h3,
.creator-empty h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 42px);
  font-style: italic;
  text-shadow: 0 2px 0 #000;
}

.program-card-stack p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
}

.creator-auth {
  display: grid;
  gap: 16px;
  justify-items: start;
}

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

.form-grid label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(164, 140, 122, 0.16);
  border-bottom-color: rgba(255, 183, 125, 0.38);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--field);
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--primary);
  background: #15100f;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.14), 0 0 22px rgba(255, 140, 0, 0.12);
}

.compact-success {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.lighthouse-directory {
  margin-top: 42px;
}

.directory-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.directory-heading h2 {
  color: var(--text);
  font-size: clamp(30px, 5vw, 48px);
}

.directory-heading p {
  max-width: 440px;
  margin: 0;
  line-height: 1.6;
}

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

.creator-card,
.creator-empty {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(164, 140, 122, 0.2);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 183, 125, 0.12), transparent 220px),
    linear-gradient(180deg, rgba(35, 31, 29, 0.96), rgba(17, 13, 12, 0.92));
}

.creator-card {
  grid-template-columns: 82px minmax(0, 1fr);
}

.creator-card img,
.creator-empty img {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 183, 125, 0.24);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(15, 11, 10, 0.72);
  filter: drop-shadow(0 0 16px rgba(255, 140, 0, 0.18));
}

.creator-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-card p {
  margin: 6px 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.creator-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.creator-meta strong {
  border: 1px solid rgba(255, 183, 125, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(15, 11, 10, 0.58);
}

.creator-empty {
  grid-column: 1 / -1;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
}

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

  .lighthouse-hero,
  .directory-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .lighthouse-hero {
    min-height: 430px;
  }

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

/* Business directory */
.business-page {
  padding-bottom: 96px;
}

.business-hero {
  display: grid;
  gap: 14px;
  padding: clamp(36px, 7vh, 70px) 0 22px;
}

.business-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--primary);
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 3px 0 #000, 0 0 34px rgba(255, 140, 0, 0.18);
}

.business-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.business-detail-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.business-detail {
  --business-accent: var(--orange);
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--business-accent) 52%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--business-accent) 18%, transparent), transparent 260px),
    linear-gradient(180deg, rgba(35, 31, 29, 0.97), rgba(17, 13, 12, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 1px color-mix(in srgb, var(--business-accent) 18%, transparent),
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 46px color-mix(in srgb, var(--business-accent) 18%, transparent);
}

.business-detail-flash {
  animation: detailPulse 520ms ease;
}

.business-detail-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--field);
}

.business-detail-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(17, 13, 12, 0.1) 58%, rgba(17, 13, 12, 0.8) 100%),
    radial-gradient(circle at 20% 82%, color-mix(in srgb, var(--business-accent) 24%, transparent), transparent 220px);
  content: "";
}

.business-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.business-detail-copy {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 44px);
}

.detail-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.detail-status {
  border: 1px solid color-mix(in srgb, var(--business-accent) 38%, transparent);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 11, 10, 0.58);
}

.business-detail h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 6vw, 70px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 3px 0 #000, 0 0 28px color-mix(in srgb, var(--business-accent) 22%, transparent);
}

.business-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.detail-stats div,
.detail-panels section {
  border: 1px solid rgba(164, 140, 122, 0.18);
  border-radius: 6px;
  background: rgba(15, 11, 10, 0.62);
}

.detail-stats div {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
}

.detail-stats span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-stats strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

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

.detail-panels section {
  padding: 16px;
}

.detail-panels h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-panels ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-panels li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.detail-panels li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--business-accent);
  content: "";
}

.business-scroll {
  min-height: 280vh;
}

.business-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
  min-width: 0;
  min-height: calc(100vh - 112px);
  align-content: center;
  overflow: hidden;
}

.business-scroll-frame {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 125, 0.2);
  border-radius: 10px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(35, 31, 29, 0.72), rgba(15, 11, 10, 0.78)),
    radial-gradient(circle at 50% -20%, rgba(255, 183, 125, 0.16), transparent 360px),
    radial-gradient(circle at 50% 120%, rgba(255, 86, 37, 0.12), transparent 360px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 26px 90px rgba(0, 0, 0, 0.38);
}

.business-scroll-frame::before,
.business-scroll-frame::after {
  position: absolute;
  right: 8%;
  left: 8%;
  z-index: -1;
  height: 120px;
  border-radius: 0 0 999px 999px;
  background: radial-gradient(ellipse at center, rgba(255, 140, 0, 0.28), rgba(255, 86, 37, 0.08) 45%, transparent 72%);
  filter: blur(14px);
  content: "";
  pointer-events: none;
}

.business-scroll-frame::before {
  top: -64px;
  transform: rotate(180deg);
}

.business-scroll-frame::after {
  bottom: -64px;
}

.business-scroll-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.business-scroll-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.business-viewport {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.business-track {
  display: flex;
  width: max-content;
  gap: clamp(16px, 3vw, 32px);
  padding: 10px 0 44px;
  will-change: transform;
  transition: transform 90ms linear;
}

.business-card {
  --business-accent: var(--orange);
  position: relative;
  display: grid;
  align-content: end;
  width: clamp(250px, 29vw, 420px);
  min-height: clamp(390px, 60vh, 560px);
  overflow: hidden;
  border: 1px solid rgba(164, 140, 122, 0.24);
  border-radius: 8px;
  padding: 22px;
  color: var(--text);
  text-align: left;
  background: #0f0b0a;
  cursor: pointer;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.36);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.business-card::before,
.business-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.business-card::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 13, 12, 0.02) 0%, rgba(17, 13, 12, 0.28) 44%, rgba(17, 13, 12, 0.94) 100%),
    radial-gradient(circle at 20% 18%, color-mix(in srgb, var(--business-accent) 20%, transparent), transparent 210px);
}

.business-card::after {
  z-index: 2;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 180ms ease;
}

.business-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.04);
  transition: transform 320ms ease, filter 320ms ease;
}

.business-card > span,
.business-card > strong,
.business-card > small {
  position: relative;
  z-index: 3;
}

.business-card-category {
  width: max-content;
  border-left: 4px solid var(--business-accent);
  padding-left: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-card strong {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
  text-shadow: 0 3px 0 #000;
}

.business-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.business-card:hover,
.business-card.active {
  border-color: color-mix(in srgb, var(--business-accent) 74%, transparent);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), 0 0 38px color-mix(in srgb, var(--business-accent) 24%, transparent);
}

.business-card:hover img,
.business-card.active img {
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.09);
}

.business-card.active::after {
  border-color: color-mix(in srgb, var(--business-accent) 86%, transparent);
}

.modal-open {
  overflow: hidden;
}

.business-modal,
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.business-modal.hidden,
.image-lightbox.hidden,
.business-gallery.hidden {
  display: none;
}

.business-modal-backdrop,
.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 140, 0, 0.16), transparent 360px),
    rgba(4, 2, 1, 0.78);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.business-detail-pop {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  width: min(1120px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  animation: modalRise 220ms ease both;
}

.business-detail-pop .business-detail-media {
  min-height: clamp(280px, 44vh, 460px);
}

.business-detail-pop .business-detail-media::after {
  background:
    linear-gradient(180deg, transparent 0%, rgba(17, 13, 12, 0.12) 46%, rgba(17, 13, 12, 0.78) 100%),
    radial-gradient(circle at 82% 82%, color-mix(in srgb, var(--business-accent) 24%, transparent), transparent 260px);
}

.business-detail-pop .business-detail-media img {
  min-height: clamp(280px, 44vh, 460px);
}

.modal-close,
.gallery-toggle {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 183, 125, 0.36);
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 11, 10, 0.72);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.modal-close {
  top: 16px;
  right: 16px;
}

.gallery-toggle {
  right: 16px;
  bottom: 16px;
}

.modal-close:hover,
.gallery-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(15, 11, 10, 0.92);
}

.business-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255, 183, 125, 0.16);
  border-bottom: 1px solid rgba(255, 183, 125, 0.16);
  background: rgba(15, 11, 10, 0.72);
}

.gallery-thumb {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  border: 1px solid rgba(164, 140, 122, 0.18);
  border-radius: 6px;
  padding: 0;
  background: var(--field);
  cursor: zoom-in;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.gallery-thumb:hover img {
  filter: saturate(1.14);
  transform: scale(1.06);
}

.image-lightbox {
  z-index: 120;
}

.image-lightbox figure {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  max-height: 92vh;
  margin: 0;
  border: 1px solid rgba(255, 183, 125, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: #050201;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.66), 0 0 60px rgba(255, 140, 0, 0.18);
}

.image-lightbox img {
  display: block;
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes detailPulse {
  45% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 0 1px color-mix(in srgb, var(--business-accent) 48%, transparent),
      0 30px 90px rgba(0, 0, 0, 0.48),
      0 0 72px color-mix(in srgb, var(--business-accent) 32%, transparent);
  }
}

@media (max-width: 980px) {
  .business-sticky {
    position: static;
  }

  .business-detail {
    grid-template-columns: 1fr;
  }

  .business-detail-media,
  .business-detail-media img {
    min-height: 320px;
  }

  .business-scroll {
    min-height: auto;
  }

  .business-viewport {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .business-track {
    transform: none !important;
    padding-bottom: 20px;
  }

  .business-scroll-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .business-hero h1 {
    font-size: 40px;
  }

  .business-detail-copy {
    padding: 18px;
  }

  .detail-stats,
  .detail-panels {
    grid-template-columns: 1fr;
  }

  .business-card {
    width: min(82vw, 340px);
    min-height: 410px;
  }
}

/* Final home-skin overrides for pages that reuse older module classes. */
.business-page-skin .business-hero,
.lighthouse-page .lighthouse-hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  min-height: min(820px, calc(100vh - 72px));
  padding: clamp(84px, 13vh, 150px) 0 clamp(46px, 8vh, 90px);
}

.business-page-skin .business-hero h1,
.lighthouse-page .lighthouse-hero-home h1 {
  max-width: 900px;
  color: var(--text);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.88;
}

.business-page-skin .business-hero p,
.lighthouse-page .lighthouse-hero-home p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.business-page-skin .business-scroll-frame {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(35, 31, 29, 0.72), rgba(15, 11, 10, 0.78)),
    radial-gradient(circle at 50% -20%, rgba(255, 183, 125, 0.2), transparent 360px),
    radial-gradient(circle at 50% 120%, rgba(255, 86, 37, 0.14), transparent 360px);
}

@media (max-width: 980px) {
  .business-page-skin .business-hero,
  .lighthouse-page .lighthouse-hero-home {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .business-page-skin .business-hero,
  .lighthouse-page .lighthouse-hero-home {
    min-height: auto;
    padding-top: 122px;
  }

  .business-page-skin .business-hero h1,
  .lighthouse-page .lighthouse-hero-home h1 {
    font-size: 42px;
  }
}
