:root {
  --deep: #1f3a33;
  --olive: #556b4f;
  --gold: #c9a34e;
  --champagne: #e8d9c5;
  --coffee: #4b2e25;
  --off: #f7f2ea;
  --ink: #18221d;
  --muted: #6d766e;
  --line: rgba(75, 46, 37, 0.14);
  --shadow: 0 24px 80px rgba(31, 58, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--off);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(201, 163, 78, 0.17), transparent 34rem),
    linear-gradient(135deg, rgba(31, 58, 51, 0.08), transparent 48rem);
}

body.age-gate-open {
  overflow: hidden;
}

.age-locked {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-frame {
  min-height: 100vh;
  padding-bottom: 74px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 52px);
  color: var(--off);
  background: rgba(31, 58, 51, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 217, 197, 0.18);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(201, 163, 78, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
}

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

.brand strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
}

.brand small {
  max-width: 240px;
  color: rgba(247, 242, 234, 0.72);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  gap: 18px;
  color: rgba(247, 242, 234, 0.8);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a,
.outline-link,
.whatsapp-button {
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--gold);
}

.whatsapp-button,
.gold-btn,
.light-btn,
.ghost-btn,
.danger-btn {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  border: 0;
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
  background: var(--gold);
  box-shadow: 0 16px 42px rgba(31, 58, 51, 0.25);
}

.whatsapp-button,
.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  background: var(--gold);
  box-shadow: 0 12px 32px rgba(201, 163, 78, 0.22);
}

.light-btn {
  color: var(--deep);
  background: var(--off);
}

.ghost-btn {
  color: var(--deep);
  border: 1px solid var(--line);
  background: rgba(247, 242, 234, 0.72);
}

.danger-btn {
  color: #7b1f1f;
  border: 1px solid rgba(123, 31, 31, 0.2);
  background: #fff4f0;
}

.text-link-btn {
  width: fit-content;
  min-height: auto;
  border: 0;
  padding: 0;
  color: var(--olive);
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  background: transparent;
}

#app {
  outline: 0;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: 52px clamp(18px, 6vw, 76px);
  color: var(--off);
  background:
    linear-gradient(90deg, rgba(31, 58, 51, 0.94), rgba(31, 58, 51, 0.64), rgba(31, 58, 51, 0.32)),
    url("/assets/hero-joelma.jpg") center/cover;
}

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

.script {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: "Allura", cursive;
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--coffee);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.06;
}

.hero h1,
.hero h2,
.cta-band h2,
.success-panel h1 {
  color: var(--off);
}

h1 {
  font-size: clamp(42px, 8vw, 78px);
}

h2 {
  font-size: clamp(31px, 5vw, 48px);
}

h3 {
  font-size: 26px;
}

p {
  line-height: 1.68;
}

.hero p {
  max-width: 640px;
  color: rgba(247, 242, 234, 0.84);
  font-size: 17px;
}

.hero-actions,
.button-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.outline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(232, 217, 197, 0.45);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--off);
  font-weight: 700;
}

.champagne-section,
.contact-section,
.content-section,
.page-title,
.detail-layout,
.auth-layout,
.admin-shell,
.account-hero,
.account-grid,
.success-panel,
.cta-band {
  padding: clamp(28px, 6vw, 72px) clamp(18px, 6vw, 76px);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  background: var(--off);
}

.champagne-section {
  background: var(--champagne);
}

.two-col,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading,
.page-title {
  max-width: 860px;
}

.section-heading {
  margin-bottom: 24px;
}

.page-title p {
  color: var(--muted);
}

.card-grid,
.media-grid,
.stats-grid,
.admin-grid,
.account-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.account-grid {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.card,
.form-shell,
.detail-panel,
.media-card,
.admin-card,
.account-card,
.stats-grid article,
.summary-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 242, 234, 0.88);
  box-shadow: var(--shadow);
}

.card,
.detail-panel,
.admin-card,
.account-card,
.stats-grid article,
.summary-box {
  padding: 22px;
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(201, 163, 78, 0.45);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(201, 163, 78, 0.1);
}

.card p,
.detail-panel p,
.media-card p,
.admin-card p {
  color: var(--muted);
}

.pill-row span {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  background: rgba(85, 107, 79, 0.14);
}

.cta-band,
.success-panel {
  color: var(--off);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(31, 58, 51, 0.96), rgba(31, 58, 51, 0.88)),
    radial-gradient(circle at 80% 0, rgba(201, 163, 78, 0.18), transparent 28rem);
}

.cta-band .gold-btn,
.success-panel .gold-btn {
  margin-top: 18px;
}

.detail-layout {
  align-items: stretch;
}

.detail-panel {
  display: grid;
  gap: 18px;
}

.photo-panel {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(31, 58, 51, 0.16), rgba(31, 58, 51, 0.5)),
    url("https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=1200&q=82") center/cover;
  box-shadow: var(--shadow);
}

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

.benefit-list li {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(232, 217, 197, 0.5);
}

.form-shell {
  display: grid;
  gap: 18px;
  max-width: 860px;
  padding: 24px;
  margin: 0 clamp(18px, 6vw, 76px) clamp(34px, 6vw, 72px);
}

.auth-layout .form-shell {
  margin: 0;
}

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

label,
.mini-form {
  display: grid;
  gap: 8px;
}

label {
  color: var(--coffee);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
}

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

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

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--olive);
  font-weight: 800;
}

.recovery-result,
.admin-warning {
  border: 1px solid rgba(201, 163, 78, 0.26);
  border-radius: 8px;
  padding: 14px;
  background: rgba(232, 217, 197, 0.36);
}

.recovery-result.success {
  border-color: rgba(85, 107, 79, 0.32);
  background: rgba(85, 107, 79, 0.12);
}

.admin-counter {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--deep);
  background: rgba(201, 163, 78, 0.2);
}

.client-diagnostics {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(85, 107, 79, 0.38);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: rgba(247, 242, 234, 0.62);
}

.client-diagnostics strong {
  color: var(--coffee);
}

.client-diagnostics span,
.client-diagnostics small {
  overflow-wrap: anywhere;
}

.account-note,
.account-callout {
  max-width: 760px;
  border: 1px solid rgba(201, 163, 78, 0.32);
  border-radius: 8px;
  padding: 14px;
  background: rgba(201, 163, 78, 0.12);
}

.account-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 22px;
  align-items: center;
  color: var(--off);
  background:
    linear-gradient(135deg, rgba(31, 58, 51, 0.96), rgba(31, 58, 51, 0.78)),
    url("https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1500&q=82") center/cover;
}

.account-hero h1,
.account-hero p {
  color: var(--off);
}

.account-actions,
.appointment-stack {
  display: grid;
  gap: 12px;
}

.account-form {
  margin: 0;
  max-width: none;
}

.account-card {
  display: grid;
  gap: 16px;
}

.appointment-mini {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.72);
}

.appointment-mini strong,
.appointment-mini span,
.appointment-mini small {
  display: block;
}

.appointment-mini small {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--deep);
  font-weight: 800;
  background: rgba(85, 107, 79, 0.14);
}

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.auth-layout {
  min-height: calc(100vh - 156px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(31, 58, 51, 0.93), rgba(31, 58, 51, 0.68)),
    url("https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1600&q=82") center/cover;
}

.auth-card {
  width: min(100%, 560px);
}

.media-grid {
  padding: 0 clamp(18px, 6vw, 76px) clamp(34px, 6vw, 72px);
}

.media-card {
  overflow: hidden;
}

.media-button {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.media-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(31, 58, 51, 0.2);
}

.media-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.media-placeholder {
  display: grid;
  width: 100%;
  height: 210px;
  place-items: center;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(31, 58, 51, 0.96), rgba(31, 58, 51, 0.76)),
    radial-gradient(circle at 80% 20%, rgba(201, 163, 78, 0.2), transparent 18rem);
}

.media-card span,
.media-card h3,
.media-card p,
.media-card small {
  display: block;
  margin-left: 18px;
  margin-right: 18px;
}

.media-card span {
  margin-top: 16px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.media-card small {
  margin-bottom: 18px;
  color: var(--muted);
}

.vip-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 58, 51, 0.72);
  backdrop-filter: blur(10px);
}

.vip-modal {
  position: relative;
  width: min(940px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid rgba(201, 163, 78, 0.28);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--off);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  align-items: center;
  color: var(--deep);
  font-weight: 800;
  background: var(--champagne);
}

.video-frame {
  position: relative;
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--deep);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vip-detail-image {
  width: 100%;
  max-height: 70vh;
  margin-top: 18px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--champagne);
}

.vip-audio {
  width: 100%;
  margin-top: 18px;
}

.vip-video {
  width: 100%;
  max-height: 70vh;
  margin-top: 18px;
  border-radius: 8px;
  background: var(--deep);
}

.vip-text-content {
  margin-top: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 18px;
  color: var(--coffee);
  line-height: 1.75;
  background: rgba(232, 217, 197, 0.58);
}

.vip-url-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hidden-field {
  display: none !important;
}

.age-gate,
.age-denied {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--off);
  background:
    linear-gradient(135deg, rgba(31, 58, 51, 0.94), rgba(31, 58, 51, 0.86)),
    radial-gradient(circle at 80% 18%, rgba(201, 163, 78, 0.2), transparent 26rem);
}

.age-gate-card {
  width: min(620px, 100%);
  border: 1px solid rgba(201, 163, 78, 0.62);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  background: rgba(31, 58, 51, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.age-gate-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(201, 163, 78, 0.8);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 700;
}

.age-gate-card h1 {
  color: var(--off);
  font-size: clamp(32px, 6vw, 48px);
}

.age-gate-card p {
  color: rgba(247, 242, 234, 0.86);
}

.age-gate-card small {
  display: block;
  margin: 16px auto 0;
  color: rgba(232, 217, 197, 0.78);
  line-height: 1.55;
}

.age-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.summary-box {
  display: grid;
  gap: 8px;
  max-width: 540px;
  margin: 22px auto 0;
  color: var(--coffee);
  text-align: left;
}

.pix-line {
  color: rgba(247, 242, 234, 0.82);
}

.link-btn {
  text-decoration: none;
}

.admin-shell .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
}

.stats-grid {
  margin-bottom: 20px;
}

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

.stats-grid strong {
  color: var(--coffee);
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
}

.stats-grid span,
.table-list span,
.admin-item span {
  color: var(--muted);
  font-size: 13px;
}

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

.table-list,
.client-grid,
.admin-card {
  display: grid;
  gap: 12px;
}

.table-list article,
.client-card,
.admin-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
}

.table-list article,
.admin-item,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.client-card {
  display: grid;
  gap: 6px;
}

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

.client-card small {
  color: var(--olive);
  font-weight: 800;
}

.table-list select {
  max-width: 160px;
}

.mini-form {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.settings-grid,
.hours-grid {
  display: grid;
  gap: 10px;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.settings-grid article,
.hours-grid span,
.hours-grid strong {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.7);
}

.settings-grid strong,
.settings-grid span {
  display: block;
}

.hours-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.hours-grid span {
  color: var(--muted);
}

.hours-grid strong {
  color: var(--coffee);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(232, 217, 197, 0.2);
  background: rgba(31, 58, 51, 0.98);
}

body.admin-logged-in .bottom-nav {
  grid-template-columns: repeat(6, 1fr);
}

.bottom-nav a {
  display: grid;
  min-height: 64px;
  place-items: center;
  color: rgba(247, 242, 234, 0.76);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.bottom-nav a.active {
  color: var(--gold);
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 28px;
  color: var(--off);
  text-align: center;
  background: var(--deep);
  transition: opacity 280ms ease, visibility 280ms ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-mark {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 46px;
  font-weight: 700;
}

.splash-screen p {
  max-width: 340px;
  margin: 0;
  color: var(--gold);
  font-family: "Allura", cursive;
  font-size: 42px;
  line-height: 1.05;
}

@media (display-mode: standalone) {
  .app-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

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

  .admin-grid,
  .account-grid,
  .two-col,
  .detail-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .photo-panel {
    min-height: 340px;
  }
}

@media (max-width: 780px) {
  .app-header {
    padding: 12px 16px;
  }

  .desktop-nav,
  .whatsapp-button {
    display: none;
  }

  .bottom-nav {
    display: grid;
  }

  .brand small {
    max-width: 190px;
  }

  .hero {
    min-height: calc(100vh - 70px);
    align-items: end;
    padding-bottom: 44px;
  }

  .hero-actions,
  .account-callout,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .age-gate-actions {
    grid-template-columns: 1fr;
  }

  .gold-btn,
  .light-btn,
  .outline-link,
  .ghost-btn,
  .danger-btn {
    width: 100%;
  }

  .card-grid,
  .media-grid,
  .stats-grid,
  .form-row,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .form-shell {
    margin-right: 18px;
    margin-left: 18px;
  }

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

  .admin-shell .section-heading,
  .table-list article,
  .admin-item,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .table-list select {
    max-width: none;
  }
}
