:root {
  --ink: #132022;
  --muted: #516165;
  --paper: #f8fbf9;
  --white: #ffffff;
  --aqua: #0a8f9f;
  --aqua-dark: #075d68;
  --mint: #d9f3eb;
  --sun: #f2c14e;
  --leaf: #1d614d;
  --line: rgba(19, 32, 34, 0.14);
  --shadow: 0 24px 70px rgba(7, 67, 75, 0.2);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

img,
iframe {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(10, 143, 159, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #f7fbf9 0%, #eef8f5 46%, #fbfaf5 100%);
  background-size: 42px 42px, auto;
  font-family: Georgia, "Times New Roman", serif;
}

body,
button,
input,
select,
textarea {
  font: 16px/1.5 Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(6, 35, 39, 0.76), rgba(6, 35, 39, 0.1));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

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

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  min-width: 0;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 116px clamp(18px, 5vw, 72px) 46px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 37, 42, 0.9) 0%, rgba(4, 37, 42, 0.72) 37%, rgba(4, 37, 42, 0.16) 76%),
    linear-gradient(180deg, rgba(4, 37, 42, 0.26), rgba(4, 37, 42, 0.72));
}

.hero-content {
  position: relative;
  max-width: 790px;
  color: var(--white);
  animation: rise-in 700ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--aqua-dark);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.1;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button,
.select-package,
.pay-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 13px 20px;
  cursor: pointer;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.button.primary,
.select-package,
.pay-button {
  color: #08282d;
  background: var(--sun);
  box-shadow: 0 16px 30px rgba(242, 193, 78, 0.28);
}

.hero .button.secondary,
.site-header .button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary {
  color: #071f22;
  border: 1px solid rgba(19, 32, 34, 0.48);
  background: #f8fbf9;
}

.hero-stats {
  gap: 28px;
  margin: 30px 0 0;
}

.hero-stats div {
  min-width: 88px;
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.84rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--white);
  color: var(--leaf);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.14rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--muted);
}

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

.package-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(20, 65, 70, 0.08);
}

.package-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, var(--mint) 100%);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.tag {
  width: fit-content;
  margin-bottom: 24px;
  padding: 6px 10px;
  border: 1px solid rgba(10, 143, 159, 0.28);
  border-radius: 999px;
  color: var(--aqua-dark);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.price {
  margin-bottom: 4px;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.price span,
.alt-price {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 400;
}

.alt-price {
  min-height: 48px;
  margin-bottom: 24px;
}

ul {
  margin: 0 0 28px;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.select-package {
  width: 100%;
  margin-top: auto;
}

.package-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.package-actions .select-package {
  margin-top: 0;
}

.secondary-select {
  color: var(--aqua-dark);
  border: 1px solid rgba(10, 143, 159, 0.24);
  background: var(--white);
  box-shadow: none;
}

.package-note {
  max-width: 940px;
  margin: 24px 0 0;
  color: var(--muted);
}

.fit {
  background:
    linear-gradient(135deg, rgba(10, 143, 159, 0.16), rgba(29, 97, 77, 0.08)),
    var(--paper);
}

.fit-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.fit-panel > div:first-child p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}

.quiz,
.reserve-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(19, 32, 34, 0.18);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

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

.quiz-result {
  grid-column: 2;
  padding: 18px 20px;
  border-left: 5px solid var(--sun);
  background: var(--white);
  color: var(--aqua-dark);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(20, 65, 70, 0.1);
}

.checkout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
  gap: clamp(26px, 6vw, 90px);
  align-items: start;
}

.checkout-copy {
  position: sticky;
  top: 98px;
}

.checkout-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
}

.reserve-form {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.checkout-part {
  display: grid;
  gap: 14px;
}

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

.form-part .form-step,
.form-part label:last-child {
  grid-column: 1 / -1;
}

.terms-summary {
  margin-top: 8px;
  padding: 20px;
  border-radius: 8px;
  background: #eef8f5;
}

.terms-summary h3 {
  margin-bottom: 12px;
}

.terms-summary p {
  margin-bottom: 10px;
  color: var(--muted);
}

.agreement-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  margin-top: 14px;
  color: var(--ink);
}

.agreement-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.agreement-check a {
  color: var(--aqua-dark);
}

.pay-button {
  width: 100%;
  margin-top: 6px;
  font-size: 1.04rem;
}

.form-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.form-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--aqua-dark);
  font-weight: 800;
}

.submit-registration {
  width: 100%;
  font-size: 1.04rem;
}

.registration-status {
  display: block;
  padding: 15px 16px;
  border-left: 5px solid var(--leaf);
  border-radius: 6px;
  color: var(--leaf);
  background: #edf8ed;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
}

.registration-status[hidden] {
  display: none;
}

.paypal-checkout {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.paypal-checkout[hidden] {
  display: none;
}

.payment-locked {
  opacity: 0.62;
}

.payment-locked #paypal-buttons {
  pointer-events: none;
  user-select: none;
}

.payment-locked .payment-gate {
  display: grid;
}

.is-disabled {
  pointer-events: none;
  filter: grayscale(0.25);
}

.paypal-note,
.payment-summary,
.paypal-redirect-note,
.paypal-error,
.payment-divider {
  margin: 0;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.88rem;
}

.payment-summary {
  padding: 12px 14px;
  border: 1px solid rgba(7, 93, 104, 0.2);
  border-radius: 6px;
  color: #071f22;
  background: #eef8f6;
  font-weight: 800;
}

.payment-summary[hidden] {
  display: none;
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-divider::before,
.payment-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.paypal-redirect-note code {
  color: var(--aqua-dark);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
}

.paypal-error {
  padding: 14px;
  border: 1px solid rgba(144, 35, 35, 0.24);
  border-radius: 6px;
  color: #7a2424;
  background: #fff1ec;
}

#paypal-buttons {
  min-height: 48px;
  overflow: hidden;
}

.payment-gate {
  display: none;
  min-height: 48px;
  place-items: center;
  padding: 12px;
  border: 1px dashed rgba(19, 32, 34, 0.22);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.terms {
  background: #102a2e;
  color: var(--white);
}

.terms .eyebrow {
  color: var(--sun);
}

.terms .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.terms-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.terms-layout article {
  min-height: 220px;
  padding: 24px;
  background: #123337;
}

.terms-layout h3 {
  color: var(--sun);
}

.terms-layout p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  background: #071f22;
  color: var(--white);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer a {
  color: var(--sun);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(10, 143, 159, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbf9 0%, #eef8f5 52%, #fbfaf5 100%);
  background-size: 42px 42px, auto;
}

.status-shell {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.checkout-shell {
  width: min(980px, 100%);
}

.status-shell h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 8vw, 5.6rem);
}

.status-shell p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.1rem;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.status-actions .button.secondary {
  color: var(--aqua-dark);
  border-color: rgba(7, 93, 104, 0.28);
  background: rgba(10, 143, 159, 0.08);
}

.auth-form {
  margin-top: 22px;
  padding: 0;
  box-shadow: none;
}

.failed-state .eyebrow {
  color: #9f3d22;
}

.view-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(10, 143, 159, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbf9 0%, #eef8f5 52%, #fbfaf5 100%);
  background-size: 42px 42px, auto;
}

.view-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 56px);
}

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

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

.load-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(20, 32, 35, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(20, 32, 35, 0.08);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
}

.load-control label {
  color: #526164;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.load-control select {
  min-width: 118px;
  border: 1px solid rgba(20, 32, 35, 0.12);
  border-radius: 8px;
  padding: 8px 34px 8px 10px;
  color: #111d20;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.view-heading h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.view-subtitle {
  margin: -8px 0 0;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
}

.compact-heading {
  margin: 34px 0 14px;
}

.compact-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.view-back {
  color: var(--white);
  border: 1px solid #071f22;
  background: #071f22;
  box-shadow: none;
}

.view-back:hover,
.view-back:focus-visible {
  color: #071f22;
  background: var(--white);
}

.view-error,
.view-empty,
.view-success {
  padding: 16px 18px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(20, 65, 70, 0.08);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
}

.view-error {
  color: #7a2424;
}

.view-success {
  color: #14553c;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.registrations-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.88rem;
}

.registrations-table th,
.registrations-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.registrations-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--white);
  background: var(--aqua-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.registrations-table tbody tr:nth-child(even) {
  background: #f5fbf8;
}

.registrations-table a {
  color: var(--aqua-dark);
  font-weight: 800;
}

.table-muted {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.simple-note {
  max-width: 280px;
  color: var(--muted);
  line-height: 1.4;
}

.simple-note .note-content {
  overflow-wrap: anywhere;
}

.row-more-toggle {
  display: none;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--aqua);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.delete-cell {
  text-align: right;
}

.registrations-table th:last-child {
  text-align: right;
}

.delete-registration-form {
  margin: 0;
}

.icon-view-button,
.icon-delete-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
}

.icon-view-button {
  border: 1px solid rgba(18, 100, 110, 0.22);
  background: #eef8f6;
  color: var(--aqua-dark);
}

.icon-view-button:hover,
.icon-view-button:focus-visible,
.icon-view-button[aria-expanded="true"] {
  border-color: var(--aqua-dark);
  background: var(--aqua-dark);
  color: var(--white);
}

.icon-delete-button {
  border: 1px solid #f0b8b8;
  background: #fff5f5;
  color: #9d1c1c;
}

.icon-delete-button:hover,
.icon-delete-button:focus-visible {
  border-color: #9d1c1c;
  background: #9d1c1c;
  color: var(--white);
}

.icon-view-button i,
.icon-delete-button i {
  font-size: 0.92rem;
}

.registration-details-row {
  background: #f8fcfa;
}

.registration-details-row td {
  padding: 18px;
}

.registration-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.registration-details-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.registration-details-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.registration-details-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #071f22;
  font-size: 0.86rem;
}

.checkout-summary-grid {
  margin: 18px 0 20px;
}

.promo-apply-form {
  margin: 0 0 18px;
  padding: 0;
  box-shadow: none;
}

.promo-apply-form .button {
  min-width: 140px;
}

.status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--leaf);
  background: #edf8ed;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.raw-event-details summary {
  cursor: pointer;
  color: var(--aqua-dark);
  font-weight: 800;
}

.raw-event-details pre {
  max-width: 520px;
  max-height: 280px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-nav-toggle {
  position: fixed;
  z-index: 130;
  top: 20px;
  left: max(12px, env(safe-area-inset-left));
  display: inline-flex;
  width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(17, 29, 32, 0.18);
  border-radius: 12px;
  padding: 10px 15px;
  color: #fff;
  background: #101b1e;
  box-shadow: 0 18px 42px rgba(17, 29, 32, 0.2);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.admin-nav-toggle[hidden] {
  display: none;
}

.admin-nav-toggle span {
  display: none;
}

.admin-nav-toggle.show-label {
  width: auto;
}

.admin-nav-toggle.show-label span,
.admin-nav-toggle[aria-expanded="true"] span {
  display: inline;
}

.admin-nav-toggle[aria-expanded="true"] {
  width: auto;
}

.admin-nav-toggle:hover,
.admin-nav-toggle:focus-visible {
  background: #17272b;
  box-shadow: 0 22px 48px rgba(17, 29, 32, 0.26);
  transform: translateY(-1px);
}

.admin-side-nav {
  position: fixed;
  z-index: 120;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 18px));
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 22px 18px 0;
  color: #101b1e;
  background:
    linear-gradient(180deg, #ffffff, #f4f8f7);
  box-shadow: 30px 0 80px rgba(17, 29, 32, 0.28);
  animation: admin-nav-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.admin-side-nav[hidden],
.admin-nav-backdrop[hidden] {
  display: none;
}

.admin-nav-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 29, 32, 0.12), rgba(17, 29, 32, 0.42)),
    rgba(17, 29, 32, 0.28);
  backdrop-filter: blur(4px);
}

.admin-side-nav-head,
.admin-side-brand {
  display: flex;
  align-items: center;
}

.admin-side-nav-head {
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 29, 32, 0.1);
}

.admin-side-brand {
  gap: 12px;
  color: #101b1e;
  text-decoration: none;
}

.admin-side-brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #101b1e;
  font-weight: 900;
}

.admin-side-nav-head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(17, 29, 32, 0.12);
  border-radius: 10px;
  color: #101b1e;
  background: #eef4f2;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-side-nav-head button:hover,
.admin-side-nav-head button:focus-visible {
  border-color: rgba(17, 29, 32, 0.26);
  background: #dfe9e6;
  transform: rotate(4deg);
}

.admin-side-nav nav {
  display: grid;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  gap: 8px;
  justify-content: stretch;
  justify-items: stretch;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 2px max(120px, calc(44px + env(safe-area-inset-bottom)));
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.admin-side-nav nav a {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(17, 29, 32, 0.08);
  border-radius: 14px;
  padding: 13px 14px 13px 16px;
  color: #2b3b3f;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-side-nav nav a::before {
  content: "";
  position: absolute;
  inset: 11px auto 11px 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease, transform 160ms ease;
}

.admin-side-nav nav a i {
  width: 22px;
  color: #0a6f7c;
  text-align: center;
}

.admin-side-nav nav a:hover,
.admin-side-nav nav a:focus-visible {
  color: #101b1e;
  border-color: rgba(10, 143, 159, 0.35);
  background: #eef8f6;
  transform: translateX(3px);
}

.admin-side-nav nav a.active {
  color: #fff;
  border-color: #101b1e;
  background: #101b1e;
  box-shadow: 0 14px 28px rgba(17, 29, 32, 0.16);
}

.admin-side-nav nav a.active i {
  color: #f2c14e;
}

.admin-side-nav nav a:hover::before,
.admin-side-nav nav a:focus-visible::before,
.admin-side-nav nav a.active::before {
  background: #0a8f9f;
  transform: scaleY(1.1);
}

body.admin-nav-open {
  overflow: hidden;
}

.metric-fit,
.stat-card strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(1.35rem, 4.2vw, 3rem);
  line-height: 1;
}

@keyframes admin-nav-in {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(20, 65, 70, 0.08);
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card strong {
  margin-top: 8px;
  color: var(--aqua-dark);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.stats-section {
  margin-top: 26px;
}

.stats-table {
  min-width: 760px;
}

.crm-metrics {
  margin-bottom: 18px;
}

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

.crm-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

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

.crm-breakdown-grid h3 {
  margin-bottom: 12px;
}

.mini-bars {
  display: grid;
  gap: 12px;
}

.mini-bar-row {
  display: grid;
  gap: 8px;
}

.mini-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.mini-bar-label strong {
  font-size: 0.95rem;
  text-transform: capitalize;
}

.mini-bar-label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.mini-bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e4efec;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--leaf));
}

.crm-table {
  min-width: 760px;
}

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

.admin-link-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(19, 32, 34, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(20, 65, 70, 0.08);
  text-decoration: none;
}

.admin-link-card span,
.admin-link-card strong {
  display: block;
}

.admin-link-card span {
  color: var(--aqua-dark);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-link-card strong {
  margin-top: 10px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.admin-link-card:hover,
.admin-link-card:focus-visible {
  border-color: var(--aqua-dark);
}

.admin-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(19, 32, 34, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(20, 65, 70, 0.08);
}

.admin-card + .admin-card {
  margin-top: 18px;
}

.admin-card input[readonly] {
  cursor: text;
}

/* Modern admin surface */
.view-page {
  color: #142023;
  background:
    radial-gradient(circle at 14% 0%, rgba(242, 193, 78, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(10, 143, 159, 0.08), transparent 38%),
    #f4f7f6;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.view-shell {
  width: min(1440px, 100%);
  padding: 32px clamp(16px, 4vw, 48px) 56px;
}

.view-heading {
  position: relative;
  align-items: center;
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(20, 32, 35, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, rgba(10, 143, 159, 0.12), rgba(242, 193, 78, 0.12));
  box-shadow: 0 24px 70px rgba(20, 32, 35, 0.09);
  overflow: hidden;
  animation: admin-rise 460ms ease both;
}

.view-heading::after {
  content: "";
  position: absolute;
  inset: auto 30px 0 auto;
  width: 210px;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--aqua), var(--sun));
}

.view-heading h1 {
  max-width: 840px;
  margin-bottom: 10px;
  color: #101b1e;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.98;
}

.view-subtitle {
  margin: 0;
  color: #667579;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.view-actions .button,
.button.view-back {
  width: auto;
  gap: 8px;
  border: 1px solid rgba(20, 32, 35, 0.12);
  border-radius: 10px;
  color: #152427;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(20, 32, 35, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.view-actions .button:hover,
.view-actions .button:focus-visible,
.button.view-back:hover,
.button.view-back:focus-visible {
  color: #071f22;
  border-color: rgba(10, 143, 159, 0.38);
  background: #fff;
  box-shadow: 0 18px 36px rgba(10, 143, 159, 0.16);
  transform: translateY(-1px);
}

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

.stat-card,
.admin-card,
.table-wrap,
.view-error,
.view-empty,
.view-success {
  border: 1px solid rgba(20, 32, 35, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(20, 32, 35, 0.08);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  animation: admin-rise 520ms ease both;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--sun));
}

.stat-card span {
  color: #657275;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.stat-card strong {
  color: #111d20;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.admin-card {
  margin-top: 20px;
  padding: clamp(18px, 3vw, 26px);
}

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

.admin-link-card {
  position: relative;
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 20px;
  border: 1px solid rgba(20, 32, 35, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 252, 0.92));
  box-shadow: 0 18px 42px rgba(20, 32, 35, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
  animation: admin-rise 520ms ease both;
}

.admin-link-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px auto;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.7);
  transform: scaleX(0.45);
  transform-origin: right;
  transition: transform 180ms ease;
}

.admin-link-card:hover,
.admin-link-card:focus-visible {
  border-color: rgba(10, 143, 159, 0.36);
  box-shadow: 0 24px 56px rgba(10, 143, 159, 0.16);
  transform: translateY(-3px);
}

.admin-link-card:hover::after,
.admin-link-card:focus-visible::after {
  transform: scaleX(1);
}

.admin-link-icon {
  display: inline-grid !important;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #072f35 !important;
  background: linear-gradient(135deg, rgba(10, 143, 159, 0.14), rgba(242, 193, 78, 0.2));
  font-size: 1rem !important;
}

.admin-link-card span:not(.admin-link-icon) {
  color: #627175;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.admin-link-card strong {
  margin: 0;
  color: #121f22;
  font-size: 1.22rem;
  line-height: 1.12;
}

.admin-link-card small {
  color: #69777b;
  font-size: 0.9rem;
  line-height: 1.35;
}

.registrations-table {
  font-size: 0.86rem;
}

.registrations-table th {
  color: #dce9e7;
  background: #18272b;
  letter-spacing: 0.04em;
}

.registrations-table td {
  color: #243437;
}

.registrations-table tbody tr:nth-child(even) {
  background: #f7faf9;
}

.status-pill {
  border: 1px solid rgba(29, 97, 77, 0.14);
  color: #15543f;
  background: #edf8f1;
  letter-spacing: 0.03em;
}

.status-good {
  color: #15543f;
  background: #edf8f1;
}

.status-muted {
  color: #5d6668;
  background: #eef2f2;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 22px;
  padding: 5px;
  border: 1px solid rgba(20, 32, 35, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(20, 32, 35, 0.07);
}

.segmented-control a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 9px 14px;
  color: #5b686b;
  font-weight: 800;
  text-decoration: none;
}

.segmented-control a.active {
  color: #101b1e;
  background: #fff;
  box-shadow: 0 10px 22px rgba(20, 32, 35, 0.09);
}

.mini-bar-track {
  background: #e7edeb;
}

.mini-bar-fill {
  background: linear-gradient(90deg, #0a8f9f, #1d614d 72%, #f2c14e);
}

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

.custom-package-shell {
  max-width: 980px;
}

.custom-package-shell .hero-copy {
  max-width: 760px;
  color: var(--muted);
}

.custom-package-form {
  margin-top: 24px;
}

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

.custom-package-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-package-meta {
  margin: 0;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.custom-package-actions {
  margin-top: auto;
}

.generated-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.generated-link-row input {
  flex: 1;
}

.generated-link-field {
  display: block;
}

.admin-denied {
  box-shadow: 0 12px 32px rgba(20, 65, 70, 0.08);
}

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

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    align-items: center;
    background: linear-gradient(180deg, rgba(6, 35, 39, 0.86), rgba(6, 35, 39, 0.28));
  }

  nav {
    gap: 10px;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  .admin-side-nav nav a:not(.nav-cta) {
    display: flex;
  }

  .admin-side-nav nav {
    width: 100%;
    justify-content: stretch;
    justify-items: stretch;
  }

  .admin-side-nav nav a {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 37, 42, 0.8), rgba(4, 37, 42, 0.56) 55%, rgba(4, 37, 42, 0.82)),
      linear-gradient(90deg, rgba(4, 37, 42, 0.68), rgba(4, 37, 42, 0.16));
  }

  .trust-strip,
  .package-grid,
  .terms-layout,
  .admin-link-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .registration-details-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .intro,
  .fit-panel,
  .checkout {
    grid-template-columns: 1fr;
  }

  .quiz-result {
    grid-column: auto;
  }

  .checkout-copy {
    position: static;
  }

  .package-card.featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .view-heading {
    flex-direction: column;
  }

  .view-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .load-control {
    width: 100%;
    justify-content: space-between;
  }

  .load-control select {
    flex: 1;
    min-width: 0;
  }

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

  .reserve-form {
    padding: 20px;
  }

  .payment-divider {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .payment-divider::before,
  .payment-divider::after {
    width: 100%;
    flex: none;
  }

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

  .table-wrap {
    overflow: visible;
  }

  .registrations-table,
  .registrations-table thead,
  .registrations-table tbody,
  .registrations-table th,
  .registrations-table tr,
  .registrations-table td {
    display: block;
    width: 100%;
  }

  .registrations-table thead {
    display: none;
  }

  .registrations-table tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
  }

  .registrations-table tbody tr:nth-child(even) {
    background: var(--white);
  }

  .registrations-table td {
    border-bottom: 1px solid #edf2f0;
    padding: 10px 14px;
    text-align: left !important;
  }

  .registrations-table td:last-child {
    border-bottom: none;
  }

  .registrations-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .registrations-table td[data-label="View"]::before {
    margin-bottom: 8px;
  }

  .registration-details-row {
    border: 0;
    background: transparent;
  }

  .registration-details-row[hidden] {
    display: none !important;
  }

  .registration-details-row td {
    padding: 0 0 16px;
  }

  .registration-details-row td::before {
    content: none;
  }

  .simple-note {
    max-width: 100%;
  }

  .simple-note .note-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .simple-note .row-more-toggle {
    display: inline-block;
  }

  .registrations-table tr.row-expanded .simple-note {
    display: block;
  }

  .registrations-table tr.row-expanded .simple-note .note-content {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .client-record-table {
    width: 100%;
    table-layout: fixed;
  }

  .client-record-table tbody {
    display: table-row-group;
  }

  .client-record-table tr {
    display: table-row;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .client-record-table th,
  .client-record-table td {
    display: table-cell;
    width: auto;
    border-bottom: 1px solid #edf2f0;
    padding: 10px 12px;
    vertical-align: top;
  }

  .client-record-table th::before,
  .client-record-table td::before {
    content: none;
  }

  .client-record-table th:first-child,
  .client-record-table td:first-child {
    width: 38%;
    white-space: normal;
    color: var(--muted);
    font-weight: 800;
  }

  .client-record-table th:last-child,
  .client-record-table td:last-child {
    width: 62%;
    text-align: left;
  }

  .client-record-table th:last-child {
    color: var(--muted);
    font-weight: 800;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  nav {
    width: 100%;
    justify-content: flex-end;
  }

  .admin-side-nav nav {
    width: 100%;
    justify-content: stretch;
    justify-items: stretch;
  }

  .admin-side-nav nav a {
    justify-content: flex-start;
    text-align: left;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

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

  .brand small {
    font-size: 0.74rem;
  }

  .nav-cta {
    padding: 8px 12px;
  }

  .hero {
    min-height: 72vh;
    padding: 134px 16px 34px;
  }

  .hero-image {
    height: 72vh;
    object-position: 64% center;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.15rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
    line-height: 1.04;
  }

  .hero-copy,
  .intro-copy,
  .checkout-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

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

  .section {
    padding-inline: 16px;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stats div {
    min-width: 70px;
  }

  .trust-strip,
  .package-grid,
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .trust-strip span {
    min-height: 54px;
  }

  .package-card,
  .terms-summary,
  .terms-layout article {
    overflow-wrap: anywhere;
  }

  .submit-registration,
  .select-package,
  .button {
    width: 100%;
    padding-inline: 12px;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
  }

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

  .admin-link-grid,
  .registration-details-grid {
    grid-template-columns: 1fr;
  }
}

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

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

.webhook-target-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
  color: var(--ink);
}

.webhook-target-card input {
  width: auto;
}

.webhook-target-card span {
  font-weight: 800;
}

.webhook-target-card strong,
.webhook-target-card code {
  overflow-wrap: anywhere;
}

.webhook-target-card code {
  font-size: 0.84rem;
  color: var(--muted);
}

.trigger-output {
  margin-top: 18px;
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .webhook-targets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .site-header {
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 170px;
    overflow-wrap: anywhere;
  }

  .price {
    font-size: 2.15rem;
  }

  .terms-summary,
  .terms-layout article {
    padding: 18px;
  }
}

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

  .crm-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .view-shell {
    padding: 16px 12px 38px;
  }

  .view-heading {
    align-items: stretch;
    border-radius: 16px;
    padding: 20px;
  }

  .view-heading h1 {
    font-size: 2.15rem;
  }

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

  .view-actions .button,
  .button.view-back {
    width: 100%;
  }

  .admin-link-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-link-card {
    min-height: auto;
    grid-template-columns: 46px 1fr;
    column-gap: 14px;
    align-items: center;
  }

  .admin-link-icon {
    grid-row: span 3;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .segmented-control a {
    justify-content: center;
    padding-inline: 10px;
  }

  .mini-bar-label {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 760px) {
  .table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .registrations-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
    font-size: 0.92rem;
  }

  .registrations-table tbody {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  .registrations-table tbody tr {
    display: grid;
    width: 100%;
    max-width: 100%;
    gap: 0;
    margin-bottom: 0;
    border: 1px solid rgba(20, 32, 35, 0.1);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(20, 32, 35, 0.08);
  }

  .registrations-table td {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(82px, 28%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid rgba(20, 32, 35, 0.07);
    padding: 11px 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .registrations-table td::before {
    margin: 0;
    color: #69777b;
    font-size: 0.68rem;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }

  .registrations-table td:first-child {
    border-radius: 16px 16px 0 0;
    background: #f7faf9;
  }

  .registrations-table td:last-child {
    border-bottom: 0;
    border-radius: 0 0 16px 16px;
  }

  .registrations-table td[colspan] {
    display: block;
    padding: 0;
  }

  .registrations-table td[colspan]::before {
    content: none;
  }

  .registration-details-row {
    box-shadow: none !important;
  }

  .registration-details-row td {
    border: 0;
    background: transparent;
  }

  .registration-details-grid {
    gap: 10px;
    padding: 10px 0;
  }

  .simple-note {
    max-width: 100%;
  }

  .simple-note .note-content {
    line-height: 1.45;
  }

  .raw-event-details pre {
    max-width: 100%;
  }
}

@media (max-width: 440px) {
  .registrations-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .registrations-table td::before {
    color: #2f484d;
  }
}
