:root {
  color-scheme: light;
  --black: #050505;
  --ink: #121212;
  --panel: #191919;
  --soft-black: #242424;
  --white: #ffffff;
  --paper: #f7f7f4;
  --muted: #5f5f5f;
  --line: #dedbd4;
  --accent: #c52126;
  --accent-strong: #c52126;
  --focus: #ffd45a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max: 1180px;
  font-family: Montserrat, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-editor-open {
  overflow: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  background: var(--focus);
  color: var(--black);
  padding: 0.7rem 1rem;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: calc(76px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: calc(0.55rem + env(safe-area-inset-top)) clamp(1rem, 4vw, 3rem) 0.55rem;
  background: rgba(5, 5, 5, 0.94);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 112px;
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.7rem, 1.7vw, 1.7rem);
}

.desktop-nav a,
.phone-link {
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a {
  color: #f1f1f1;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 3px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.75rem;
}

.phone-link {
  white-space: nowrap;
  color: var(--white);
}

.header-signup {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  background: var(--accent-strong);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-signup:hover {
  background: #d72a2f;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 8rem clamp(1rem, 5vw, 4rem) 4rem;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero-slider,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1000ms ease, transform 5000ms linear;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.08) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 13vw, 9.8rem);
}

h2 {
  font-size: clamp(2.25rem, 6vw, 5.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.hero-copy {
  width: min(650px, 100%);
  margin: 1rem 0 0;
  color: #f2f2f2;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  background: var(--accent-strong);
  color: var(--black);
}

.button-primary:hover {
  background: #d72a2f;
}

.button-outline {
  border-color: var(--white);
  color: var(--white);
}

.button-outline:hover {
  background: var(--white);
  color: var(--black);
}

.button[data-push-enable] {
  border-color: #242424;
  background: #242424;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.button[data-push-enable]:hover,
.button[data-push-enable]:focus-visible {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.button[data-push-enable]:disabled {
  opacity: 1;
  cursor: default;
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

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

.section-copy {
  width: min(760px, 100%);
  margin: 0.9rem auto 0;
}

.center-copy {
  text-align: center;
}

.dark-copy {
  color: #dddddd;
}

.dark-section {
  background: var(--black);
  color: var(--white);
}

.light-section {
  background: var(--paper);
  color: var(--ink);
}

.feature-grid,
.membership-grid,
.trainer-grid,
.gallery-grid,
.partner-grid,
.promo-grid {
  display: grid;
  gap: 1.2rem;
}

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

.feature-card,
.membership-card,
.trainer-card,
.promo-card,
.partner-card,
.accordion-item,
.editor-card {
  border-radius: var(--radius);
}

.feature-card {
  min-height: 260px;
  padding: 1.35rem;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--accent-strong);
  color: var(--black);
  border-radius: 50%;
  font-weight: 950;
}

.feature-card p,
.trainer-card p,
.dark-section .section-heading h2 + p {
  color: #dddddd;
}

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

.image-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 280ms ease;
}

.image-card:hover img {
  transform: scale(1.04);
}

.image-card span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.8rem;
  background: rgba(0, 0, 0, 0.82);
  border-left: 4px solid var(--accent-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.image-band {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.image-band-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88)),
    url("assets/site-images/facility-bg.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.image-band .section-inner {
  position: relative;
  z-index: 1;
}

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

.partner-card {
  min-height: 158px;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
}

.partner-card img {
  max-height: 96px;
  object-fit: contain;
}

.health-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.health-logo-grid img {
  width: 100%;
  min-height: 132px;
  padding: 1rem;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.membership-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
}

.membership-card p {
  color: var(--muted);
}

.membership-card .button {
  margin-top: auto;
}

.membership-card.featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.membership-card.featured p {
  color: #dddddd;
}

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

.trainer-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: 1rem;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.trainer-card:nth-child(even) {
  grid-template-columns: 1.18fr 0.82fr;
}

.trainer-card:nth-child(even) img {
  order: 2;
}

.trainer-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.nasm-badge {
  width: min(170px, 46vw);
  margin: 1rem auto clamp(2rem, 5vw, 3.5rem);
}

.nasm-badge img {
  width: 100%;
  height: auto;
}

.quote {
  color: var(--accent-strong);
  font-weight: 900;
}

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

.gallery-item {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--black);
  cursor: pointer;
}

.gallery-item::after {
  content: "VIEW";
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  background: rgba(5, 5, 5, 0.86);
  color: var(--white);
  border-left: 4px solid var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  opacity: 0.78;
  transform: scale(1.04);
}

.background-feature {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.66)),
    url("assets/site-images/bg.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.hours-panel {
  padding: 1.35rem;
  background: rgba(5, 5, 5, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.hours-panel dl {
  margin: 1rem 0 0;
}

.hours-panel div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hours-panel dt {
  font-weight: 900;
}

.hours-panel dd {
  margin: 0;
  text-align: right;
}

.faq-section {
  background: linear-gradient(180deg, #050505 0%, #141414 100%);
}

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

.accordion-item {
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.accordion-item + .accordion-item {
  margin-top: 0.85rem;
}

.accordion-item h3 {
  margin: 0;
  font-size: 1rem;
}

.accordion-item button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.accordion-item [role="region"] {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.plus {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--black);
  font-size: 1.3rem;
}

.custom-content {
  border-top: 1px solid var(--line);
}

.editor-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
  border: 1px dashed #9e9e9e;
  border-radius: var(--radius);
}

.editable-blocks {
  display: grid;
  gap: 1rem;
}

.custom-block {
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
}

.custom-block.is-selected {
  border-color: var(--accent-strong);
}

.custom-block img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.custom-banner {
  min-height: 280px;
  display: grid;
  align-items: end;
  padding: clamp(1rem, 4vw, 2rem);
  background-position: center;
  background-size: cover;
  border-radius: var(--radius);
}

.custom-banner p {
  margin: 0;
  max-width: 760px;
  font-weight: 950;
  line-height: 1.08;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-section {
  background: var(--soft-black);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.25rem, 5vw, 4rem);
}

address {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-style: normal;
}

address a {
  color: var(--accent-strong);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: var(--black);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-form label,
.editor-card label {
  font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.editor-card input,
.editor-card select,
.editor-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.contact-form textarea,
.editor-card textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
}

.form-status {
  margin: 0;
  color: #ffb3b3;
  font-weight: 900;
}

.form-status.is-success {
  color: #b8ffbd;
}

.form-status.is-error {
  color: #ffb3b3;
}

.map-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--black);
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem) 6rem;
  background: var(--black);
  color: var(--white);
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: #dcdcdc;
}

.footer-brand img {
  width: 132px;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-brand a {
  color: var(--white);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-weight: 900;
  text-transform: uppercase;
}

.app-footer {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 1100;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  padding: 0.45rem;
  background: rgba(5, 5, 5, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.app-footer a,
.app-footer button {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 0.12rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.app-footer span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.app-footer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.app-footer .is-active,
.app-footer a:hover,
.app-footer button:hover {
  background: var(--accent-strong);
  color: var(--black);
}

.app-footer .is-active span,
.app-footer a:hover span,
.app-footer button:hover span {
  background: rgba(0, 0, 0, 0.14);
}

.rates-page {
  background: var(--black);
  color: var(--white);
  max-width: 100%;
  overflow-x: hidden;
}

.rates-main {
  min-height: 100vh;
  padding-top: calc(76px + env(safe-area-inset-top));
}

.rates-hero {
  min-height: calc(100vh - 76px - env(safe-area-inset-top));
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  background:
    linear-gradient(rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.94)),
    url("assets/site-images/bg.jpg");
  background-position: center;
  background-size: cover;
}

.rates-wrap {
  width: min(620px, calc(100vw - 2rem));
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.rates-copy {
  width: min(560px, 100%);
  color: #f2f2f2;
}

.rates-wrap h1 {
  display: grid;
  gap: 0.12em;
  color: var(--white);
  font-size: clamp(2.45rem, 8.2vw, 5.7rem);
  line-height: 0.95;
  word-break: normal;
  overflow-wrap: normal;
}

.rates-wrap h1 span {
  white-space: nowrap;
}

.rates-design {
  margin: 0;
  width: min(470px, 100%);
  max-width: 100%;
}

.rates-design img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.rates-portal-button {
  width: min(430px, 100%);
  justify-content: center;
  margin-top: 0.35rem;
  text-align: center;
  white-space: normal;
}

.rates-footer {
  background: var(--black);
}

.notifications-page {
  background: var(--black);
  color: var(--white);
}

.notifications-main {
  min-height: 100vh;
  padding: calc(76px + env(safe-area-inset-top) + clamp(1rem, 4vw, 2rem)) 1rem 2rem;
  background:
    linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.92)),
    url("assets/site-images/bg.jpg");
  background-position: center;
  background-size: cover;
}

.notifications-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.notifications-panel {
  padding: clamp(1rem, 4vw, 1.45rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.notifications-panel h1,
.notifications-panel h2 {
  max-width: none;
  color: #111;
  font-size: clamp(1.65rem, 6vw, 2.4rem);
  text-transform: none;
}

.notifications-panel p {
  margin: 0.45rem 0 0;
  color: #5f5f5f;
}

html.pdf-iframe-page,
body.pdf-iframe-page {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overflow-x: hidden;
}

body.pdf-iframe-page .notifications-main {
  display: flex;
  align-items: stretch;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  padding: calc(76px + env(safe-area-inset-top) + 0.75rem) 0.75rem calc(76px + env(safe-area-inset-bottom) + 0.75rem);
}

.notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.notifications-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.notification-item {
  max-width: 100%;
  overflow: hidden;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.notification-item h3 {
  color: var(--black);
  font-size: 1.12rem;
  text-transform: none;
}

.notification-item p {
  overflow-wrap: anywhere;
}

.notification-time {
  font-size: 0.82rem;
}

.notification-action {
  width: 100%;
  min-height: 48px;
  align-self: stretch;
  margin-top: 0.75rem;
  background: #df2f2f !important;
  color: #ffffff !important;
  border-color: #df2f2f !important;
  box-shadow: 0 10px 24px rgba(223, 47, 47, 0.28);
  opacity: 1 !important;
  visibility: visible !important;
}

.notification-action:hover,
.notification-action:focus-visible {
  background: #b9151b !important;
  color: #ffffff !important;
  border-color: #b9151b !important;
}

.notification-pdf-frame {
  width: 100%;
  height: min(68svh, 128vw);
  min-height: 0;
  margin-top: 0.35rem;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.notification-viewer {
  max-width: 980px;
}

.notification-viewer.is-pdf-viewer {
  width: min(1120px, 100%);
  max-width: none;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.notification-viewer.is-pdf-viewer > .notifications-panel:first-child {
  display: none;
}

.notification-media {
  overflow: hidden;
}

.notification-viewer.is-pdf-viewer .notification-media {
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.notification-media iframe {
  width: 100%;
  min-height: min(70vh, 620px);
  border: 0;
  border-radius: var(--radius);
  background: #050505;
}

.notification-media .notification-pdf-frame {
  min-height: 0;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.notification-media-image {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #050505;
}

.notification-pdf-card {
  display: grid;
  gap: 0.85rem;
  place-items: stretch;
  padding: clamp(0.75rem, 3vw, 1.25rem);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--black);
  overflow: hidden;
}

.notification-pdf-card.notification-pdf-embed {
  gap: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.notification-pdf-embed .notification-pdf-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  overflow: auto;
}

body.pdf-iframe-page .install-toast,
body.pdf-iframe-page .chat-fab {
  display: none !important;
}

.notification-pdf-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 6vw, 2.4rem);
}

.notification-pdf-card p {
  margin: 0;
  color: #5f5f5f;
}

.editor-shell {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  background: rgba(0, 0, 0, 0.66);
  padding: clamp(0.6rem, 3vw, 2rem);
  overflow: auto;
}

.editor-shell.is-open {
  display: block;
}

.editor-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}

.editor-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.editor-layout {
  display: grid;
  grid-template-columns: 0.72fr 0.78fr 1.2fr;
  gap: 1rem;
  padding: 1rem;
}

.editor-card {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.editor-card h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

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

.editor-actions button,
.block-list button,
.install-toast button {
  min-height: 44px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.editor-actions button:hover,
.block-list button:hover,
.install-toast button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--black);
}

.small-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.small-note.is-error {
  color: #a40000;
}

.small-note[role="status"],
.form-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #e8f7ed;
  color: #0b6f35;
  font-weight: 900;
}

.small-note[role="status"].is-error,
.form-status.is-error {
  background: #ffe7e5;
  color: #a5201b;
}

.block-list {
  display: grid;
  gap: 0.5rem;
}

.block-list button {
  width: 100%;
  text-align: left;
  display: grid;
  align-items: center;
  background: #f3efe8;
  color: var(--ink);
  border-color: rgba(18, 18, 18, 0.08);
}

.block-list button.is-selected {
  border-color: var(--accent-strong);
  background: rgba(197, 33, 38, 0.08);
}

.controls-card form {
  display: grid;
  gap: 0.85rem;
}

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

.control-field {
  display: grid;
  gap: 0.45rem;
}

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

.admin-main {
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.9)),
    url("assets/site-images/bg.jpg");
  background-position: center;
  background-size: cover;
}

.admin-login-card {
  width: min(540px, 100%);
  padding: clamp(1.2rem, 5vw, 2rem);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  color: var(--black);
  font-size: clamp(2.6rem, 10vw, 5rem);
}

.admin-login-card form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.admin-login-card input {
  min-height: 48px;
  padding: 0.7rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.admin-back {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--black);
  font-weight: 900;
}

.admin-error {
  margin: 0;
  color: #a40000;
  font-weight: 900;
}

.admin-toast {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 5000;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: #0b6f35;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.is-error {
  background: #c7332f;
}

.admin-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #080808 0, #121212 130px, #f4f1eb 130px, #f4f1eb 100%);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  background: rgba(5, 5, 5, 0.96);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-header h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

.admin-subtitle {
  margin: 0.45rem 0 0;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.78);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-kpis {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.1rem 0 0;
}

.admin-kpi {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.94), rgba(18, 18, 18, 0.94));
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.admin-kpi-label {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-kpi-value {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.4rem;
  font-weight: 950;
}

.admin-workbench {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.3fr) minmax(260px, 0.82fr);
  gap: 1rem;
  padding: 1rem 0 0;
}

.admin-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-card-head h2,
.admin-editor-layout .editor-card h2 {
  margin: 0.18rem 0 0;
  font-size: 1.1rem;
}

.admin-selection-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(197, 33, 38, 0.1);
  color: var(--accent-strong);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-workbench .editor-card,
.admin-preview .section-inner {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.admin-workbench .editor-card {
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.admin-preview {
  padding-top: 1.4rem;
}

.admin-shell-pro {
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.5)),
    url("assets/site-images/bg.jpg");
  background-position: center;
  background-size: cover;
}

.admin-pro-header {
  width: min(1480px, 100%);
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.admin-pro-brand {
  display: inline-flex;
  align-items: center;
}

.admin-pro-brand img {
  width: 118px;
  height: auto;
}

.admin-pro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-dashboard-frame {
  width: min(1480px, 100%);
  margin: 1rem auto 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 18px;
  background: rgba(244, 241, 235, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.admin-dashboard-hero {
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 242, 0.98));
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.admin-dashboard-hero h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #163d35;
}

.admin-dashboard-hero p:last-child {
  max-width: 68ch;
  margin: 0.6rem 0 0;
  color: #455163;
}

.admin-module-board {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.admin-module-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.admin-module-toolbar-copy h2 {
  margin: 0;
  color: #163d35;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.admin-module-toolbar-copy p {
  margin: 0.45rem 0 0;
  max-width: 62ch;
  color: #556074;
}

.admin-module-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-module-list {
  display: grid;
}

.admin-module-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) 0.45fr 0.45fr auto 0.5fr;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.admin-module-row:first-child {
  border-top: 0;
}

.admin-module-row h3 {
  margin: 0;
  color: #223047;
  font-size: 1.5rem;
  text-transform: none;
}

.admin-module-meta {
  color: #5a6578;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-module-actions {
  display: flex;
  justify-content: flex-start;
}

.admin-status-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.05rem;
  border: 1px solid rgba(40, 144, 87, 0.35);
  border-radius: 999px;
  background: rgba(40, 144, 87, 0.1);
  color: #2b7f52;
  font-weight: 900;
}

.admin-page-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 1rem;
}

.admin-page-grid-wide {
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
}

.admin-page-grid-narrow {
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
}

.admin-section-card,
.controls-card,
.admin-stack,
.admin-nested-card,
.admin-preview-card {
  padding: 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.admin-section-card,
.controls-card,
.admin-stack {
  align-content: start;
}

.admin-nested-card,
.admin-preview-card {
  margin-top: 1rem;
  background: #fcfbf8;
}

.push-admin-page {
  grid-template-columns: minmax(0, 1120px);
}

.push-admin-card {
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.push-admin-card h2 {
  margin: 0;
  color: #0f4f43;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  text-transform: none;
}

.push-admin-note {
  margin: 0.35rem 0 1rem;
  color: #666;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.45;
}

.push-admin-note code {
  font-family: "Courier New", monospace;
}

.push-admin-form {
  display: grid;
  gap: 0.8rem;
}

.push-admin-form label {
  color: #10231f;
  font-size: 1.2rem;
  line-height: 1.15;
}

.push-admin-form input,
.push-admin-form textarea {
  width: min(840px, 100%);
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.02);
}

.push-admin-form input {
  min-height: 54px;
}

.push-admin-form textarea {
  min-height: 118px;
  resize: vertical;
}

.push-upload-preview {
  display: grid;
  gap: 0.45rem;
  align-items: center;
  width: min(840px, 100%);
  min-height: 3.5rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f7f7;
  color: #5f5f5f;
}

.push-upload-preview img {
  width: min(220px, 100%);
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  background: #050505;
}

.push-send-button {
  width: min(840px, 100%);
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: #e77e32;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
}

.push-send-button:hover,
.push-send-button:focus-visible {
  background: #d76f25;
}

.push-clear-block {
  width: min(840px, 100%);
  margin-top: 1.5rem;
}

.push-clear-button {
  width: 100%;
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid #ffc9c9;
  border-radius: 14px;
  background: #ffe5e5;
  color: #982b2b;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
}

.push-clear-button:hover,
.push-clear-button:focus-visible {
  background: #ffd9d9;
  border-color: #ffb4b4;
}

.push-clear-block p {
  margin: 0.8rem 0 0;
  color: #666;
  font-size: 1rem;
}

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

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

.control-field {
  display: grid;
  gap: 0.45rem;
}

.checkbox-field {
  align-content: end;
}

.checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.checkbox-field input {
  width: auto;
  min-height: auto;
}

.rich-editor-shell {
  display: grid;
  gap: 0.55rem;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 12px;
  background: #f5f1ea;
}

.rich-toolbar button,
.rich-toolbar select,
.rich-toolbar input[type="color"] {
  min-height: 40px;
}

.rich-toolbar button {
  min-width: 42px;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.rich-toolbar button:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.rich-toolbar select {
  padding: 0 0.7rem;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 10px;
  background: var(--white);
}

.rich-toolbar input[type="color"] {
  width: 52px;
  padding: 0.2rem;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 10px;
  background: var(--white);
}

.rich-editor {
  min-height: 180px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
}

.rich-editor:focus {
  outline: 3px solid rgba(255, 212, 90, 0.7);
  outline-offset: 2px;
}

.faq-preview-intro,
.faq-public-intro {
  width: min(860px, 100%);
  margin: 0 auto 1rem;
  text-align: center;
}

.gallery-admin-preview {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #121212;
}

.gallery-admin-preview img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
}

.admin-image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.admin-image-preview-item {
  display: grid;
  gap: 0.55rem;
}

.admin-image-preview-item img,
.block-list button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: #111111;
}

.block-list button img {
  width: 76px;
  height: 52px;
  flex: 0 0 76px;
}

.block-list button[data-gallery-select] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.block-list button.is-dragging {
  opacity: 0.55;
  border-style: dashed;
}

.admin-chatbot-page {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.chatbot-settings-card,
.chatbot-workspace > .editor-card {
  border-radius: 14px;
}

.chatbot-card-head {
  align-items: center;
}

.chatbot-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.35fr) minmax(300px, 0.85fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.chatbot-workspace > * {
  min-width: 0;
}

.chatbot-list-card,
.chatbot-entry-card,
.chatbot-logs-card {
  margin: 0;
}

.chatbot-list,
.chatbot-log-list {
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 0.2rem;
}

.chatbot-entry-card textarea,
.chatbot-entry-card input {
  width: 100%;
}

.chatbot-entry-card textarea {
  min-height: 120px;
}

.chatbot-entry-card textarea[data-chatbot-answer] {
  min-height: 220px;
}

.chatbot-log-list {
  display: grid;
  gap: 0.85rem;
}

.chatbot-log-item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 14px;
  background: var(--white);
}

.chatbot-log-item h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: none;
}

.chatbot-log-item p {
  margin: 0.4rem 0 0;
  color: #556074;
  overflow-wrap: anywhere;
}

.chatbot-log-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.8rem;
  color: #7a8497;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chatbot-train-log {
  margin-top: 0.75rem;
}

.faq-public-intro p,
.rich-editor p {
  margin-top: 0;
}

.install-toast {
  position: fixed;
  right: 5.55rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 2550;
  width: min(390px, calc(100% - 7rem));
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.8rem;
  background: rgba(5, 5, 5, 0.94);
  color: var(--white);
  border: 1px solid rgba(220, 47, 51, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.install-toast p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.install-toast [data-install] {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--black);
}

.install-toast [data-dismiss-install] {
  min-width: 44px;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .install-toast {
    display: none !important;
  }
}

.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 2600;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chat-fab::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 0 0 5px 0;
  background: var(--accent-strong);
  transform: rotate(28deg);
}

.chat-fab:hover,
.chat-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.38);
}

.chat-window {
  position: fixed;
  right: 1rem;
  bottom: max(5.8rem, calc(env(safe-area-inset-bottom) + 5.8rem));
  z-index: 2600;
  width: min(360px, calc(100% - 2rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.98);
  color: var(--white);
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-head .title {
  font-size: 0.98rem;
  font-weight: 900;
}

.chat-close {
  position: static;
  width: 38px;
  height: 38px;
  border-width: 1px;
}

.chat-body {
  min-height: 280px;
  max-height: 46vh;
  overflow: auto;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.msg {
  display: flex;
}

.msg.user {
  justify-content: flex-end;
}

.msg .bubble {
  max-width: 84%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.45;
}

.msg.bot .bubble {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.msg.user .bubble {
  background: var(--accent-strong);
  color: var(--black);
}

.chat-body a {
  color: inherit;
  font-weight: 800;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-input input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.chat-input button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--accent-strong);
  color: var(--black);
  font-weight: 900;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 4vw, 2rem);
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: 92vh;
}

.lightbox-dialog img {
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--black);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.88);
  color: var(--white);
  font-weight: 950;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: auto 1fr;
    min-height: calc(82px + env(safe-area-inset-top));
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-bottom: 0.75rem;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .phone-link {
    display: none;
  }

  .app-footer {
    display: grid;
  }

  .feature-grid,
  .partner-grid,
  .health-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-kpis,
  .admin-workbench,
  .admin-page-grid,
  .chatbot-editor-grid,
  .chatbot-workspace,
  .admin-module-row {
    grid-template-columns: 1fr;
  }

  .admin-module-row {
    align-items: start;
  }

  .admin-module-actions {
    justify-content: flex-start;
  }

  .install-toast {
    right: 5.35rem;
    bottom: max(7rem, calc(env(safe-area-inset-bottom) + 7rem));
    width: min(320px, calc(100% - 6.75rem));
  }

  .chat-fab {
    bottom: max(7rem, calc(env(safe-area-inset-bottom) + 7rem));
  }

  .chat-window {
    bottom: max(6rem, calc(env(safe-area-inset-bottom) + 6rem));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: calc(96px + env(safe-area-inset-top));
  }

  .hero {
    min-height: 88vh;
    padding: calc(8.7rem + env(safe-area-inset-top)) 1rem 6rem;
  }

  .rates-main {
    min-width: 0;
    padding-top: calc(94px + env(safe-area-inset-top));
  }

  .notifications-main {
    padding-top: calc(96px + env(safe-area-inset-top));
  }

  body.pdf-iframe-page .notifications-main {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: calc(94px + env(safe-area-inset-top) + 0.35rem) 0.35rem calc(72px + env(safe-area-inset-bottom) + 0.35rem);
  }

  .notification-pdf-card.notification-pdf-embed {
    height: 100%;
    min-height: 0;
    border-radius: 8px;
  }

  .rates-hero {
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
  }

  .rates-wrap h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.2rem) !important;
  }

  .rates-wrap h1 span {
    white-space: normal;
  }

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

  .notifications-panel h1,
  .notifications-panel h2 {
    font-size: clamp(2rem, 12vw, 3.2rem) !important;
  }

  body {
    font-size: 17px;
  }

  h1,
  .hero h1[data-home-title] {
    font-size: clamp(3.75rem, 21vw, 6.25rem) !important;
  }

  h2,
  .section-heading h2,
  .section-heading h2[id] {
    font-size: clamp(2.35rem, 11vw, 3.7rem) !important;
  }

  .hero-copy,
  .hero-copy[data-home-copy] {
    font-size: clamp(1.12rem, 5.2vw, 1.45rem) !important;
    line-height: 1.55;
  }

  .section-copy,
  .section-copy[data-signup-copy],
  .section-copy[data-plans-copy],
  .section-copy[data-about-copy],
  .section-copy[data-contact-copy] {
    font-size: clamp(1.04rem, 4.6vw, 1.22rem) !important;
    line-height: 1.6;
  }

  .feature-grid,
  .promo-grid,
  .partner-grid,
  .health-logo-grid,
  .membership-grid,
  .trainer-card,
  .trainer-card:nth-child(even),
  .gallery-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trainer-card:nth-child(even) img {
    order: 0;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .button-row .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    padding-bottom: 7rem;
  }

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

  .admin-module-toolbar,
  .admin-pro-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-pro-actions,
  .admin-module-toolbar-actions {
    width: 100%;
  }

  .chat-window {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    height: min(58dvh, 430px);
    max-height: min(72dvh, 520px);
    background: #c52126;
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
  }

  .chat-head,
  .chat-input {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .chat-body {
    min-height: 0;
    height: 100%;
    max-height: none;
  }

  .msg.bot .bubble {
    background: var(--white);
    color: var(--black);
  }

  .msg.user .bubble {
    background: var(--black);
    color: var(--white);
  }

  .chat-input input {
    border-color: rgba(255, 255, 255, 0.65);
    background: var(--white);
    color: var(--black);
  }

  .chat-input button {
    background: var(--black);
    color: var(--white);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
