html[data-client-route],
html[data-client-route] body,
html[data-client-route] #root {
  max-width: 100%;
  overflow-x: hidden;
}

html[data-client-route] * {
  min-width: 0;
}

html[data-client-route] img,
html[data-client-route] canvas,
html[data-client-route] svg {
  max-width: 100%;
}

html[data-client-route="home"] .section-padding,
html[data-client-route="booking"] .section-padding,
html[data-client-route="client"] .section-padding {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-left: clamp(18px, 4vw, 40px);
  padding-right: clamp(18px, 4vw, 40px);
}

html[data-client-route="home"] section {
  isolation: isolate;
}

html[data-client-route="home"] section.section-padding {
  width: 100% !important;
  margin-inline: 0 !important;
}

html[data-client-route="home"] a[href="/agendar"] button,
html[data-client-route="booking"] button,
html[data-client-route="login"] button,
html[data-client-route="client"] button {
  min-height: 44px;
}

html[data-client-route="client"] main {
  width: min(100%, 1080px);
}

html[data-client-route="client"] .aranhas-account-security {
  margin-top: 28px;
}

@media (max-width: 760px) {
  html[data-client-route="home"] canvas {
    display: none !important;
  }

  html[data-client-route="home"] section.min-h-screen {
    min-height: 78svh !important;
    padding-top: 76px;
    padding-bottom: 44px;
  }

  html[data-client-route="home"] section.min-h-screen [class*="blur"],
  html[data-client-route="booking"] [class*="blur"] {
    opacity: .45;
    filter: blur(70px);
  }

  html[data-client-route="home"] section.min-h-screen img[src="/logo.png"] {
    width: min(62vw, 230px) !important;
    filter: drop-shadow(0 0 18px rgba(212,175,55,.32)) !important;
  }

  html[data-client-route="home"] section.min-h-screen .mb-12 {
    margin-bottom: 28px !important;
  }

  html[data-client-route="home"] section.min-h-screen a[href="/agendar"],
  html[data-client-route="home"] section.min-h-screen a[href="/agendar"] button {
    width: 100%;
  }

  html[data-client-route="home"] section.min-h-screen a[href="/agendar"] button {
    border-radius: 16px !important;
    font-size: 15px !important;
    justify-content: center;
    padding: 14px 18px !important;
  }

  html[data-client-route="home"] section.py-24 {
    padding-top: 54px !important;
    padding-bottom: 58px !important;
  }

  html[data-client-route="home"] h3 {
    font-size: clamp(44px, 16vw, 68px) !important;
    line-height: .92 !important;
    margin-bottom: 10px !important;
  }

  html[data-client-route="home"] p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  html[data-client-route="home"] section.py-24 a[href="/agendar"],
  html[data-client-route="home"] section.py-24 a[href="/agendar"] button {
    width: 100%;
  }

  html[data-client-route="home"] section.py-24 button {
    border-radius: 16px !important;
    padding: 14px 18px !important;
  }

  html[data-client-route="booking"] .min-h-screen {
    min-height: 100svh !important;
  }

  html[data-client-route="booking"] .glass-panel {
    border-radius: 18px !important;
    box-shadow: 0 20px 70px rgba(0,0,0,.34) !important;
  }

  html[data-client-route="booking"] .glass-panel.p-10 {
    padding: 24px !important;
  }

  html[data-client-route="booking"] a[href="/"] {
    left: 18px !important;
    top: 18px !important;
  }

  html[data-client-route="booking"] h1,
  html[data-client-route="booking"] h2 {
    letter-spacing: .08em !important;
  }

  html[data-client-route="booking"] h1.text-2xl {
    font-size: 20px !important;
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-client-route="booking"] h2.text-3xl {
    font-size: 32px !important;
  }

  html[data-client-route="booking"] [class*="max-w-4xl"] {
    max-width: 100% !important;
  }

  html[data-client-route="booking"] [class*="justify-between"].mb-2 {
    background: #0B0B0B;
    border: 1px solid #1A1A1A;
    border-radius: 18px;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
  }

  html[data-client-route="booking"] [class*="justify-between"].mb-2::-webkit-scrollbar {
    display: none;
  }

  html[data-client-route="booking"] [class*="justify-between"].mb-2 > div {
    flex: 0 0 auto;
  }

  html[data-client-route="booking"] [class*="justify-between"].mb-2 [class*="w-8"] {
    height: 34px !important;
    width: 34px !important;
  }

  html[data-client-route="booking"] [class*="justify-between"].text-xs {
    display: none !important;
  }

  html[data-client-route="booking"] .grid {
    gap: 12px !important;
  }

  html[data-client-route="booking"] .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-client-route="booking"] .md\:grid-cols-2,
  html[data-client-route="booking"] .md\:grid-cols-6,
  html[data-client-route="booking"] .md\:grid-cols-7 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-client-route="booking"] button.glass-panel {
    padding: 14px !important;
  }

  html[data-client-route="booking"] button.glass-panel .flex.items-center.gap-4 {
    align-items: flex-start;
    gap: 12px !important;
  }

  html[data-client-route="booking"] button.glass-panel img {
    height: 54px !important;
    width: 54px !important;
  }

  html[data-client-route="booking"] .flex.justify-between.mt-10 {
    background: rgba(5,5,5,.94);
    border-top: 1px solid #1A1A1A;
    bottom: 0;
    gap: 10px;
    left: 0;
    margin-top: 22px !important;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    position: sticky;
    right: 0;
    z-index: 20;
  }

  html[data-client-route="booking"] .flex.justify-between.mt-10 > button {
    border-radius: 14px !important;
    flex: 1 1 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html[data-client-route="booking"] input,
  html[data-client-route="booking"] textarea,
  html[data-client-route="booking"] select {
    font-size: 16px !important;
  }

  html[data-client-route="booking"] [role="dialog"],
  html[data-client-route="booking"] [data-radix-dialog-content] {
    max-height: 92svh !important;
    overflow-y: auto !important;
    width: min(94vw, 520px) !important;
  }

  html[data-client-route="client"] main {
    padding: 22px 16px 90px !important;
  }

  html[data-client-route="client"] header {
    align-items: stretch !important;
    background: radial-gradient(circle at 90% 0%, rgba(212,175,55,.10), transparent 34%), #0B0B0B;
    border: 1px solid #1A1815;
    border-radius: 22px;
    flex-direction: column !important;
    gap: 16px;
    margin-bottom: 18px !important;
    padding: 16px;
  }

  html[data-client-route="client"] header h1 {
    font-size: clamp(40px, 13vw, 56px) !important;
    line-height: .95 !important;
  }

  html[data-client-route="client"] header > a,
  html[data-client-route="client"] header button {
    width: 100%;
  }

  html[data-client-route="client"] header [class*="border-b"] {
    border-bottom: 0 !important;
    display: grid !important;
    gap: 8px;
    grid-template-columns: 1fr;
    margin-top: 8px !important;
  }

  html[data-client-route="client"] header [class*="border-b"] button {
    background: #111 !important;
    border: 1px solid #242424 !important;
    border-radius: 14px !important;
    color: #F3EFE7 !important;
    min-height: 44px;
    padding: 0 12px !important;
  }

  html[data-client-route="client"] header [class*="border-b"] button[class*="text-\\[\\#D4AF37\\]"] {
    background: #D4AF37 !important;
    border-color: #D4AF37 !important;
    color: #050505 !important;
  }

  html[data-client-route="client"] .aranhas-client-booking-cta {
    align-items: center;
    background: #D4AF37;
    border-radius: 16px;
    color: #050505 !important;
    display: flex !important;
    font-weight: 900;
    justify-content: center;
    min-height: 50px;
    order: 9;
    padding: 0 16px;
    text-align: center;
    width: 100%;
  }

  html[data-client-route="client"] main > .grid,
  html[data-client-route="client"] .grid.md\\:grid-cols-\\[1fr_2fr\\] {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important;
  }

  html[data-client-route="client"] section,
  html[data-client-route="client"] .aranhas-account-security {
    border-radius: 18px !important;
  }

  html[data-client-route="client"] section.bg-\\[\\#0D0B09\\],
  html[data-client-route="client"] .aranhas-account-security,
  html[data-client-route="client"] [class*="bg-\\[\\#0D0B09\\]"] {
    padding: 16px !important;
  }

  html[data-client-route="client"] .space-y-8 {
    gap: 14px !important;
  }

  html[data-client-route="client"] .aranhas-account-security {
    margin-top: 14px !important;
  }

  html[data-client-route="client"] .aranhas-account-security__grid {
    grid-template-columns: 1fr !important;
  }

  html[data-client-route="client"] input,
  html[data-client-route="client"] textarea,
  html[data-client-route="client"] select {
    font-size: 16px !important;
  }
}

@media (max-width: 420px) {
  html[data-client-route="booking"] .grid-cols-4,
  html[data-client-route="booking"] .md\:grid-cols-6,
  html[data-client-route="booking"] .md\:grid-cols-7 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-client-route="booking"] .flex.justify-between.py-2,
  html[data-client-route="booking"] .flex.justify-between.py-3 {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
