:root {
  --bg: #edf1f8;
  --surface: #ffffff;
  --text: #203b72;
  --muted: #5d6f95;
  --primary: #2b4f97;
  --primary-dark: #1f3f79;
  --accent: #6cd04d;
  --accent-dark: #3fae49;
  --border: #d5e0f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, #dce7fb 0%, transparent 42%),
    radial-gradient(circle at 90% 6%, #d9f0d8 0%, transparent 28%),
    linear-gradient(180deg, #eff3fa, #e7eef9);
  color: var(--text);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 226, 245, 0.72);
  overflow: visible;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 58px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 28px rgba(26, 47, 92, 0.12);
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(196, 214, 239, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 12px 30px rgba(17, 38, 76, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 58px;
  padding: 0;
}

.brand {
  position: relative;
  width: 200px;
  height: 58px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 1.2rem;
}

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

.header-guest-actions,
.header-session {
  display: none;
  align-items: center;
  gap: 0.55rem;
}

.header-session {
  position: relative;
}

body[data-auth-header-state="guest"] .header-guest-actions {
  display: flex;
}

body[data-auth-header-state="authenticated"] .header-session {
  display: flex;
}

.header-profile {
  position: relative;
}

.header-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.36rem 0.42rem 0.36rem 0.46rem;
  border: 1px solid rgba(190, 204, 231, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 247, 255, 0.92));
  color: #203b72;
  box-shadow: 0 14px 26px rgba(26, 47, 92, 0.1);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.header-profile-trigger:hover,
.header-profile-trigger:focus-visible,
.header-profile.is-open .header-profile-trigger {
  transform: translateY(-1px);
  border-color: rgba(78, 120, 201, 0.34);
  box-shadow: 0 18px 32px rgba(26, 47, 92, 0.14);
  outline: none;
}

.header-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b4f97, #4d79d0);
  color: #f4f8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.header-profile-avatar svg {
  width: 20px;
  height: 20px;
}

.header-profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  min-width: 0;
}

.header-profile-copy small {
  color: #7083a9;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-profile-copy strong {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #203b72;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.2;
}

.header-profile-chevron {
  color: #6d80a6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.header-profile.is-open .header-profile-chevron {
  transform: rotate(180deg);
}

.header-profile-chevron svg {
  width: 16px;
  height: 16px;
}

.header-profile-menu {
  position: absolute;
  top: calc(100% + 0.72rem);
  right: 0;
  min-width: 220px;
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid rgba(201, 214, 239, 0.96);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 44px rgba(21, 40, 78, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.2s ease;
}

.header-profile.is-open .header-profile-menu {
  opacity: 1;
  transform: translateY(0);
}

.header-profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.78rem 0.9rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #23447f;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.header-profile-menu-item:hover,
.header-profile-menu-item:focus-visible {
  background: rgba(43, 79, 151, 0.08);
  color: #163a78;
  outline: none;
  transform: translateX(2px);
}

.header-profile-menu-item.is-danger {
  color: #9f2d3f;
}

.header-profile-menu-item.is-danger:hover,
.header-profile-menu-item.is-danger:focus-visible {
  background: rgba(204, 74, 103, 0.1);
  color: #8d2135;
}

.header-logout-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.header-actions .btn-ghost {
  border: 1px solid rgba(71, 141, 83, 0.22);
  color: #215f32;
  background: rgba(108, 208, 77, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.header-actions .btn-ghost:hover {
  background: rgba(108, 208, 77, 0.2);
  color: #184b27;
  box-shadow: 0 10px 20px rgba(63, 174, 73, 0.16);
}

.brand img {
  position: absolute;
  top: -38px;
  left: 0;
  height: 150px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(25, 54, 105, 0.14));
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: #2b4f97;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #1f3f79;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.66rem 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, #1d4ed8, #2563eb 52%, #1e40af);
  color: #fff;
  box-shadow: 0 14px 26px rgba(30, 64, 175, 0.34);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #1e40af, #1d4ed8 52%, #1e3a8a);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 30px rgba(30, 64, 175, 0.4);
}

.btn-ghost {
  border: 1px solid rgba(201, 218, 247, 0.28);
  color: #f3f8ff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.header-search-trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(43, 79, 151, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 240, 253, 0.92));
  color: #21406f;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(26, 47, 92, 0.08);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 79, 151, 0.28);
  box-shadow: 0 16px 28px rgba(26, 47, 92, 0.12);
}

.header-search-trigger svg {
  width: 16px;
  height: 16px;
}

.header-search-trigger small {
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  background: rgba(43, 79, 151, 0.1);
  color: #5e769a;
  font-size: 0.68rem;
  font-weight: 800;
}

body[data-search-state="open"] {
  overflow: hidden;
}

.site-search[hidden] {
  display: none;
}

.site-search {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 35, 0.62);
  backdrop-filter: blur(10px);
}

.site-search-dialog {
  position: relative;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  margin: 18px auto;
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(202, 217, 241, 0.72);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(240, 246, 254, 0.96));
  box-shadow: 0 36px 90px rgba(10, 25, 49, 0.34);
}

.site-search-header {
  display: grid;
  gap: 0.9rem;
}

.site-search-field-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.site-search-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 62px;
  padding: 0 1rem;
  border-radius: 20px;
  border: 1px solid rgba(187, 206, 236, 0.82);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-search-field svg {
  width: 18px;
  height: 18px;
  color: #55709b;
  flex-shrink: 0;
}

.site-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #16325e;
  font: inherit;
  font-size: 1rem;
}

.site-search-close {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(191, 206, 234, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #39557f;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.site-search-copy {
  display: grid;
  gap: 0.3rem;
}

.site-search-copy strong {
  color: #173767;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.38rem;
  line-height: 1.1;
}

.site-search-copy span {
  color: #617a98;
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.site-search-suggestion {
  min-height: 38px;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(193, 209, 234, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #295080;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.site-search-results {
  margin-top: 1rem;
}

.site-search-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.site-search-results-head span {
  color: #173767;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-search-results-head small {
  color: #6d829f;
  font-size: 0.76rem;
  font-weight: 700;
}

.site-search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.site-search-result-card,
.site-search-result {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(200, 216, 240, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(31, 63, 122, 0.08);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-search-result-card:hover,
.site-search-result:hover {
  transform: translateY(-1px);
  border-color: rgba(63, 108, 196, 0.34);
  box-shadow: 0 20px 30px rgba(31, 63, 122, 0.12);
}

.site-search-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.site-search-result-meta span {
  color: #295080;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-search-result-meta small {
  color: #6b8098;
  font-size: 0.74rem;
  font-weight: 700;
}

.site-search-result-card strong,
.site-search-result strong {
  color: #16325e;
  font-size: 1rem;
  line-height: 1.2;
}

.site-search-result-card p,
.site-search-result p,
.site-search-empty-state p {
  margin: 0;
  color: #657e9b;
  font-size: 0.85rem;
  line-height: 1.55;
}

.site-search-result em {
  color: #476894;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.site-search-empty-state {
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px dashed rgba(191, 208, 235, 0.92);
  background: rgba(244, 248, 253, 0.96);
}

.site-search-empty-state strong {
  color: #183867;
  display: block;
  margin-bottom: 0.4rem;
}

@media (max-width: 1080px) {
  .header-search-trigger small {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-search-results-grid {
    grid-template-columns: 1fr;
  }

  .site-search-field-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-search-trigger span {
    display: none;
  }

  .header-search-trigger {
    padding-inline: 0.72rem;
  }

  .site-search-dialog {
    width: min(100vw - 20px, 100%);
    margin: 10px auto;
    padding: 0.85rem;
    border-radius: 24px;
  }

  .site-search-copy strong {
    font-size: 1.14rem;
  }
}

.hero {
  position: relative;
  min-height: 84vh;
  padding: 3.55rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(54, 107, 221, 0.32), transparent 25%),
    radial-gradient(circle at 84% 24%, rgba(78, 199, 133, 0.2), transparent 22%),
    linear-gradient(135deg, #071223 0%, #0d1b35 42%, #11254a 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(2px) saturate(1.06);
  transform: scale(1.02);
}

.hero-scenes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  inset: -6%;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: scale(1.08);
  mix-blend-mode: normal;
}

.hero-scene.is-active {
  opacity: 0.72;
}

.hero-scene::before,
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-scene::before {
  background-size: cover;
  background-position: center;
  animation: heroSceneFloat 14s ease-in-out infinite;
  filter: saturate(1.02) contrast(0.98) brightness(0.78);
}

.hero-scene::after {
  opacity: 1;
}

.hero-scene-one::before {
  background-image: url("assets/hero-barbearia-1.jpg.jpg");
  background-position: center 28%;
}

.hero-scene-one::after {
  background:
    linear-gradient(90deg, rgba(6, 13, 26, 0.52), rgba(8, 19, 38, 0.22) 42%, rgba(8, 18, 34, 0.46)),
    radial-gradient(circle at 70% 25%, rgba(255, 210, 145, 0.12), transparent 22%);
}

.hero-scene-two::before {
  background-image: url("assets/hero-barbearia-2.jpg.jpg");
  background-position: center 36%;
}

.hero-scene-two::after {
  background:
    linear-gradient(90deg, rgba(5, 12, 24, 0.54), rgba(8, 20, 39, 0.18) 44%, rgba(6, 16, 30, 0.46)),
    radial-gradient(circle at 18% 35%, rgba(134, 194, 255, 0.1), transparent 24%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 25, 0.62) 0%, rgba(7, 18, 34, 0.34) 46%, rgba(6, 15, 29, 0.5) 100%),
    radial-gradient(circle at 80% 44%, rgba(61, 140, 255, 0.12), transparent 30%),
    rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  inset: auto auto 7% 54%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 132, 255, 0.2), rgba(58, 132, 255, 0));
  filter: blur(18px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
  padding-top: 0.35rem;
}

.badge {
  display: inline-flex;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #c2d3f1;
  background: rgba(237, 244, 255, 0.95);
  color: #2c4d8e;
  font-weight: 700;
  font-size: 0.8rem;
}

.hero .badge {
  border-color: rgba(162, 193, 248, 0.55);
  background: rgba(27, 72, 156, 0.34);
  color: #d8e8ff;
}

h1 {
  margin: 1rem 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -1.2px;
}

.hero h1 {
  color: #ffffff;
}

.hero-text,
.section-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero .hero-text {
  color: #e5eeff;
  font-size: 1.14rem;
  max-width: 610px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0 0.7rem;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  text-align: center;
}

.money-proof {
  margin: 0.55rem 0 0;
  color: #bfd6ff;
  font-weight: 600;
  line-height: 1.5;
}

.hero-value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-value-strip span {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 194, 239, 0.34);
  background: rgba(12, 28, 58, 0.56);
  color: #f2f7ff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero .btn-primary {
  padding: 0.85rem 1.18rem;
  box-shadow: 0 20px 34px rgba(30, 64, 175, 0.34);
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
}

.micro-trust {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.micro-trust span {
  border: 1px solid rgba(193, 215, 248, 0.45);
  background: rgba(15, 38, 78, 0.56);
  color: #e6efff;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.stats div {
  background: rgba(10, 24, 49, 0.64);
  border: 1px solid rgba(170, 195, 238, 0.24);
  border-radius: 14px;
  padding: 0.8rem;
  backdrop-filter: blur(8px);
}

.stats strong {
  display: block;
  font-size: 1.02rem;
  color: #ffffff;
}

.stats span {
  color: #d0def7;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-top: 0.25rem;
  display: block;
}

.control-note {
  margin: 0.9rem 0 0;
  color: #d7e4ff;
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 620px;
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(226, 239, 255, 0.025));
  border: 1px solid rgba(214, 228, 249, 0.1);
  border-radius: 28px;
  padding: 1.25rem 1.1rem 1rem;
  box-shadow:
    0 12px 24px rgba(8, 19, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 0;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.card,
.step,
.compare-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(206, 221, 245, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 14px 30px rgba(31, 63, 122, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.hero-kicker,
.hero-title,
.hero-subtitle,
.hero-proof,
.hero-value-strip,
.hero-cta-group,
.hero-urgency-line,
.hero-trust {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeIn 0.65s ease forwards;
}

.hero-title {
  animation-delay: 0.12s;
}

.hero-subtitle {
  animation-delay: 0.26s;
}

.hero-proof {
  animation-delay: 0.38s;
}

.hero-value-strip {
  animation-delay: 0.46s;
}

.hero-cta-group {
  animation-delay: 0.58s;
}

.hero-urgency-line {
  animation-delay: 0.68s;
}

.hero-trust {
  animation-delay: 0.78s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSceneFloat {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
  100% {
    transform: scale(1.03) translate3d(1%, -1%, 0);
  }
}

.chat-head {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.05rem 0 0.95rem;
  background: linear-gradient(180deg, #107f64 0%, #0e6d57 100%);
  border-bottom: 1px solid rgba(5, 62, 48, 0.5);
}

.chat-head img {
  width: 200px;
  max-height: 90px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.chat-head strong,
.chat-head small {
  display: none;
}

.chat-line {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
  line-height: 1.45;
}

.chat-line.bot {
  background: #e7f2ff;
  color: #203d74;
}

.chat-line.client {
  background: #eaf7e7;
  color: #1d5a31;
}

.chat-note {
  color: rgba(241, 247, 255, 0.92);
  margin: 0.1rem 0.2rem 0.1rem;
  font-size: 0.9rem;
  text-align: center;
  max-width: 320px;
}

.phone-frame {
  position: relative;
  width: 268px;
  height: 582px;
  background: #0c1018;
  border-radius: 38px;
  padding: 11px;
  box-shadow:
    0 24px 42px rgba(10, 20, 38, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -4px 10px rgba(0, 0, 0, 0.6);
  transform: rotate(0deg);
  z-index: 1;
}

.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  right: -3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #617186, #364458);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.phone-frame::before {
  top: 108px;
  width: 3px;
  height: 44px;
}

.phone-frame::after {
  top: 162px;
  width: 3px;
  height: 70px;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 25px;
  background: #05090f;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.notch-speaker {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2c333d, #5e6773);
}

.notch-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6784bd, #090f19 70%);
}

.phone-screen {
  position: relative;
  border-radius: 29px;
  overflow: hidden;
  background: #e8f5ec;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.phone-app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.75s ease;
}

.phone-app.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.phone-app-chat {
  z-index: 2;
}

.phone-app-calendar {
  z-index: 3;
  background:
    radial-gradient(circle at 18% 16%, rgba(125, 179, 255, 0.22), transparent 25%),
    linear-gradient(180deg, #eef4ff 0%, #e8f0fe 100%);
  color: #1c3568;
}

.phone-app-checkin {
  z-index: 4;
  background:
    radial-gradient(circle at 86% 10%, rgba(57, 191, 128, 0.16), transparent 24%),
    radial-gradient(circle at 14% 88%, rgba(42, 114, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #f6fbf7 0%, #eef8f1 100%);
  color: #214339;
}

.phone-app-validation {
  z-index: 5;
  background:
    radial-gradient(circle at 90% 10%, rgba(70, 202, 117, 0.14), transparent 24%),
    radial-gradient(circle at 10% 88%, rgba(47, 115, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #f7fcf9 0%, #eff8f2 100%);
  color: #21453a;
}

.phone-app-dashboard {
  z-index: 6;
  background:
    radial-gradient(circle at 88% 8%, rgba(82, 149, 255, 0.18), transparent 24%),
    radial-gradient(circle at 6% 92%, rgba(65, 196, 110, 0.14), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  color: #173565;
}

.phone-screen.is-calendar .phone-app-chat {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px) scale(0.98);
}

.phone-screen.is-calendar .phone-app-calendar {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.phone-screen.is-checkin .phone-app-chat,
.phone-screen.is-checkin .phone-app-calendar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-22px) scale(0.97);
}

.phone-screen.is-checkin .phone-app-checkin {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.phone-screen.is-validation .phone-app-chat,
.phone-screen.is-validation .phone-app-calendar,
.phone-screen.is-validation .phone-app-checkin {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-22px) scale(0.97);
}

.phone-screen.is-validation .phone-app-validation {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.phone-screen.is-dashboard .phone-app-chat,
.phone-screen.is-dashboard .phone-app-calendar,
.phone-screen.is-dashboard .phone-app-checkin,
.phone-screen.is-dashboard .phone-app-validation {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-22px) scale(0.97);
}

.phone-screen.is-dashboard .phone-app-dashboard {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.chat-window {
  position: relative;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(201, 255, 223, 0.2), transparent 35%),
    linear-gradient(180deg, #d8efe3 0%, #d2ebdd 100%);
  padding: 0.95rem 0.88rem 0.82rem;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}

.chat-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.chat-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.client-row {
  justify-content: flex-end;
}

.bot-row {
  justify-content: flex-start;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  flex: 0 0 26px;
}

.client-avatar {
  background: #dce9ff;
  color: #2a4f95;
}

.bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  background-image: url("./Imagens/image-removebg-robo.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
}

.audio-bubble {
  position: relative;
  padding-right: 1rem;
}

.audio-bubble p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bubble {
  max-width: 78%;
  border-radius: 16px;
  padding: 0.62rem 0.78rem;
  box-shadow: 0 8px 18px rgba(15, 31, 43, 0.12);
}

.bubble p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.35;
}

.bubble small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: #5e739d;
}

.bubble.client {
  background: #eef1f6;
  color: #223445;
}

.bubble.bot {
  background: #d8fdd2;
  color: #1f5130;
}

.success-bubble {
  border: 1px solid rgba(62, 168, 91, 0.22);
}

.option-bubble {
  width: 100%;
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.option-buttons button {
  border: 1px solid #c0d3ef;
  background: #ffffff;
  color: #1e4178;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.option-buttons button.is-selected {
  background: #1e4178;
  border-color: #1e4178;
  color: #ffffff;
  transform: scale(0.96);
  box-shadow: 0 8px 16px rgba(30, 65, 120, 0.22);
}

.option-buttons .audio-option {
  background: #edf7ec;
  border-color: #bde0b8;
  color: #246135;
}

.typing {
  display: inline-flex;
  gap: 4px;
  margin: 0.2rem 0 0.15rem 2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d9f8a;
  animation: blink 1.2s infinite;
}

.chat-input-bar {
  border-top: 1px solid #d1e4d7;
  background: #f2f6f4;
  padding: 0.62rem 0.72rem 0.74rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chat-input-pill {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d6e2dc;
  background: #fff;
  color: #7c8e97;
  font-size: 0.76rem;
  padding: 0.38rem 0.62rem;
}

.chat-input-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #0d8f6f;
  color: #fff;
  font-size: 0.8rem;
  box-shadow: 0 6px 10px rgba(13, 143, 111, 0.32);
}

.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(137, 168, 225, 0.28);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
}

.calendar-head-copy {
  display: grid;
  gap: 0.16rem;
}

.calendar-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b74ab;
}

.calendar-head strong {
  font-size: 1rem;
}

.calendar-subtitle {
  color: #6e81ab;
  font-size: 0.66rem;
  line-height: 1.35;
}

.calendar-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  background: rgba(32, 85, 191, 0.1);
  color: #2450a7;
  font-size: 0.7rem;
  font-weight: 700;
}

.calendar-toolbar {
  display: flex;
  gap: 0.38rem;
  padding: 0.55rem 0.9rem 0.7rem;
  background: rgba(255, 255, 255, 0.44);
  border-bottom: 1px solid rgba(174, 195, 235, 0.22);
}

.calendar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.32rem 0.54rem;
  border-radius: 999px;
  background: rgba(75, 110, 187, 0.08);
  color: #5973a9;
  font-size: 0.66rem;
  font-weight: 700;
}

.calendar-chip.is-active {
  background: #2f73ff;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(47, 115, 255, 0.2);
}

.calendar-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.45rem;
  padding: 0.9rem 0.7rem 0.75rem 0.6rem;
  flex: 1;
}

.calendar-hours {
  display: grid;
  grid-template-rows: 38px repeat(16, 1fr);
  color: #6d81ae;
  font-size: 0.62rem;
  font-weight: 700;
}

.calendar-hours span {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0.15rem;
  padding-right: 0.12rem;
}

.calendar-grid {
  position: relative;
  display: grid;
  grid-template-rows: 38px repeat(16, 1fr);
  gap: 0.18rem;
  padding: 0 0.2rem 0.2rem;
}

.calendar-grid::before {
  content: "";
  position: absolute;
  inset: 38px 0 0;
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(166, 190, 234, 0.14) 0,
      rgba(166, 190, 234, 0.14) 1px,
      transparent 1px,
      transparent calc((100% - 0px) / 16)
    ),
    repeating-linear-gradient(
      180deg,
      rgba(140, 166, 214, 0.08) 0,
      rgba(140, 166, 214, 0.08) calc((100% - 0px) / 16 / 2),
      transparent calc((100% - 0px) / 16 / 2),
      transparent calc((100% - 0px) / 16)
    ),
    rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(172, 195, 236, 0.4);
}

.calendar-column-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.7rem 0 0.9rem;
  color: #43609a;
  font-size: 0.72rem;
}

.calendar-column-header div {
  display: grid;
  gap: 0.1rem;
}

.calendar-column-header strong {
  font-size: 0.8rem;
}

.calendar-column-header small {
  color: #6280b9;
  font-size: 0.66rem;
  font-weight: 700;
}

.calendar-now-line {
  position: relative;
  z-index: 2;
  grid-row: var(--line-row);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.42rem;
}

.calendar-now-line span {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(32, 100, 230, 0.9), rgba(95, 171, 255, 0.25));
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.08);
}

.calendar-now-line span::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #2f73ff;
  box-shadow: 0 0 0 5px rgba(47, 115, 255, 0.12);
}

.calendar-now-line small {
  color: #2f73ff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-slot {
  position: relative;
  z-index: 1;
  grid-row: var(--slot-start) / span var(--slot-size);
  margin: 0 0.35rem;
  border-radius: 16px;
  padding: 0.48rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.16rem;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(34, 59, 109, 0.08);
}

.calendar-slot small,
.calendar-slot strong,
.calendar-slot p,
.calendar-tag {
  position: relative;
  z-index: 1;
}

.calendar-slot small {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.78;
}

.calendar-slot strong {
  font-size: 0.83rem;
}

.calendar-slot p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.25;
}

.slot-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 255, 0.92));
  color: #49618f;
  border: 1px solid rgba(173, 194, 231, 0.42);
}

.slot-highlight {
  background: linear-gradient(180deg, rgba(52, 109, 229, 0.96), rgba(35, 84, 194, 0.98));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 16px 28px rgba(37, 79, 171, 0.28);
  opacity: 0;
  transform: translate3d(86px, 168px, 0) scale(0.42);
  transform-origin: right bottom;
}

.phone-screen.is-calendar .slot-highlight {
  animation: calendarEntryIn 0.95s cubic-bezier(0.18, 0.88, 0.22, 1) forwards;
  animation-delay: 0.5s;
}

.calendar-entry-glow {
  position: absolute;
  inset: auto -14% -58% auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 203, 255, 0.55), rgba(145, 203, 255, 0));
}

.calendar-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.18rem;
  padding: 0.22rem 0.46rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.6rem;
  font-weight: 700;
}

.calendar-transfer {
  position: absolute;
  right: 0.8rem;
  bottom: 4.35rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.52rem;
  width: 172px;
  padding: 0.56rem 0.66rem;
  border-radius: 16px;
  background: rgba(19, 37, 72, 0.9);
  color: #f5f8ff;
  box-shadow: 0 16px 30px rgba(10, 23, 46, 0.22);
  opacity: 0;
  transform: translate3d(18px, 26px, 0) scale(0.9);
}

.phone-screen.is-calendar .calendar-transfer {
  animation: calendarTransfer 1.15s cubic-bezier(0.18, 0.88, 0.22, 1) forwards;
}

.calendar-transfer-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #44d46b, #28b256);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  flex: 0 0 26px;
}

.calendar-transfer strong,
.calendar-transfer small {
  display: block;
}

.calendar-transfer strong {
  font-size: 0.68rem;
  line-height: 1.2;
}

.calendar-transfer small {
  margin-top: 0.1rem;
  color: #c8d8ff;
  font-size: 0.62rem;
}

.calendar-footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 0.9rem 0.86rem;
  border-top: 1px solid rgba(171, 193, 231, 0.34);
  background: rgba(255, 255, 255, 0.76);
}

.calendar-footer p {
  margin: 0;
  color: #31528f;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f73ff;
  box-shadow: 0 0 0 5px rgba(47, 115, 255, 0.12);
}

.checkin-head,
.checkin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.95rem 0.95rem 0.82rem;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(171, 214, 190, 0.3);
}

.checkin-label {
  margin: 0 0 0.14rem;
  color: #5d8d74;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkin-head strong {
  font-size: 0.94rem;
}

.checkin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: rgba(53, 179, 92, 0.12);
  color: #2f7a4d;
  font-size: 0.62rem;
  font-weight: 800;
}

.checkin-body {
  flex: 1;
  padding: 0.82rem 0.78rem 0.72rem;
  display: grid;
  gap: 0.62rem;
}

.checkin-alert-card,
.checkin-choice,
.checkin-response-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(182, 219, 196, 0.48);
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(36, 78, 54, 0.08);
}

.checkin-alert-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.56rem;
  padding: 0.74rem;
}

.checkin-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #18b86b, #109055);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
}

.checkin-alert-copy strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.16rem;
}

.checkin-alert-copy p,
.checkin-alert-copy small {
  margin: 0;
  color: #5c7d70;
  font-size: 0.64rem;
  line-height: 1.4;
  font-weight: 700;
}

.checkin-alert-copy small {
  display: block;
  margin-top: 0.18rem;
}

.checkin-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.52rem;
}

.checkin-choice {
  padding: 0.72rem;
  display: grid;
  gap: 0.18rem;
}

.checkin-choice small {
  color: #6c8c7d;
  font-size: 0.62rem;
  font-weight: 700;
}

.checkin-choice strong {
  font-size: 0.96rem;
}

.checkin-choice span {
  color: #618072;
  font-size: 0.64rem;
  font-weight: 700;
}

.primary-choice {
  background: linear-gradient(160deg, rgba(53, 179, 92, 0.96), rgba(41, 151, 79, 0.98));
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.primary-choice small,
.primary-choice span {
  color: rgba(239, 255, 244, 0.92);
}

.checkin-response-card {
  padding: 0.72rem;
}

.checkin-response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.checkin-response-head strong {
  font-size: 0.74rem;
}

.checkin-response-head small {
  color: #6f8f81;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checkin-response-list {
  display: grid;
  gap: 0.42rem;
}

.checkin-response {
  border: 1px solid rgba(175, 208, 188, 0.6);
  border-radius: 12px;
  background: rgba(245, 251, 247, 0.92);
  color: #355d4c;
  padding: 0.56rem 0.62rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: left;
}

.checkin-response.is-selected {
  background: linear-gradient(180deg, #18b86b, #109055);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(24, 184, 107, 0.2);
}

.checkin-footer {
  justify-content: flex-start;
  padding-top: 0.74rem;
  border-top: 1px solid rgba(171, 214, 190, 0.28);
  border-bottom: 0;
}

.checkin-footer p {
  margin: 0;
  color: #4d7362;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.checkin-footer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18b86b;
  box-shadow: 0 0 0 5px rgba(24, 184, 107, 0.14);
  flex: 0 0 9px;
}

.phone-screen.is-checkin .checkin-alert-card,
.phone-screen.is-checkin .checkin-choice,
.phone-screen.is-checkin .checkin-response-card {
  animation: checkinRise 0.7s ease forwards;
}

.phone-screen.is-checkin .checkin-choice:nth-child(1) {
  animation-delay: 0.16s;
}

.phone-screen.is-checkin .checkin-choice:nth-child(2) {
  animation-delay: 0.28s;
}

.phone-screen.is-checkin .checkin-response-card {
  animation-delay: 0.38s;
}

@keyframes checkinRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.validation-head,
.validation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.95rem 0.95rem 0.82rem;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(171, 214, 190, 0.32);
}

.validation-label {
  margin: 0 0 0.14rem;
  color: #5f9177;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.validation-head strong {
  font-size: 0.94rem;
}

.validation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: rgba(53, 179, 92, 0.12);
  color: #2f7a4d;
  font-size: 0.62rem;
  font-weight: 800;
}

.validation-body {
  flex: 1;
  padding: 0.82rem 0.78rem 0.72rem;
  display: grid;
  gap: 0.62rem;
}

.validation-client-card,
.validation-mini-card,
.validation-stepper {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(182, 219, 196, 0.48);
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(36, 78, 54, 0.08);
}

.validation-client-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.56rem;
  align-items: center;
  padding: 0.72rem;
}

.validation-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #2f73ff, #4ba4ff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.validation-client-copy {
  display: grid;
  gap: 0.1rem;
}

.validation-client-copy strong {
  font-size: 0.83rem;
}

.validation-client-copy span,
.validation-client-copy small {
  color: #5b7d71;
  font-size: 0.64rem;
  font-weight: 700;
}

.validation-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.48rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
}

.validation-status.is-present {
  background: rgba(53, 179, 92, 0.14);
  color: #2e7d4d;
}

.validation-stepper {
  padding: 0.72rem;
  display: grid;
  gap: 0.56rem;
}

.validation-step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.52rem;
  align-items: start;
  color: #648377;
}

.validation-step span {
  width: 16px;
  height: 16px;
  margin-top: 0.12rem;
  border-radius: 50%;
  border: 2px solid rgba(113, 156, 129, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(120, 179, 139, 0.08);
}

.validation-step strong {
  display: block;
  color: #2c5444;
  font-size: 0.72rem;
  margin-bottom: 0.08rem;
}

.validation-step small {
  color: #628174;
  font-size: 0.63rem;
  line-height: 1.35;
  font-weight: 700;
}

.validation-step.is-done span,
.validation-step.is-active span {
  border-color: transparent;
  background: linear-gradient(180deg, #35b35c, #2b934d);
}

.validation-step.is-active span {
  box-shadow: 0 0 0 5px rgba(53, 179, 92, 0.14);
}

.validation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.52rem;
}

.validation-mini-card {
  padding: 0.72rem;
  display: grid;
  gap: 0.18rem;
}

.validation-mini-card small {
  color: #6c8c7d;
  font-size: 0.62rem;
  font-weight: 700;
}

.validation-mini-card strong {
  font-size: 0.96rem;
}

.validation-mini-card span {
  color: #618072;
  font-size: 0.64rem;
  font-weight: 700;
}

.success-card {
  background: linear-gradient(160deg, rgba(53, 179, 92, 0.96), rgba(41, 151, 79, 0.98));
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.success-card small,
.success-card span {
  color: rgba(239, 255, 244, 0.92);
}

.validation-footer {
  justify-content: flex-start;
  padding-top: 0.74rem;
  border-top: 1px solid rgba(171, 214, 190, 0.28);
  border-bottom: 0;
}

.validation-footer p {
  margin: 0;
  color: #4d7362;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.validation-footer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35b35c;
  box-shadow: 0 0 0 5px rgba(53, 179, 92, 0.14);
  flex: 0 0 9px;
}

.phone-screen.is-validation .validation-client-card,
.phone-screen.is-validation .validation-stepper,
.phone-screen.is-validation .validation-mini-card {
  animation: validationRise 0.7s ease forwards;
}

.phone-screen.is-validation .validation-stepper {
  animation-delay: 0.18s;
}

.phone-screen.is-validation .validation-mini-card:nth-child(1) {
  animation-delay: 0.3s;
}

.phone-screen.is-validation .validation-mini-card:nth-child(2) {
  animation-delay: 0.42s;
}

@keyframes validationRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dashboard-head,
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.95rem 0.95rem 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(170, 195, 235, 0.28);
}

.dashboard-label {
  margin: 0 0 0.14rem;
  color: #5874aa;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-head strong {
  font-size: 0.96rem;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.52rem;
  border-radius: 999px;
  background: rgba(47, 115, 255, 0.12);
  color: #2353af;
  font-size: 0.64rem;
  font-weight: 800;
}

.dashboard-body {
  flex: 1;
  padding: 0.82rem 0.78rem 0.72rem;
  display: grid;
  gap: 0.62rem;
}

.dashboard-kpis,
.dashboard-grid {
  display: grid;
  gap: 0.52rem;
}

.dashboard-kpis {
  grid-template-columns: 1fr 1fr;
}

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

.dashboard-card,
.dashboard-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(183, 205, 240, 0.5);
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(33, 60, 112, 0.08);
}

.dashboard-card {
  padding: 0.72rem 0.74rem;
  display: grid;
  gap: 0.18rem;
}

.dashboard-card small {
  color: #6480b2;
  font-size: 0.62rem;
  font-weight: 700;
}

.dashboard-card strong {
  font-size: 1.14rem;
  line-height: 1;
}

.dashboard-card span {
  color: #5470a0;
  font-size: 0.64rem;
  font-weight: 700;
}

.primary-card {
  background: linear-gradient(160deg, rgba(47, 115, 255, 0.92), rgba(28, 86, 208, 0.96));
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.primary-card small,
.primary-card span {
  color: rgba(235, 243, 255, 0.92);
}

.highlight-card {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, rgba(247, 252, 255, 0.95), rgba(233, 244, 255, 0.92));
}

.dashboard-panel {
  padding: 0.68rem 0.72rem 0.76rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.panel-head strong {
  font-size: 0.73rem;
}

.panel-head small {
  color: #6f86b1;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-bars {
  display: grid;
  gap: 0.44rem;
}

.service-bar-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.14rem;
  color: #47618f;
  font-size: 0.65rem;
  font-weight: 700;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(188, 206, 239, 0.42);
  overflow: hidden;
}

.bar-track span {
  display: block;
  width: var(--bar-size);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f73ff, #58a6ff);
}

.payment-list,
.summary-list {
  margin: 0;
  padding: 0;
}

.payment-list {
  display: grid;
  gap: 0.38rem;
}

.payment-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  color: #4d6796;
  font-size: 0.66rem;
  font-weight: 700;
}

.compact-panel {
  min-height: 112px;
}

.summary-list {
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

.summary-list li {
  position: relative;
  padding-left: 0.82rem;
  color: #326345;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.35;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35b35c;
}

.dashboard-footer {
  justify-content: flex-start;
  padding-top: 0.74rem;
  border-top: 1px solid rgba(170, 195, 235, 0.26);
  border-bottom: 0;
}

.dashboard-footer p {
  margin: 0;
  color: #486593;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-footer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35b35c;
  box-shadow: 0 0 0 5px rgba(53, 179, 92, 0.14);
  flex: 0 0 9px;
}

.phone-screen.is-dashboard .dashboard-card,
.phone-screen.is-dashboard .dashboard-panel {
  animation: dashboardRise 0.7s ease forwards;
}

.phone-screen.is-dashboard .dashboard-kpis .dashboard-card:nth-child(1) {
  animation-delay: 0.12s;
}

.phone-screen.is-dashboard .dashboard-kpis .dashboard-card:nth-child(2) {
  animation-delay: 0.22s;
}

.phone-screen.is-dashboard .dashboard-kpis .dashboard-card:nth-child(3) {
  animation-delay: 0.32s;
}

.phone-screen.is-dashboard .dashboard-panel:nth-of-type(1) {
  animation-delay: 0.42s;
}

.phone-screen.is-dashboard .dashboard-grid .dashboard-panel:nth-child(1) {
  animation-delay: 0.5s;
}

.phone-screen.is-dashboard .dashboard-grid .dashboard-panel:nth-child(2) {
  animation-delay: 0.58s;
}

@keyframes dashboardRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes calendarEntryIn {
  0% {
    opacity: 0;
    transform: translate3d(86px, 168px, 0) scale(0.42);
    filter: saturate(1.2) brightness(1.1);
  }
  58% {
    opacity: 1;
    transform: translate3d(-2px, -6px, 0) scale(1.03);
    filter: saturate(1.05) brightness(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes calendarTransfer {
  0% {
    opacity: 0;
    transform: translate3d(26px, 26px, 0) scale(0.88);
  }
  18% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate3d(-56px, -118px, 0) scale(0.86);
  }
  100% {
    opacity: 0;
    transform: translate3d(-72px, -144px, 0) scale(0.74);
  }
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.section {
  padding: 4.2rem 0;
}

.alt {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.card,
.step {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d2def1;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(31, 63, 122, 0.06);
}

.icon-chip {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1f3f79;
  background: linear-gradient(140deg, #dce8ff, #eaf3ff);
}

.card p,
.step p {
  color: var(--muted);
  line-height: 1.65;
}

.step span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #eaf1ff, #d8e7ff);
  color: #244582;
  font-weight: 800;
}

.chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips span {
  border: 1px solid #c9d9f2;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.85);
  color: #2a3557;
  font-weight: 600;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.3rem;
}

.compare-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  border: 1px solid #d2def1;
  padding: 1.1rem 1.1rem 1rem;
}

.compare-card h3 {
  margin: 0 0 0.55rem;
}

.compare-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #3a4d73;
  line-height: 1.7;
}

.compare-card.muted {
  background: rgba(255, 255, 255, 0.56);
}

.compare-card.highlight {
  border-color: #b8d7ab;
  background: linear-gradient(150deg, #f4fbf3, #ecf5ff);
  box-shadow: 0 10px 20px rgba(33, 83, 43, 0.08);
}

.cta-box {
  background:
    radial-gradient(circle at 88% 10%, rgba(120, 225, 108, 0.28), transparent 26%),
    linear-gradient(130deg, #1f3667 0%, #2a4d95 52%, #3fae49 130%);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 22px 45px rgba(26, 53, 105, 0.3);
}

.cta-box p {
  color: #e2eafb;
}

.cta-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.cta-form input {
  border: 1px solid #7098d2;
  background: rgba(24, 46, 92, 0.7);
  color: #fff;
  border-radius: 10px;
  padding: 0.8rem;
}

.cta-form input::placeholder {
  color: #abb8ec;
}

#formMessage {
  display: block;
  margin-top: 0.65rem;
  color: #c9f9be;
}

.cta-note {
  display: block;
  margin-top: 0.55rem;
  color: #e7eefb;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  padding: 2rem 0 3rem;
  color: #5f6f93;
  background: #ffffff;
}

.how-it-works-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(193, 214, 252, 0.8), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(207, 241, 213, 0.84), transparent 22%),
    linear-gradient(180deg, #eef4fb 0%, #e8f0fb 100%);
}

.how-hero {
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 3.4rem;
}

.how-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(63, 112, 229, 0.16), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(52, 184, 103, 0.14), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 246, 255, 0.52));
  z-index: 0;
}

.how-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
}

.how-hero-copy h1 {
  max-width: 720px;
  margin-bottom: 1rem;
}

.how-hero-copy {
  max-width: 860px;
}

.how-hero-text {
  max-width: 650px;
  font-size: 1.04rem;
}

.how-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.how-kpis div,
.how-flow-card,
.module-card,
.how-summary-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 217, 243, 0.76);
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(28, 55, 107, 0.08);
  backdrop-filter: blur(10px);
}

.how-kpis div {
  padding: 1rem;
}

.how-kpis strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.how-kpis span,
.how-flow-note,
.how-section-text,
.module-copy p,
.how-summary-card p {
  color: #5f7195;
  line-height: 1.65;
}

.how-flow-card {
  padding: 1.1rem;
}

.how-flow-label,
.module-kicker {
  margin: 0 0 0.4rem;
  color: #5f77ae;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-flow-steps {
  display: grid;
  gap: 0.6rem;
  margin: 0.8rem 0 1rem;
}

.how-flow-steps div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(243, 248, 255, 0.96), rgba(231, 240, 255, 0.9));
  border: 1px solid rgba(190, 209, 241, 0.72);
}

.how-flow-steps span,
.module-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #2f73ff, #58a6ff);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  flex: 0 0 34px;
}

.how-flow-steps strong {
  font-size: 0.92rem;
}

.how-carousel {
  margin-top: 1.5rem;
  margin-bottom: 2.4rem;
  display: grid;
  gap: 1rem;
}

.how-carousel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.carousel-tab {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(190, 209, 241, 0.72);
  background: rgba(255, 255, 255, 0.86);
  color: #47649c;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-tab:hover {
  transform: translateY(-1px);
}

.carousel-tab.is-active {
  background: linear-gradient(135deg, #2f73ff, #58a6ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(47, 115, 255, 0.2);
}

.carousel-tab.is-active::after {
  content: "";
  position: absolute;
  inset: auto 12% 6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: left center;
  animation: carouselTabProgress 5.2s linear forwards;
}

.how-carousel-frame {
  position: relative;
  min-height: 0;
  height: auto;
  transition: height 0.42s ease;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: stretch;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 217, 243, 0.76);
  border-radius: 28px;
  box-shadow: 0 20px 38px rgba(28, 55, 107, 0.08);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(64px) scale(0.97);
  filter: blur(10px);
  transition: opacity 0.68s ease, transform 0.68s cubic-bezier(0.22, 1, 0.36, 1), filter 0.68s ease;
}

.how-carousel[data-direction="prev"] .carousel-slide {
  transform: translateX(-64px) scale(0.97);
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.how-carousel[data-direction="next"] .carousel-slide.is-exiting {
  transform: translateX(-72px) scale(0.985);
}

.how-carousel[data-direction="prev"] .carousel-slide.is-exiting {
  transform: translateX(72px) scale(0.985);
}

.carousel-copy {
  max-width: 720px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f73ff, #58a6ff);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.carousel-copy h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.carousel-copy p {
  margin: 0;
}

.carousel-visual {
  display: flex;
  justify-content: stretch;
}

.carousel-slide.is-active .carousel-copy {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.showcase-scene {
  position: relative;
  width: 100%;
  min-height: 540px;
  border-radius: 30px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
  align-items: end;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.78), rgba(248, 252, 255, 0.94));
  border: 1px solid rgba(204, 220, 246, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 24px 40px rgba(31, 63, 122, 0.1);
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-scene::before {
  content: "";
  position: absolute;
  inset: auto auto -12% -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 139, 255, 0.14), rgba(84, 139, 255, 0));
}

.showcase-scene::after {
  content: "";
  position: absolute;
  inset: 10% -8% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 204, 122, 0.12), rgba(73, 204, 122, 0));
}

.showcase-scene-chat {
  background: linear-gradient(135deg, rgba(229, 247, 237, 0.92), rgba(246, 251, 255, 0.94));
}

.showcase-scene-calendar {
  background: linear-gradient(135deg, rgba(235, 243, 255, 0.94), rgba(248, 251, 255, 0.96));
}

.showcase-scene-checkin,
.showcase-scene-validation {
  background: linear-gradient(135deg, rgba(236, 249, 241, 0.94), rgba(248, 252, 249, 0.96));
}

.showcase-scene-insights {
  background: linear-gradient(135deg, rgba(235, 244, 255, 0.96), rgba(248, 251, 255, 0.98));
}

.showcase-scene-split {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.1rem;
}

.showcase-summary-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.showcase-summary-card {
  min-height: 100%;
}

.carousel-slide.is-active .showcase-scene {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.14s;
}

.showcase-device-stack {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: 100%;
  padding-top: 1rem;
  z-index: 1;
}

.showcase-device-stack-dual {
  grid-template-columns: minmax(0, 700px) minmax(240px, 284px);
  gap: 1.7rem;
  justify-items: stretch;
  align-items: center;
  padding: 0;
}

.portal-web-card {
  align-self: stretch;
  width: 100%;
  opacity: 0;
  transform: translateX(-26px) scale(0.97);
  transition: opacity 0.58s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.carousel-slide.is-active .portal-web-card {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition-delay: 0.18s;
}

.portal-web-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(184, 205, 239, 0.72);
  background:
    radial-gradient(circle at 100% 0%, rgba(102, 153, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
  box-shadow:
    0 28px 54px rgba(27, 53, 104, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.portal-browser-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(180deg, rgba(233, 240, 252, 0.96), rgba(225, 234, 248, 0.96));
  border-bottom: 1px solid rgba(184, 205, 239, 0.72);
}

.portal-browser-controls,
.portal-browser-actions,
.portal-web-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-browser-controls span,
.portal-browser-actions span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #c8d4ea, #aebfdf);
}

.portal-browser-actions span {
  border-radius: 4px;
}

.portal-browser-tabs {
  display: inline-flex;
  gap: 0.35rem;
  min-width: 0;
}

.portal-browser-tab {
  min-width: 0;
  padding: 0.48rem 0.75rem;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.58);
  color: #6d81aa;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-browser-tab.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #24467f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.portal-web-shell::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 176, 99, 0.12), rgba(58, 176, 99, 0));
  pointer-events: none;
}

.portal-web-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(190, 209, 241, 0.58);
  background: rgba(245, 249, 255, 0.92);
}

.portal-web-search,
.portal-web-user {
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.portal-web-nav span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 236, 251, 0.84);
  color: #5470a6;
  font-size: 0.78rem;
}

.portal-web-search {
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(194, 212, 242, 0.82);
  color: #41619b;
}

.portal-web-user {
  padding: 0.45rem 0.72rem;
  background: rgba(53, 179, 92, 0.12);
  color: #2f7b4e;
}

.portal-web-body {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 390px;
}

.portal-web-sidebar {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1rem 0.8rem;
  background: rgba(236, 243, 255, 0.7);
  border-right: 1px solid rgba(190, 209, 241, 0.44);
}

.portal-web-sidebar span {
  border-radius: 14px;
  padding: 0.68rem 0.72rem;
  color: #6580b2;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.portal-web-sidebar .is-active {
  background: linear-gradient(135deg, #2f73ff, #58a6ff);
  color: #fff;
  box-shadow: 0 12px 20px rgba(47, 115, 255, 0.18);
}

.portal-web-main {
  display: grid;
  gap: 0.82rem;
  padding: 1rem;
}

.portal-checkin-grid,
.portal-checkin-actions {
  display: grid;
  gap: 0.75rem;
}

.portal-checkin-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.8fr);
}

.portal-checkin-primary,
.portal-checkin-panel,
.portal-checkin-list {
  border-radius: 20px;
  border: 1px solid rgba(188, 208, 239, 0.58);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 26px rgba(35, 60, 110, 0.08);
}

.portal-checkin-primary,
.portal-checkin-panel {
  padding: 0.95rem;
}

.portal-checkin-primary small,
.portal-checkin-panel small {
  display: block;
  color: #6980ae;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-checkin-primary strong,
.portal-checkin-panel strong {
  display: block;
  margin-top: 0.18rem;
  color: #1f3768;
  font-size: 1rem;
}

.portal-checkin-primary span,
.portal-checkin-panel span {
  display: block;
  margin-top: 0.2rem;
  color: #5b739d;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.42;
}

.portal-checkin-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.portal-checkin-list {
  overflow: hidden;
}

.portal-web-toolbar,
.portal-agenda-layout,
.portal-validation-board,
.portal-insights-grid {
  display: grid;
  gap: 0.75rem;
}

.portal-web-toolbar {
  grid-template-columns: repeat(4, max-content);
}

.portal-toolbar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(228, 236, 250, 0.78);
  color: #57709f;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.portal-toolbar-chip.is-active {
  background: linear-gradient(135deg, #2f73ff, #58a6ff);
  color: #fff;
}

.portal-toolbar-chip.success-chip {
  background: rgba(53, 179, 92, 0.12);
  color: #2f7b4e;
}

.portal-web-header-card,
.portal-agenda-panel,
.portal-agenda-calendar,
.portal-validation-timeline,
.portal-validation-summary,
.portal-insights-metrics article,
.portal-insights-chart,
.portal-web-footer-strip div,
.portal-aside-card,
.portal-agenda-table,
.portal-board-card {
  border-radius: 20px;
  border: 1px solid rgba(188, 208, 239, 0.58);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 26px rgba(35, 60, 110, 0.08);
}

.portal-web-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
}

.portal-web-header-card small,
.portal-agenda-panel small,
.portal-validation-step small,
.portal-validation-summary small,
.portal-insights-metrics small,
.portal-insights-legend small,
.portal-web-footer-strip small {
  display: block;
  color: #6980ae;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-web-header-card strong,
.portal-agenda-panel strong,
.portal-validation-step strong,
.portal-validation-summary strong,
.portal-insights-metrics strong,
.portal-insights-legend strong,
.portal-web-footer-strip strong {
  display: block;
  color: #1e3768;
}

.portal-web-header-card strong {
  margin-top: 0.18rem;
  font-size: 1rem;
}

.portal-web-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.44rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 115, 255, 0.12);
  color: #2452ad;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.portal-web-badge.success-tone {
  background: rgba(53, 179, 92, 0.14);
  color: #2d7c4d;
}

.portal-web-badge.insight-tone {
  background: rgba(42, 118, 255, 0.14);
  color: #2254b3;
}

.portal-agenda-columns,
.portal-validation-grid,
.portal-insights-metrics,
.portal-web-footer-strip {
  display: grid;
  gap: 0.75rem;
}

.portal-agenda-layout {
  grid-template-columns: minmax(0, 1fr);
}

.portal-agenda-calendar,
.portal-agenda-table {
  overflow: hidden;
}

.portal-agenda-calendar {
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.portal-agenda-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.portal-agenda-status-strip span {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: rgba(233, 240, 255, 0.9);
  color: #486593;
  border: 1px solid rgba(188, 208, 239, 0.64);
  font-size: 0.66rem;
  font-weight: 800;
}

.portal-agenda-calendar-head,
.portal-agenda-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.portal-agenda-calendar-head small,
.portal-agenda-grid-head span {
  display: block;
  color: #6980ae;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-agenda-calendar-head strong,
.portal-agenda-grid-head strong {
  display: block;
  margin-top: 0.18rem;
  color: #1f3768;
  font-size: 1rem;
}

.portal-agenda-grid-head small {
  color: #6a81ae;
  font-size: 0.68rem;
  font-weight: 800;
}

.portal-agenda-mini-tabs {
  display: inline-flex;
  gap: 0.35rem;
}

.portal-agenda-mini-tabs span {
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  background: rgba(230, 237, 251, 0.82);
  color: #5b729f;
  font-size: 0.64rem;
  font-weight: 800;
}

.portal-agenda-mini-tabs .is-active {
  background: linear-gradient(135deg, #2f73ff, #58a6ff);
  color: #fff;
}

.portal-agenda-calendar-body {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.7rem;
  min-height: 340px;
}

.portal-agenda-hours {
  display: grid;
  grid-template-rows: 44px repeat(10, 1fr);
  color: #6b81ae;
  font-size: 0.64rem;
  font-weight: 800;
}

.portal-agenda-hours span {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0.16rem;
}

.portal-agenda-grid {
  position: relative;
  display: grid;
  grid-template-rows: 44px repeat(10, 1fr);
  gap: 0.24rem;
  padding: 0 0.2rem 0.2rem;
}

.portal-agenda-grid::before {
  content: "";
  position: absolute;
  inset: 44px 0 0;
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(166, 190, 234, 0.14) 0,
      rgba(166, 190, 234, 0.14) 1px,
      transparent 1px,
      transparent calc((100% - 0px) / 10)
    ),
    rgba(246, 250, 255, 0.92);
  border: 1px solid rgba(172, 195, 236, 0.36);
}

.portal-agenda-now-line {
  position: relative;
  z-index: 1;
  grid-row: 6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.42rem;
}

.portal-agenda-now-line span {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42, 118, 255, 0.9), rgba(88, 166, 255, 0.25));
  box-shadow: 0 0 0 3px rgba(47, 115, 255, 0.08);
}

.portal-agenda-now-line small {
  color: #2f73ff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-agenda-slot {
  position: relative;
  z-index: 1;
  grid-row: var(--agenda-start) / span var(--agenda-size);
  margin: 0 0.4rem;
  border-radius: 16px;
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.16rem;
  box-shadow: 0 10px 18px rgba(34, 59, 109, 0.08);
}

.portal-agenda-slot small,
.portal-agenda-slot strong,
.portal-agenda-slot span,
.portal-agenda-slot em {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.portal-agenda-slot small {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.8;
}

.portal-agenda-slot strong {
  font-size: 0.86rem;
  color: inherit;
}

.portal-agenda-slot span,
.portal-agenda-slot em {
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.portal-agenda-slot.slot-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 255, 0.92));
  color: #49618f;
  border: 1px solid rgba(173, 194, 231, 0.42);
}

.portal-agenda-slot.slot-highlighted {
  background: linear-gradient(180deg, rgba(52, 109, 229, 0.96), rgba(35, 84, 194, 0.98));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.portal-agenda-aside {
  display: grid;
  gap: 0.75rem;
}

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

.portal-aside-card,
.portal-board-card {
  padding: 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.portal-aside-card small,
.portal-board-card small {
  display: block;
  color: #6980ae;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-aside-card strong,
.portal-board-card strong {
  display: block;
  color: #1f3768;
  font-size: 0.92rem;
}

.portal-aside-card span,
.portal-board-card span {
  color: #5b739d;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.42;
}

.portal-agenda-panel {
  padding: 0.9rem;
  display: grid;
  gap: 0.22rem;
}

.portal-agenda-panel span,
.portal-agenda-panel em {
  color: #58709a;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

.portal-agenda-panel strong {
  font-size: 1rem;
}

.portal-agenda-panel.is-highlighted {
  background: linear-gradient(160deg, rgba(47, 115, 255, 0.92), rgba(29, 84, 200, 0.96));
  border-color: rgba(255, 255, 255, 0.18);
}

.portal-agenda-panel.is-highlighted small,
.portal-agenda-panel.is-highlighted strong,
.portal-agenda-panel.is-highlighted span,
.portal-agenda-panel.is-highlighted em {
  color: #fff;
}

.portal-web-footer-strip {
  grid-template-columns: 1fr 1fr;
}

.portal-web-footer-strip div {
  padding: 0.82rem 0.9rem;
}

.portal-table-row {
  display: grid;
  grid-template-columns: 74px 1fr 1.1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  color: #55709e;
  font-size: 0.72rem;
  font-weight: 700;
  border-top: 1px solid rgba(191, 210, 241, 0.36);
}

.portal-table-row:first-child {
  border-top: 0;
}

.portal-table-row.is-head {
  background: rgba(236, 243, 255, 0.74);
  color: #6a81ae;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-table-row.is-highlighted {
  background: rgba(47, 115, 255, 0.06);
}

.status-neutral,
.status-positive,
.status-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.56rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
}

.status-neutral {
  background: rgba(103, 130, 175, 0.12);
  color: #5f7499;
}

.status-positive {
  background: rgba(47, 115, 255, 0.12);
  color: #275dc5;
}

.status-pending {
  background: rgba(53, 179, 92, 0.12);
  color: #2f7b4e;
}

.portal-validation-grid {
  grid-template-columns: 1.3fr 0.95fr;
}

.portal-validation-board,
.portal-insights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-insights-grid {
  grid-template-columns: 1fr 1fr;
}

.portal-validation-timeline,
.portal-validation-summary,
.portal-insights-chart {
  padding: 0.95rem;
}

.portal-validation-timeline {
  display: grid;
  gap: 0.72rem;
}

.portal-validation-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.62rem;
  align-items: start;
}

.portal-validation-step span {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 2px solid rgba(124, 156, 208, 0.42);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(42, 118, 255, 0.08);
}

.portal-validation-step strong {
  margin-bottom: 0.14rem;
  font-size: 0.82rem;
}

.portal-validation-step small {
  color: #647b9f;
  font-size: 0.68rem;
  line-height: 1.4;
}

.portal-validation-step.is-done span,
.portal-validation-step.is-active span {
  border-color: transparent;
  background: linear-gradient(180deg, #35b35c, #29974f);
  box-shadow: 0 0 0 5px rgba(53, 179, 92, 0.14);
}

.portal-validation-summary {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.portal-validation-summary strong {
  margin-top: 0.18rem;
  font-size: 1rem;
}

.portal-validation-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

.portal-validation-summary li {
  position: relative;
  padding-left: 0.9rem;
  color: #4d678f;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
}

.portal-validation-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35b35c;
}

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

.portal-insights-metrics article {
  padding: 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.portal-insights-metrics strong {
  margin-top: 0.12rem;
  font-size: 0.96rem;
}

.portal-insights-metrics span {
  color: #567098;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.portal-insights-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 0.9rem;
  align-items: end;
}

.portal-insights-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.65rem;
  min-height: 138px;
}

.portal-insights-bars span {
  display: block;
  height: var(--portal-bar);
  min-height: 38px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #58a6ff, #2f73ff);
  box-shadow: 0 14px 22px rgba(47, 115, 255, 0.18);
}

.portal-insights-legend {
  display: grid;
  gap: 0.22rem;
}

.portal-insights-legend strong {
  font-size: 0.94rem;
}

.portal-web-agenda .portal-web-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 144, 255, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 255, 0.96));
}

.portal-web-validation .portal-web-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(68, 191, 112, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 244, 0.96));
}

.portal-web-checkin .portal-web-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(68, 191, 112, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 245, 0.96));
}

.portal-web-insights .portal-web-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(73, 135, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.96));
}

.how-device-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(34px) scale(0.95) rotate(-4deg);
  transition: opacity 0.58s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide.is-active .how-device-shell {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  transition-delay: 0.18s;
}

.how-phone-frame {
  width: 296px;
  height: 642px;
  box-shadow:
    0 36px 56px rgba(10, 20, 38, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -4px 10px rgba(0, 0, 0, 0.6);
}

.how-phone-screen {
  background: #eef4f0;
}

.showcase-orbit-card {
  position: absolute;
  right: 0.2rem;
  bottom: 0.35rem;
  width: min(220px, 42%);
  border-radius: 22px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(194, 212, 242, 0.82);
  box-shadow: 0 22px 34px rgba(31, 63, 122, 0.14);
  backdrop-filter: blur(10px);
  z-index: 2;
  opacity: 0;
  transform: translate(24px, 16px);
  transition: opacity 0.55s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-scene-split .showcase-orbit-card,
.showcase-scene-split .showcase-floating-card,
.showcase-scene-split .showcase-side-panel {
  position: relative;
  inset: auto;
  right: auto;
  left: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.showcase-scene-split .showcase-floating-card {
  transform: translateY(18px);
}

.showcase-scene-split .showcase-orbit-card {
  transform: translateY(18px);
}

.showcase-scene-split .showcase-side-panel {
  transform: translateY(18px);
}

.carousel-slide.is-active .showcase-scene-split .showcase-floating-card,
.carousel-slide.is-active .showcase-scene-split .showcase-orbit-card,
.carousel-slide.is-active .showcase-scene-split .showcase-side-panel {
  transform: translateY(0);
}

.showcase-scene-split .how-device-shell {
  align-self: end;
}

.carousel-slide.is-active .showcase-orbit-card {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 0.24s;
}

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

.showcase-orbit-card small {
  color: #6780b1;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-orbit-card strong {
  margin-top: 0.2rem;
  font-size: 1rem;
  color: #1d3562;
}

.showcase-orbit-card span {
  margin-top: 0.28rem;
  color: #577096;
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 700;
}

.orbit-card-chat {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(238, 248, 241, 0.96));
}

.orbit-card-calendar {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 255, 0.98));
}

.orbit-card-checkin,
.orbit-card-validation {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 242, 0.98));
}

.orbit-card-insights {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 255, 0.98));
}

.showcase-floating-card,
.showcase-side-panel {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  padding: 0.9rem;
  box-shadow: 0 18px 28px rgba(31, 63, 122, 0.1);
}

.showcase-floating-card {
  position: absolute;
  top: 1rem;
  left: 1rem;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(198, 214, 243, 0.74);
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide.is-active .showcase-floating-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.showcase-floating-card small,
.showcase-side-panel strong,
.showcase-floating-card strong,
.showcase-floating-card span,
.showcase-side-panel li {
  display: block;
}

.showcase-floating-card small {
  color: #6980af;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.showcase-floating-card strong {
  margin: 0.18rem 0 0.28rem;
  font-size: 1.05rem;
}

.showcase-floating-card span {
  color: #5d7196;
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 700;
}

.blue-card {
  background: linear-gradient(160deg, rgba(47, 115, 255, 0.95), rgba(33, 84, 194, 0.98));
  border-color: rgba(255, 255, 255, 0.16);
}

.blue-card small,
.blue-card strong,
.blue-card span,
.success-card-showcase small,
.success-card-showcase strong,
.success-card-showcase span {
  color: #fff;
}

.success-card-showcase {
  background: linear-gradient(160deg, rgba(53, 179, 92, 0.96), rgba(41, 151, 79, 0.98));
  border-color: rgba(255, 255, 255, 0.16);
}

.showcase-side-panel {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(198, 214, 243, 0.74);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide.is-active .showcase-side-panel {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.22s;
}

.showcase-side-panel strong {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.showcase-side-panel ul {
  margin: 0;
  padding-left: 1rem;
  color: #587094;
}

.showcase-side-panel li {
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  line-height: 1.45;
  font-weight: 700;
}

.how-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel-arrow {
  border: 1px solid rgba(190, 209, 241, 0.72);
  background: rgba(255, 255, 255, 0.86);
  color: #3e5d97;
  border-radius: 999px;
  padding: 0.62rem 0.88rem;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.carousel-arrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 63, 122, 0.1);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(154, 177, 218, 0.5);
}

.carousel-dot.is-active {
  background: #2f73ff;
  box-shadow: 0 0 0 4px rgba(47, 115, 255, 0.12);
}

.mini-screen {
  width: 100%;
  min-height: 250px;
  border-radius: 24px;
  border: 1px solid rgba(184, 205, 240, 0.78);
  box-shadow: 0 16px 28px rgba(31, 63, 122, 0.1);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.mini-topbar {
  padding: 0.72rem 0.86rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.whatsapp-topbar {
  background: linear-gradient(180deg, #14946f, #0e7559);
  color: #fff;
}

.chat-preview-screen {
  background: linear-gradient(180deg, #dff4e6, #d3edde);
}

.mini-chat-list {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem;
}

.detailed-chat-list {
  padding: 1rem;
}

.mini-bubble {
  max-width: 88%;
  padding: 0.5rem 0.6rem;
  border-radius: 14px;
  font-size: 0.7rem;
  line-height: 1.35;
  box-shadow: 0 8px 16px rgba(18, 40, 30, 0.08);
}

.client-bubble {
  justify-self: end;
  background: #eff2f7;
  color: #264056;
}

.bot-bubble {
  background: #d9fdd4;
  color: #24553a;
}

.highlight-bubble {
  border: 1px solid rgba(53, 179, 92, 0.24);
}

.success-bubble-mini {
  background: linear-gradient(180deg, #eff8ff, #e7f1ff);
  color: #2d4f89;
}

.mini-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mini-option-row span,
.mini-checkin-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(186, 204, 237, 0.74);
  color: #33518a;
  font-size: 0.68rem;
  font-weight: 700;
}

.selected-option,
.selected-checkin {
  background: linear-gradient(180deg, #2f73ff, #2154c3);
  color: #fff;
  border-color: transparent;
}

.calendar-preview-screen {
  background: linear-gradient(180deg, #eff5ff, #e7f0fe);
}

.calendar-topbar,
.insights-topbar {
  background: rgba(255, 255, 255, 0.86);
  color: #2b4f97;
  border-bottom: 1px solid rgba(190, 209, 241, 0.7);
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.28rem 0.5rem;
  padding: 0.8rem;
  align-items: center;
}

.detailed-calendar-grid {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.calendar-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.5rem;
  align-items: center;
}

.calendar-row span {
  color: #6880af;
  font-size: 0.68rem;
  font-weight: 800;
}

.featured-row {
  position: relative;
}

.featured-row::after {
  content: "Entrada do WhatsApp";
  position: absolute;
  right: 0.6rem;
  top: -0.5rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(47, 115, 255, 0.1);
  color: #2f73ff;
  font-size: 0.58rem;
  font-weight: 800;
}

.mini-hour {
  color: #6980af;
  font-size: 0.65rem;
  font-weight: 800;
}

.mini-slot {
  padding: 0.45rem 0.56rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

.muted-slot {
  background: rgba(255, 255, 255, 0.9);
  color: #4c6696;
  border: 1px solid rgba(188, 206, 239, 0.74);
}

.primary-slot {
  background: linear-gradient(180deg, #3a74ee, #2458cb);
  color: #fff;
}

.checkin-preview-screen,
.validation-preview-screen {
  background: linear-gradient(180deg, #f6fbf7, #edf8f1);
}

.checkin-topbar,
.validation-topbar {
  background: rgba(255, 255, 255, 0.88);
  color: #2f6f4a;
  border-bottom: 1px solid rgba(188, 224, 198, 0.74);
}

.mini-checkin-card,
.mini-status-card {
  margin: 0.8rem;
  padding: 0.72rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(190, 224, 201, 0.74);
}

.detailed-checkin-card,
.detailed-status-card {
  margin: 1rem;
}

.mini-checkin-card strong,
.mini-status-card strong {
  display: block;
  font-size: 0.76rem;
  margin-bottom: 0.18rem;
}

.mini-checkin-card p,
.mini-checkin-card small,
.mini-status-card span {
  margin: 0;
  color: #5a7d71;
  font-size: 0.66rem;
  line-height: 1.4;
  font-weight: 700;
}

.mini-checkin-actions {
  display: grid;
  gap: 0.36rem;
  padding: 0 0.8rem 0.8rem;
}

.detailed-checkin-actions {
  padding: 0 1rem 1rem;
}

.mini-step-list {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.8rem 0.8rem;
}

.detailed-step-list {
  padding: 0 1rem 1rem;
}

.mini-step {
  padding: 0.48rem 0.56rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(189, 223, 200, 0.72);
  color: #55776b;
  font-size: 0.67rem;
  font-weight: 700;
}

.done-step,
.active-step {
  background: linear-gradient(180deg, #34b45c, #2b954d);
  color: #fff;
  border-color: transparent;
}

.insights-preview-screen {
  background: linear-gradient(180deg, #f5f9ff, #edf3ff);
}

.mini-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.8rem 0.8rem 0.2rem;
}

.detailed-metric-row {
  padding: 1rem 1rem 0.3rem;
}

.mini-metric-row div {
  padding: 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(188, 206, 239, 0.74);
}

.mini-metric-row small {
  display: block;
  color: #6880af;
  font-size: 0.62rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.mini-metric-row strong {
  font-size: 0.73rem;
}

.mini-bars {
  display: grid;
  gap: 0.45rem;
  padding: 0.2rem 0.8rem 0.8rem;
}

.detailed-bars {
  padding: 0.2rem 1rem 0.75rem;
}

.insight-footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
}

.insight-footer-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.54rem;
  border-radius: 999px;
  background: rgba(232, 240, 255, 0.9);
  color: #3d5d98;
  border: 1px solid rgba(188, 206, 239, 0.74);
  font-size: 0.68rem;
  font-weight: 700;
}

.mini-bars div {
  display: grid;
  gap: 0.18rem;
}

.mini-bars span {
  color: #4e6797;
  font-size: 0.65rem;
  font-weight: 700;
}

.mini-bars i {
  display: block;
  height: 8px;
  width: var(--mini-bar);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f73ff, #58a6ff);
}

.module-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
}

.module-copy p {
  margin: 0;
}

.module-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.module-points span {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.74rem;
  border-radius: 999px;
  background: rgba(232, 240, 255, 0.9);
  color: #37558e;
  border: 1px solid rgba(188, 206, 239, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
}

.module-data-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.module-data-card {
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.9));
  border: 1px solid rgba(198, 214, 243, 0.76);
  box-shadow: 0 16px 26px rgba(31, 63, 122, 0.06);
}

.module-data-card small,
.module-data-card strong,
.module-data-card span,
.info-panel-label,
.info-panel-tags span {
  display: block;
}

.module-data-card small {
  color: #6880af;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-data-card strong {
  margin-top: 0.28rem;
  font-size: 0.92rem;
  color: #1e396c;
}

.module-data-card span {
  margin-top: 0.3rem;
  color: #597195;
  font-size: 0.73rem;
  line-height: 1.45;
  font-weight: 700;
}

.info-panel-block {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(198, 214, 243, 0.74);
}

.info-panel-label {
  color: #6780b1;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.info-panel-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.58rem;
  border-radius: 999px;
  background: rgba(232, 240, 255, 0.92);
  color: #37568e;
  border: 1px solid rgba(188, 206, 239, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
}

.module-card-chat {
  background: linear-gradient(135deg, rgba(239, 251, 244, 0.88), rgba(255, 255, 255, 0.82));
}

.module-card-calendar {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.82));
}

.module-card-checkin {
  background: linear-gradient(135deg, rgba(241, 252, 245, 0.92), rgba(255, 255, 255, 0.84));
}

.module-card-validation {
  background: linear-gradient(135deg, rgba(243, 252, 246, 0.94), rgba(255, 255, 255, 0.84));
}

.module-card-insights {
  background: linear-gradient(135deg, rgba(240, 246, 255, 0.94), rgba(255, 255, 255, 0.84));
}

@keyframes carouselTabProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.how-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.8rem;
}

.how-summary-card {
  padding: 1.2rem;
}

.how-summary-card h3 {
  margin: 0 0 0.45rem;
}

.how-summary-card.highlight {
  background: linear-gradient(135deg, rgba(240, 248, 255, 0.92), rgba(237, 250, 240, 0.88));
}

.how-cta-box {
  text-align: left;
}

.how-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 135, 255, 0.14), transparent 28%),
    radial-gradient(circle at 90% 14%, rgba(109, 208, 78, 0.14), transparent 24%),
    linear-gradient(180deg, #edf2fa 0%, #e7eef9 100%);
}

.auth-main {
  padding: 2.4rem 0 4rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 460px);
  gap: 1.4rem;
  align-items: stretch;
}

.auth-shell-compact {
  grid-template-columns: minmax(320px, 460px);
  justify-content: center;
}

.auth-stage,
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(204, 219, 243, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 22px 48px rgba(26, 53, 101, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.auth-stage {
  padding: 2.1rem;
  min-height: 680px;
  background:
    radial-gradient(circle at 16% 18%, rgba(61, 121, 255, 0.18), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(99, 206, 106, 0.14), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.88));
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: auto -18% -26% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 79, 151, 0.13), rgba(43, 79, 151, 0));
  filter: blur(12px);
}

.auth-stage-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-stage-copy h1 {
  margin-bottom: 0.85rem;
  max-width: 12ch;
}

.auth-stage-copy p {
  max-width: 56ch;
}

.auth-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  margin-top: 1.7rem;
}

.auth-feature-list,
.auth-info-panel {
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(204, 219, 243, 0.9);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.auth-feature-list {
  display: grid;
  gap: 0.85rem;
}

.auth-feature-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.auth-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 77, 155, 0.12), rgba(108, 208, 77, 0.16));
  color: #21427f;
  font-size: 1.15rem;
  font-weight: 800;
}

.auth-feature-item strong,
.auth-info-panel strong,
.auth-checklist strong,
.auth-trust-card strong {
  display: block;
}

.auth-feature-item p,
.auth-info-panel p,
.auth-checklist p,
.auth-trust-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-info-panel {
  display: grid;
  gap: 1rem;
  background: linear-gradient(160deg, rgba(250, 253, 255, 0.96), rgba(241, 249, 242, 0.92));
}

.auth-chip-row,
.auth-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-chip-row span,
.auth-proof-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(189, 207, 235, 0.9);
  background: rgba(255, 255, 255, 0.86);
  color: #2a4c8b;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-proof-row span {
  color: #215f32;
  border-color: rgba(160, 216, 167, 0.9);
  background: rgba(236, 249, 236, 0.9);
}

.auth-phone-card {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  padding: 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(203, 219, 244, 0.88);
  background: linear-gradient(145deg, rgba(10, 24, 49, 0.94), rgba(18, 40, 81, 0.92));
  color: #eef4ff;
  box-shadow: 0 20px 36px rgba(17, 35, 70, 0.18);
}

.auth-phone-card::before {
  content: "";
  position: absolute;
  inset: 16px 18px auto auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 126, 255, 0.26), rgba(64, 126, 255, 0));
}

.auth-phone-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.auth-phone-card-head p,
.auth-phone-card-head strong,
.auth-phone-card-head small {
  margin: 0;
}

.auth-online-pill {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(108, 208, 77, 0.18);
  border: 1px solid rgba(108, 208, 77, 0.42);
  color: #d9ffd1;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-chat-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
}

.auth-chat-line {
  max-width: 86%;
  padding: 0.82rem 0.9rem;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 0 12px 26px rgba(7, 18, 38, 0.18);
}

.auth-chat-line small {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  opacity: 0.75;
}

.auth-chat-line.bot {
  background: #d7fdd2;
  color: #1d4f2e;
}

.auth-chat-line.client {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.94);
  color: #1f3665;
}

.auth-card {
  padding: 2rem 1.7rem;
}

.auth-card-compact {
  margin: 3.5rem auto 0;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 208, 77, 0.12), rgba(108, 208, 77, 0));
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-card-header {
  margin-bottom: 1.2rem;
}

.auth-card-header h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: #173565;
}

.auth-card-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-social-stack {
  display: grid;
  gap: 0.75rem;
}

.auth-social-stack-compact {
  margin-top: 0.2rem;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-field {
  display: grid;
  gap: 0.42rem;
}

.auth-field span {
  color: #173565;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 54px;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(197, 214, 239, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #173565;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-field input:focus {
  border-color: rgba(43, 79, 151, 0.78);
  box-shadow: 0 0 0 4px rgba(43, 79, 151, 0.1);
}

.auth-field input::placeholder {
  color: #8a9bbb;
}

.auth-submit-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 0.15rem;
  border-radius: 16px;
  font-size: 0.98rem;
}

.auth-link-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.95rem;
  margin-bottom: 0.2rem;
}

.auth-link-row a {
  color: #2b4f97;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-link-row a:hover {
  color: #1f3f79;
  text-decoration: underline;
}

.social-auth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.78rem;
  min-height: 58px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(197, 214, 239, 0.96);
  background: rgba(255, 255, 255, 0.92);
  color: #18376a;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-auth-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(133, 164, 214, 0.96);
  box-shadow: 0 16px 30px rgba(29, 58, 109, 0.12);
}

.social-auth-btn:disabled,
.social-auth-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.social-auth-btn svg {
  flex: 0 0 auto;
}

.social-auth-btn.apple {
  background: linear-gradient(135deg, #10203f, #091224);
  border-color: rgba(12, 25, 51, 0.94);
  color: #ffffff;
}

.social-auth-btn.apple:hover {
  border-color: rgba(43, 79, 151, 0.72);
  box-shadow: 0 18px 32px rgba(7, 18, 38, 0.24);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  color: #7387af;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 220, 245, 0), rgba(205, 220, 245, 1), rgba(205, 220, 245, 0));
}

.auth-checklist,
.auth-trust-card,
.auth-note {
  border-radius: 20px;
  border: 1px solid rgba(204, 219, 243, 0.9);
  background: rgba(245, 249, 255, 0.82);
}

.auth-checklist {
  padding: 1rem;
}

.auth-checklist ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.auth-checklist li + li {
  margin-top: 0.45rem;
}

.auth-note {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  color: #37527f;
  font-size: 0.88rem;
  line-height: 1.6;
}

.auth-note strong {
  color: #173565;
}

.auth-feedback {
  min-height: 22px;
  margin-top: 0.9rem;
  color: #1f3f79;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-feedback.is-error {
  color: #a84332;
}

.auth-feedback.is-success {
  color: #246335;
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(79, 135, 255, 0.16), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(109, 208, 78, 0.14), transparent 24%),
    linear-gradient(180deg, #edf2fa 0%, #e7eef9 100%);
}

.admin-page[data-auth-state="checking"] .admin-shell {
  opacity: 0;
  pointer-events: none;
}

.admin-main {
  padding: 2rem 0 3rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  transition: opacity 0.2s ease;
}

.admin-sidebar,
.admin-panel,
.admin-hero {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(204, 219, 243, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 22px 44px rgba(26, 53, 101, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.admin-sidebar {
  position: sticky;
  top: 82px;
  z-index: 12;
  isolation: isolate;
  overflow: visible;
  min-width: 0;
  padding: 1.2rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(12, 27, 54, 0.96), rgba(19, 43, 84, 0.96));
  border-color: rgba(35, 70, 131, 0.4);
  color: #ecf4ff;
  box-shadow:
    0 24px 48px rgba(10, 24, 49, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.admin-sidebar-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(129, 160, 221, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #eaf3ff;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-sidebar-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(155, 184, 237, 0.32);
}

.admin-sidebar-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.admin-nav {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.admin-nav-item {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(129, 160, 221, 0.18);
  border-radius: 18px;
  padding: 1rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #dfeafe;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-nav-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(168, 194, 239, 0.12);
  color: #eaf3ff;
}

.admin-nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.admin-nav-label {
  display: inline-block;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-shell {
  grid-template-columns: 92px minmax(0, 1fr);
}

.admin-page[data-admin-sidebar="collapsed"] .admin-sidebar {
  padding: 1rem 0.8rem;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-sidebar-head {
  justify-content: center;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-sidebar .badge,
.admin-page[data-admin-sidebar="collapsed"] .admin-nav-label,
.admin-page[data-admin-sidebar="collapsed"] .admin-sidebar::after {
  display: none;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-sidebar-toggle {
  margin-inline: auto;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-sidebar-toggle svg {
  transform: rotate(180deg);
}

.admin-page[data-admin-sidebar="collapsed"] .admin-nav {
  margin-top: 0.8rem;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-nav-item {
  position: relative;
  z-index: 2;
  justify-content: center;
  padding: 0.9rem;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-nav-icon {
  margin: 0;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-nav-item::after {
  content: attr(data-nav-hint);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(11, 27, 54, 0.96);
  border: 1px solid rgba(95, 126, 183, 0.32);
  color: #eef5ff;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 40;
}

.admin-page[data-admin-sidebar="collapsed"] .admin-nav-item:hover::after,
.admin-page[data-admin-sidebar="collapsed"] .admin-nav-item:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(117, 201, 137, 0.42);
  background: linear-gradient(135deg, rgba(42, 83, 160, 0.52), rgba(62, 150, 101, 0.34));
  box-shadow: 0 18px 34px rgba(5, 16, 36, 0.28);
}

.admin-nav-item:hover .admin-nav-icon,
.admin-nav-item.is-active .admin-nav-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(189, 218, 255, 0.18);
}

.admin-sidebar .badge {
  border-color: rgba(155, 184, 237, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #eef5ff;
}

.admin-sidebar::after {
  content: "";
  display: block;
  margin-top: 1rem;
  height: 180px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(95, 151, 255, 0.34), transparent 28%),
    radial-gradient(circle at 80% 24%, rgba(108, 208, 77, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(140, 171, 228, 0.16);
}

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

.admin-hero,
.admin-panel {
  border-radius: 28px;
  padding: 1.4rem;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  align-items: start;
}

.admin-hero h1,
.admin-panel h2 {
  margin-bottom: 0.55rem;
}

.admin-hero-text {
  max-width: 64ch;
}

.admin-token-card {
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(12, 27, 54, 0.96), rgba(20, 44, 88, 0.94));
  color: #edf4ff;
}

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

.admin-token-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(176, 202, 244, 0.24);
  color: #dbe9ff;
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-token-caption {
  margin: 0.5rem 0 0.75rem;
  color: #cddfff;
  font-size: 0.84rem;
  line-height: 1.5;
}

.admin-token-card p {
  margin: 0.3rem 0 0.75rem;
  color: #cddfff;
}

.admin-token-card code {
  display: block;
  overflow-wrap: anywhere;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #dff0ff;
  font-size: 0.8rem;
  line-height: 1.55;
}

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

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

.admin-feature-card,
.admin-placeholder {
  padding: 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(198, 215, 241, 0.9);
  background: rgba(245, 249, 255, 0.88);
}

.admin-feature-card p,
.admin-placeholder p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-inline-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 29, 56, 0.06);
  border: 1px solid rgba(168, 188, 224, 0.7);
  color: #23406f;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-inline-status[data-tone="success"] {
  background: rgba(88, 166, 104, 0.12);
  border-color: rgba(88, 166, 104, 0.28);
  color: #28643d;
}

.admin-inline-status[data-tone="warn"] {
  background: rgba(199, 143, 57, 0.12);
  border-color: rgba(199, 143, 57, 0.24);
  color: #885617;
}

.calendar-admin-shell {
  display: grid;
  gap: 1rem;
}

.calendar-admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(203, 218, 241, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.95));
}

.calendar-admin-period {
  display: grid;
  gap: 0.34rem;
}

.calendar-admin-period strong {
  color: #22395f;
  font-size: 1.2rem;
}

.calendar-admin-period span {
  color: #617792;
  font-size: 0.9rem;
  line-height: 1.55;
}

.calendar-admin-controls {
  display: grid;
  gap: 0.7rem;
  justify-items: stretch;
  align-content: start;
  width: min(100%, 780px);
  min-width: 0;
}

.calendar-auto-update-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #29456f;
  font-size: 0.84rem;
  font-weight: 700;
}

.calendar-auto-update-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #3772e6;
}

.calendar-admin-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.calendar-filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.calendar-filter-field span {
  color: #607893;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.calendar-filter-field select,
.calendar-filter-field input {
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(192, 209, 235, 0.95);
  background: rgba(255, 255, 255, 0.98);
  color: #22395f;
  font: inherit;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.calendar-filter-field input::placeholder {
  color: #8a9bb0;
}

.calendar-filter-field-phone {
  min-width: 0;
}

.calendar-admin-nav-actions,
.calendar-admin-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
  align-items: center;
}

.calendar-admin-nav-actions .btn,
.calendar-admin-view-switch .calendar-view-chip,
#adminCalendarRefresh {
  min-height: 42px;
}

#adminCalendarRefresh {
  justify-self: start;
}

.calendar-view-chip {
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(188, 205, 232, 0.95);
  background: rgba(255, 255, 255, 0.94);
  color: #21406f;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.calendar-view-chip:hover,
.calendar-view-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(78, 126, 214, 0.88);
  background: linear-gradient(135deg, rgba(59, 99, 183, 0.96), rgba(80, 132, 218, 0.94));
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(32, 68, 132, 0.16);
}

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

.calendar-metric-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(203, 218, 241, 0.95);
  background: rgba(249, 251, 254, 0.96);
  box-shadow: 0 14px 28px rgba(54, 79, 120, 0.08);
}

.calendar-metric-card span {
  display: block;
  color: #617792;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.calendar-metric-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #213a63;
  font-size: 1.35rem;
}

.calendar-metric-card p {
  margin: 0.4rem 0 0;
  color: #6d8098;
  font-size: 0.85rem;
  line-height: 1.5;
}

.calendar-admin-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.calendar-admin-stage {
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(203, 218, 241, 0.92);
  background: rgba(248, 251, 254, 0.96);
}

.calendar-admin-support {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.calendar-sidebar-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 223, 240, 0.94);
  background: rgba(255, 255, 255, 0.98);
}

.calendar-sidebar-card span,
.calendar-stage-head span {
  display: block;
  color: #6a7f9a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.calendar-sidebar-card strong,
.calendar-stage-head strong {
  display: block;
  margin-top: 0.4rem;
  color: #233a62;
}

.calendar-sidebar-card p {
  margin: 0.42rem 0 0;
  color: #697e98;
  font-size: 0.86rem;
  line-height: 1.55;
}

.calendar-sidebar-card-muted {
  background: linear-gradient(180deg, rgba(241, 246, 253, 0.98), rgba(234, 241, 249, 0.96));
}

.calendar-sidebar-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.calendar-sidebar-item {
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(215, 225, 240, 0.95);
  background: rgba(246, 249, 253, 0.98);
}

.calendar-sidebar-item strong {
  display: block;
  color: #243b63;
  font-size: 0.92rem;
}

.calendar-sidebar-item span {
  display: block;
  margin-top: 0.24rem;
  color: #5f7792;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.calendar-sidebar-item p {
  margin: 0.24rem 0 0;
  color: #6e8198;
  font-size: 0.8rem;
}

.calendar-sidebar-item[data-tone="good"],
.calendar-event-card[data-tone="confirmed"],
.calendar-event-pill[data-tone="confirmed"] {
  border-color: rgba(92, 175, 109, 0.22);
}

.calendar-sidebar-item[data-tone="warn"],
.calendar-event-card[data-tone="pending"],
.calendar-event-pill[data-tone="pending"] {
  border-color: rgba(199, 143, 57, 0.22);
}

.calendar-sidebar-item[data-tone="blocked"],
.calendar-event-card[data-tone="blocked"],
.calendar-event-pill[data-tone="blocked"] {
  border-color: rgba(198, 78, 78, 0.2);
}

.calendar-sidebar-empty,
.calendar-slot-empty {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(241, 245, 250, 0.96);
  color: #73859b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.calendar-admin-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  min-height: calc(100vh - 270px);
  max-height: calc(100vh - 190px);
  position: relative;
}

.calendar-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(208, 220, 239, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 254, 0.96));
}

.calendar-stage-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.calendar-stage-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.calendar-stage-nav-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(188, 205, 232, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #24406a;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.calendar-stage-nav-button:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 126, 214, 0.88);
  background: rgba(244, 248, 254, 0.98);
  box-shadow: 0 12px 20px rgba(32, 68, 132, 0.12);
}

.calendar-stage-nav-button-today {
  width: auto;
  min-width: 74px;
  padding: 0 0.95rem;
  font-size: 0.86rem;
}

.calendar-stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.calendar-stage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #5b7591;
  font-size: 0.8rem;
  font-weight: 700;
}

.calendar-stage-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.calendar-stage-legend i[data-tone="confirmed"] {
  background: #4ea863;
}

.calendar-stage-legend i[data-tone="pending"] {
  background: #d39a3b;
}

.calendar-stage-legend i[data-tone="blocked"] {
  background: #c85c5c;
}

.calendar-admin-canvas {
  min-height: 0;
  overflow: auto;
  position: relative;
  padding: 0;
  max-height: calc(100vh - 300px);
  background: linear-gradient(180deg, rgba(249, 251, 254, 0.98), rgba(240, 245, 251, 0.96));
}

.calendar-time-shell {
  min-width: 100%;
}

.calendar-time-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(248, 251, 254, 0.98);
  border-bottom: 1px solid rgba(213, 223, 239, 0.92);
}

.calendar-time-corner {
  border-right: 1px solid rgba(213, 223, 239, 0.92);
  background: linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(243, 248, 254, 0.96));
}

.calendar-time-days {
  display: grid;
  min-width: 100%;
}

.calendar-time-day-head {
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.2rem;
  border-right: 1px solid rgba(221, 229, 241, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 254, 0.96));
}

.calendar-time-day-head span {
  color: #6a7d95;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-time-day-head strong {
  margin: 0;
  color: #243c64;
  font-size: 1.35rem;
}

.calendar-time-day-head small {
  color: #7a8ca3;
  font-size: 0.72rem;
  font-weight: 700;
}

.calendar-time-day-head.is-today strong {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #3772e6;
  color: #ffffff;
}

.calendar-time-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-width: 100%;
}

.calendar-time-axis {
  position: relative;
  border-right: 1px solid rgba(213, 223, 239, 0.92);
  background: linear-gradient(180deg, rgba(249, 251, 254, 0.98), rgba(243, 248, 254, 0.96));
}

.calendar-time-axis-label {
  position: absolute;
  right: 12px;
  color: #74859a;
  font-size: 0.74rem;
  font-weight: 700;
}

.calendar-time-columns {
  display: grid;
  min-width: 100%;
}

.calendar-time-column {
  position: relative;
  border-right: 1px solid rgba(223, 231, 242, 0.92);
  cursor: crosshair;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
}

.calendar-time-slot {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(228, 234, 243, 0.96);
}

.calendar-time-slot.is-even {
  background: rgba(249, 251, 254, 0.78);
}

.calendar-time-event {
  position: absolute;
  padding: 0.7rem 0.72rem;
  border-radius: 16px;
  border: 1px solid rgba(206, 218, 238, 0.98);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 18px rgba(50, 77, 119, 0.08);
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
}

.calendar-selection-preview {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 16px;
  border: 1px dashed rgba(55, 114, 230, 0.75);
  background: linear-gradient(180deg, rgba(55, 114, 230, 0.18), rgba(55, 114, 230, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  z-index: 3;
  pointer-events: none;
}

.calendar-selection-preview span {
  position: absolute;
  top: 8px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(24, 58, 116, 0.9);
  color: #f5f9ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.calendar-event-pill {
  cursor: pointer;
}

.calendar-detail-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.calendar-detail-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: rgba(242, 247, 253, 0.96);
  border: 1px solid rgba(217, 227, 241, 0.92);
}

.calendar-detail-item span {
  color: #71849b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-detail-item strong {
  margin: 0;
  color: #27426c;
  font-size: 0.84rem;
  line-height: 1.4;
}

.calendar-event-popover {
  position: absolute;
  width: min(320px, calc(100vw - 32px));
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(195, 212, 237, 0.98);
  background: rgba(10, 24, 49, 0.97);
  color: #eff5ff;
  box-shadow: 0 18px 38px rgba(12, 24, 48, 0.28);
  z-index: 60;
  pointer-events: none;
}

.calendar-event-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: rgba(10, 24, 49, 0.97);
  border-right: 1px solid rgba(195, 212, 237, 0.28);
  border-bottom: 1px solid rgba(195, 212, 237, 0.28);
  transform: translateX(-50%) rotate(45deg);
}

.calendar-event-popover strong,
.calendar-event-popover span,
.calendar-event-popover p,
.calendar-event-popover small {
  display: block;
}

.calendar-event-popover strong {
  font-size: 0.86rem;
}

.calendar-event-popover span {
  margin-top: 0.22rem;
  color: #b7cbeb;
  font-size: 0.76rem;
  font-weight: 700;
}

.calendar-event-popover-list {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.45rem;
}

.calendar-event-popover-item {
  display: grid;
  gap: 0.12rem;
}

.calendar-event-popover p {
  margin: 0;
  color: #e8f0fb;
  font-size: 0.78rem;
}

.calendar-event-popover small {
  margin-top: 0;
  color: #bfd0ea;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-time-event strong,
.calendar-time-event span,
.calendar-time-event p {
  display: block;
}

.calendar-time-event strong {
  color: #24406a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.calendar-time-event span {
  margin-top: 0.18rem;
  color: #577294;
  font-size: 0.74rem;
  font-weight: 700;
}

.calendar-time-event p {
  margin: 0.28rem 0 0;
  color: #6d8097;
  font-size: 0.74rem;
  line-height: 1.35;
}

.calendar-time-event[data-tone="confirmed"] {
  border-left: 4px solid #4ea863;
  background: linear-gradient(180deg, rgba(242, 251, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.calendar-time-event[data-tone="pending"] {
  border-left: 4px solid #d39a3b;
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(255, 255, 255, 0.98));
}

.calendar-time-event[data-tone="blocked"] {
  border-left: 4px solid #c85c5c;
  background: linear-gradient(180deg, rgba(255, 243, 243, 0.98), rgba(255, 255, 255, 0.98));
}

.calendar-time-event.is-selected,
.calendar-event-pill.is-selected {
  box-shadow: 0 0 0 2px rgba(55, 114, 230, 0.32), 0 18px 28px rgba(40, 72, 129, 0.14);
  transform: scale(1.01);
}

.calendar-now-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px solid rgba(219, 72, 72, 0.95);
  z-index: 1;
  pointer-events: none;
}

.calendar-now-indicator span {
  position: absolute;
  left: -6px;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #db4848;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.calendar-time-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 92px;
  text-align: center;
  color: #8ca0b7;
  font-size: 0.78rem;
  font-weight: 700;
}

.calendar-day-view,
.calendar-week-view {
  display: block;
}

.calendar-event-card {
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 223, 240, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 22px rgba(55, 80, 120, 0.08);
}

.calendar-event-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.calendar-event-card strong {
  color: #243c64;
  font-size: 0.92rem;
}

.calendar-event-card span,
.calendar-event-card p,
.calendar-event-card small {
  display: block;
}

.calendar-event-card span {
  color: #5e7692;
  font-size: 0.76rem;
  font-weight: 700;
}

.calendar-event-card p {
  margin: 0.3rem 0 0;
  color: #6f829a;
  font-size: 0.82rem;
}

.calendar-event-card small {
  margin-top: 0.3rem;
  color: #4a6484;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: capitalize;
}

.calendar-week-view,
.calendar-year-view {
  display: grid;
  gap: 0.8rem;
}

.calendar-week-view {
  grid-template-columns: repeat(7, minmax(180px, 1fr));
}

.calendar-week-column,
.calendar-year-card,
.calendar-month-cell {
  border-radius: 20px;
  border: 1px solid rgba(210, 222, 241, 0.96);
  background: rgba(255, 255, 255, 0.98);
}

.calendar-week-column {
  padding: 0.85rem;
}

.calendar-week-column header,
.calendar-year-card header,
.calendar-month-cell header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.calendar-week-column header span,
.calendar-year-card header span,
.calendar-month-cell header span {
  color: #6d8198;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-week-column header strong,
.calendar-year-card header strong,
.calendar-month-cell header strong {
  color: #243c64;
}

.calendar-month-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  padding: 0 0.75rem;
}

.calendar-month-head span {
  color: #607893;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.85rem 0;
}

.calendar-month-shell {
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem;
}

.calendar-month-view,
.calendar-year-view {
  display: grid;
  gap: 0.7rem;
}

.calendar-month-view {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(214, 224, 239, 0.94);
  border-left: 1px solid rgba(214, 224, 239, 0.94);
}

.calendar-month-cell {
  min-height: 168px;
  padding: 0.7rem;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
}

.calendar-month-cell.is-muted {
  background: rgba(244, 247, 251, 0.9);
}

.calendar-month-cell header {
  margin-bottom: 0.65rem;
}

.calendar-month-cell header strong {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.calendar-month-cell header strong.is-today {
  background: #3772e6;
  color: #ffffff;
}

.calendar-month-events {
  display: grid;
  gap: 0.42rem;
}

.calendar-event-pill {
  min-height: 38px;
  display: grid;
  gap: 0.1rem;
  padding: 0.42rem 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(210, 222, 241, 0.96);
  background: rgba(247, 250, 254, 0.98);
  color: #284064;
  line-height: 1.35;
}

.calendar-event-pill strong,
.calendar-event-pill span {
  display: block;
}

.calendar-event-pill strong {
  color: #577294;
  font-size: 0.68rem;
  font-weight: 800;
}

.calendar-event-pill span {
  font-size: 0.75rem;
  font-weight: 700;
}

.calendar-month-more {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(229, 237, 249, 0.92);
  color: #32527c;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

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

.calendar-year-card {
  padding: 0.9rem;
}

.calendar-year-card-body {
  display: grid;
  gap: 0.5rem;
}

.calendar-year-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  background: rgba(244, 248, 252, 0.98);
}

.calendar-year-row strong {
  color: #264067;
  font-size: 0.8rem;
}

.calendar-year-row span {
  color: #667d97;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.calendar-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(9, 20, 40, 0.42);
  backdrop-filter: blur(6px);
  z-index: 80;
}

.calendar-modal-backdrop[hidden] {
  display: none;
}

.calendar-modal {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(201, 216, 240, 0.96);
  background: rgba(251, 253, 255, 0.99);
  box-shadow: 0 28px 54px rgba(19, 37, 70, 0.22);
}

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

.calendar-modal-head span {
  display: block;
  color: #70839b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-modal-head strong {
  display: block;
  margin-top: 0.35rem;
  color: #223b63;
  font-size: 1.2rem;
}

.calendar-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(229, 237, 249, 0.92);
  color: #2c486f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-modal-form {
  display: grid;
  gap: 0.85rem;
}

.calendar-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.calendar-modal-field {
  display: grid;
  gap: 0.35rem;
}

.calendar-modal-field span {
  color: #6b8098;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-modal-field input,
.calendar-modal-field select {
  min-height: 46px;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(194, 210, 234, 0.96);
  background: rgba(255, 255, 255, 0.98);
  color: #23406a;
  font: inherit;
}

.calendar-modal-field.is-readonly input {
  background: rgba(243, 247, 252, 0.96);
  color: #6b8098;
}

.calendar-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.calendar-modal-feedback {
  margin-right: auto;
  color: #5f7894;
  font-size: 0.82rem;
  font-weight: 700;
}

.calendar-modal-feedback[data-tone="success"] {
  color: #2c6c44;
}

.calendar-modal-feedback[data-tone="warn"] {
  color: #965f1d;
}

.operator-config-shell {
  display: grid;
  gap: 1rem;
}

.operator-config-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(203, 218, 241, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.95));
}

.operator-config-summary {
  display: grid;
  gap: 0.34rem;
  max-width: 58ch;
}

.operator-config-summary strong {
  color: #22395f;
  font-size: 1.15rem;
}

.operator-config-summary span {
  color: #617792;
  font-size: 0.9rem;
  line-height: 1.55;
}

.operator-config-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  width: min(100%, 720px);
}

.operator-config-toolbar-buttons,
.operator-config-card-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.operator-config-toolbar-buttons {
  justify-content: flex-end;
}

.operator-config-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.operator-config-kpi,
.operator-config-card {
  border-radius: 22px;
  border: 1px solid rgba(203, 218, 241, 0.95);
  background: rgba(249, 251, 254, 0.96);
  box-shadow: 0 14px 28px rgba(54, 79, 120, 0.08);
}

.operator-config-kpi {
  padding: 1rem 1.05rem;
}

.operator-config-kpi span,
.operator-config-card-head span,
.operator-config-field span,
.operator-config-subgroup span {
  display: block;
  color: #617792;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.operator-config-kpi strong,
.operator-config-card-head strong {
  display: block;
  margin-top: 0.35rem;
  color: #213a63;
}

.operator-config-kpi p {
  margin: 0.4rem 0 0;
  color: #6d8098;
  font-size: 0.85rem;
  line-height: 1.5;
}

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

.operator-config-card {
  padding: 1rem;
  display: grid;
  gap: 0.95rem;
}

.operator-config-card-branches {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(242, 247, 255, 0.98));
}

.operator-config-card-professionals {
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(244, 248, 255, 0.98));
}

.operator-config-card-span-2 {
  grid-column: span 2;
}

.operator-config-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.operator-config-card-note {
  margin: -0.2rem 0 0;
  color: #6f8299;
  font-size: 0.87rem;
  line-height: 1.5;
}

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

.operator-config-form-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-config-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.operator-config-field-span-2 {
  grid-column: span 2;
}

.operator-config-field-compact {
  max-width: 220px;
}

.operator-config-field input,
.operator-config-field select {
  box-sizing: border-box;
  min-height: 46px;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(194, 210, 234, 0.96);
  background: rgba(255, 255, 255, 0.98);
  color: #23406a;
  font: inherit;
}

.operator-config-field-inline {
  align-content: start;
}

.operator-config-field-inline input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: #3772e6;
}

.operator-config-days,
.operator-config-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.operator-config-days label,
.operator-config-choice-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(198, 214, 239, 0.96);
  background: rgba(255, 255, 255, 0.96);
  color: #29456f;
  font-size: 0.82rem;
  font-weight: 700;
}

.operator-config-days-compact label {
  min-height: 34px;
  padding: 0.35rem 0.6rem;
}

.operator-config-days input,
.operator-config-choice-grid input {
  width: 16px;
  height: 16px;
  accent-color: #3772e6;
}

.operator-config-list {
  display: grid;
  gap: 0.85rem;
}

.operator-config-card-branches .operator-config-list {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
}

.operator-config-card-professionals .operator-config-list {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
}

.operator-config-row,
.operator-config-stack {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 223, 240, 0.95);
  background: rgba(255, 255, 255, 0.98);
}

.operator-config-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.operator-config-stack-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(214, 228, 247, 0.92);
  color: #23406a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-config-stack-badge-muted {
  background: rgba(235, 240, 247, 0.95);
  color: #6b7d93;
}

.operator-config-branch-card {
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 22px;
  border-color: rgba(196, 212, 238, 0.95);
  box-shadow: 0 16px 26px rgba(57, 83, 124, 0.08);
}

.operator-config-branch-top {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(222, 232, 246, 0.92);
}

.operator-config-professional-top {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(222, 232, 246, 0.92);
}

.operator-config-branch-title {
  color: #1f3961;
  font-size: 1rem;
  line-height: 1.35;
}

.operator-config-branch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.42fr) minmax(150px, 0.42fr);
  gap: 0.85rem;
  align-items: end;
}

.operator-config-professional-card {
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 22px;
  border-color: rgba(196, 212, 238, 0.95);
  box-shadow: 0 16px 26px rgba(57, 83, 124, 0.08);
}

.operator-config-professional-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.42fr) minmax(150px, 0.42fr);
  gap: 0.85rem;
  align-items: end;
}

.operator-config-professional-grid-compact {
  grid-template-columns: repeat(2, minmax(150px, 0.42fr));
}

.operator-config-row {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(120px, 0.6fr)) auto;
  align-items: end;
}

.operator-config-inline-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 0.1rem;
}

.operator-config-toolbar .btn,
.operator-config-card .btn,
.operator-config-inline-actions .btn {
  border-width: 1px;
  font-weight: 700;
  min-height: 44px;
}

.operator-config-toolbar .btn-primary,
.operator-config-inline-actions .btn-primary {
  color: #f8fbff;
  background: linear-gradient(135deg, #1746a2 0%, #2563eb 55%, #1d4ed8 100%);
  border-color: rgba(24, 73, 170, 0.9);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.28);
}

.operator-config-toolbar .btn-primary:hover,
.operator-config-inline-actions .btn-primary:hover {
  background: linear-gradient(135deg, #143d8f 0%, #1f57d6 55%, #1944be 100%);
  box-shadow: 0 18px 32px rgba(29, 78, 216, 0.34);
}

.operator-config-toolbar .btn-ghost,
.operator-config-card .btn-ghost,
.operator-config-inline-actions .btn-ghost {
  color: #23406a;
  background: linear-gradient(180deg, rgba(231, 239, 252, 0.98), rgba(214, 228, 247, 0.98));
  border-color: rgba(157, 182, 222, 0.95);
  box-shadow: 0 10px 18px rgba(72, 101, 149, 0.08);
}

.operator-config-toolbar .btn-ghost:hover,
.operator-config-card .btn-ghost:hover,
.operator-config-inline-actions .btn-ghost:hover {
  color: #163257;
  background: linear-gradient(180deg, rgba(218, 230, 249, 1), rgba(198, 215, 240, 1));
  border-color: rgba(122, 154, 205, 0.95);
  box-shadow: 0 14px 24px rgba(72, 101, 149, 0.14);
}

.operator-config-inline-actions .btn-ghost[data-branch-delete],
.operator-config-inline-actions .btn-ghost[data-professional-delete],
.operator-config-row .btn-ghost[data-service-remove] {
  color: #8f2332;
  background: linear-gradient(180deg, rgba(255, 239, 242, 0.98), rgba(252, 223, 229, 0.98));
  border-color: rgba(232, 170, 182, 0.95);
  box-shadow: 0 10px 18px rgba(177, 61, 89, 0.1);
}

.operator-config-inline-actions .btn-ghost[data-branch-delete]:hover,
.operator-config-inline-actions .btn-ghost[data-professional-delete]:hover,
.operator-config-row .btn-ghost[data-service-remove]:hover {
  color: #741a29;
  background: linear-gradient(180deg, rgba(255, 228, 234, 1), rgba(248, 205, 215, 1));
  border-color: rgba(222, 140, 159, 0.98);
  box-shadow: 0 14px 24px rgba(177, 61, 89, 0.16);
}

.operator-config-subgroup {
  display: grid;
  gap: 0.5rem;
}

.operator-config-empty,
.operator-config-empty-inline {
  color: #71849b;
  font-size: 0.84rem;
}

.operator-config-empty {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(241, 245, 250, 0.96);
}

.operator-config-empty-inline {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.bot-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.bot-overview-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(212, 220, 231, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 250, 0.96));
  box-shadow: 0 14px 28px rgba(79, 93, 113, 0.08);
}

.bot-overview-card span {
  display: block;
  color: #6a788c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bot-overview-card strong {
  display: block;
  margin-top: 0.42rem;
  color: #2c394b;
  font-size: 1rem;
}

.bot-overview-card p {
  margin: 0.45rem 0 0;
  color: #6c7a8f;
  font-size: 0.86rem;
  line-height: 1.55;
}

.bot-admin-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.bot-admin-sidebar,
.bot-thread-card {
  border-radius: 24px;
  border: 1px solid rgba(198, 214, 239, 0.84);
  background: rgba(246, 250, 255, 0.92);
  overflow: hidden;
  height: 100%;
  max-height: 100%;
}

.bot-admin-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bot-admin-toolbar {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(205, 218, 241, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 247, 255, 0.95));
}

.bot-field-label {
  color: #49658d;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bot-select,
.bot-search,
.bot-composer-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(183, 201, 232, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #17345e;
  font: inherit;
}

.bot-select,
.bot-search {
  min-height: 48px;
  padding: 0.78rem 0.95rem;
}

.bot-select:focus,
.bot-search:focus,
.bot-composer-input:focus {
  outline: none;
  border-color: rgba(75, 129, 228, 0.82);
  box-shadow: 0 0 0 4px rgba(75, 129, 228, 0.12);
}

.bot-assistant-card,
.bot-sync-card {
  margin: 0.9rem 1rem 0;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(199, 216, 242, 0.9);
}

.bot-assistant-card {
  background: linear-gradient(145deg, rgba(53, 64, 79, 0.97), rgba(71, 84, 102, 0.97));
  color: #eef3fa;
}

.bot-assistant-card p {
  margin: 0.35rem 0 0;
  color: #d3dbe7;
  font-size: 0.88rem;
  line-height: 1.5;
}

.bot-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.bot-pill {
  border: 1px solid rgba(199, 209, 223, 0.28);
  border-radius: 999px;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  color: #eef3fb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bot-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bot-pill.is-active,
.bot-pill:hover:not(:disabled) {
  background: #d7dee7;
  color: #ffffff;
  border-color: rgba(215, 222, 231, 0.8);
}

.bot-sync-card {
  background: rgba(242, 247, 255, 0.96);
  color: #33537f;
  font-size: 0.88rem;
  line-height: 1.5;
}

.bot-sync-card[data-tone="success"] {
  background: rgba(92, 175, 109, 0.12);
  border-color: rgba(92, 175, 109, 0.28);
  color: #2d6a40;
}

.bot-sync-card[data-tone="error"] {
  background: rgba(199, 78, 78, 0.1);
  border-color: rgba(199, 78, 78, 0.24);
  color: #8f3131;
}

.bot-chat-list {
  display: grid;
  flex: 1 1 auto;
  gap: 0.6rem;
  padding: 1rem;
  overflow: auto;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.9), rgba(238, 245, 255, 0.75));
}

.bot-chat-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  width: 100%;
  border: 1px solid rgba(199, 216, 242, 0.86);
  border-radius: 18px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  color: #17345e;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bot-chat-item:hover,
.bot-chat-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(132, 149, 174, 0.4);
  box-shadow: 0 16px 28px rgba(83, 96, 117, 0.12);
}

.bot-chat-item.is-active {
  background: linear-gradient(145deg, rgba(99, 114, 137, 0.96), rgba(78, 93, 115, 0.96));
  color: #f7fbff;
}

.bot-chat-item.is-active .bot-chat-row strong,
.bot-chat-item.is-active .bot-chat-row time,
.bot-chat-item.is-active .bot-chat-subtitle,
.bot-chat-item.is-active .bot-chat-meta {
  color: rgba(243, 248, 255, 0.92);
}

.bot-chat-item.is-active .bot-chat-copy,
.bot-chat-item.is-active .bot-chat-copy *,
.bot-chat-item.is-active .bot-chat-badge {
  color: #ffffff;
}

.bot-chat-item.is-active .bot-chat-badge.is-open,
.bot-chat-item.is-active .bot-chat-badge.is-closed {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.bot-chat-avatar,
.bot-thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bot-chat-copy {
  min-width: 0;
}

.bot-chat-row,
.bot-chat-meta,
.bot-bubble-meta,
.bot-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bot-chat-row strong,
.bot-thread-header strong {
  font-size: 0.95rem;
}

.bot-chat-row time,
.bot-chat-meta,
.bot-chat-subtitle,
.bot-thread-header p,
.bot-bubble-meta {
  color: #59759f;
  font-size: 0.8rem;
}

.bot-chat-subtitle {
  display: block;
  margin-top: 0.24rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-chat-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.bot-chat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.bot-chat-badge.is-open {
  background: rgba(91, 176, 107, 0.12);
  color: #2b6b3f;
}

.bot-chat-badge.is-closed {
  background: rgba(202, 140, 58, 0.12);
  color: #925f1a;
}

.bot-thread-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(156, 170, 191, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(238, 242, 247, 0.96));
}

.bot-thread-empty,
.bot-thread-header,
.bot-thread-error,
.bot-composer {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.bot-thread-empty {
  display: grid;
  place-content: center;
  min-height: 100%;
  text-align: center;
  color: #466286;
}

.bot-thread-empty p {
  max-width: 48ch;
  margin: 0.55rem auto 0;
  line-height: 1.6;
}

.bot-thread-content {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.bot-thread-header {
  min-height: 84px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(199, 214, 239, 0.84);
  justify-content: flex-start;
  background: rgba(249, 251, 253, 0.96);
}

.bot-thread-header p {
  margin: 0.18rem 0 0;
  line-height: 1.45;
}

.bot-thread-debug {
  margin: 0 1.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(238, 243, 249, 0.96);
  border: 1px dashed rgba(184, 194, 208, 0.92);
  color: #43536b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.bot-thread-messages {
  display: block;
  overflow: auto;
  min-height: 0;
  height: 100%;
  padding: 1rem 1.1rem 0.8rem;
  background:
    radial-gradient(circle at top right, rgba(171, 184, 203, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(236, 241, 246, 0.94));
}

.bot-day-separator {
  width: fit-content;
  margin: 0 auto 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(99, 114, 137, 0.9);
  color: #f6faff;
  font-size: 0.75rem;
  font-weight: 700;
}

.bot-bubble-row {
  display: flex;
  margin-bottom: 0.75rem;
}

.bot-bubble-row.is-outbound {
  justify-content: flex-end;
}

.bot-bubble {
  max-width: min(78%, 720px);
  padding: 0.85rem 0.95rem;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(28, 57, 103, 0.08);
}

.bot-bubble.is-inbound {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(211, 220, 231, 0.92);
  color: #2e3b4d;
}

.bot-bubble.is-outbound {
  background: linear-gradient(145deg, rgba(108, 123, 146, 0.96), rgba(83, 97, 118, 0.96));
  color: #ffffff;
}

.bot-bubble.is-outbound .bot-bubble-meta {
  color: rgba(244, 248, 255, 0.92);
}

.bot-bubble.is-outbound,
.bot-bubble.is-outbound *,
.bot-bubble.is-outbound p,
.bot-bubble.is-outbound span,
.bot-bubble.is-outbound time {
  color: #ffffff;
}

.bot-bubble.is-outbound p {
  opacity: 1;
}

.bot-bubble p {
  margin: 0.28rem 0 0;
  line-height: 1.55;
}

.bot-thread-error {
  margin: 0 1.1rem 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(199, 78, 78, 0.1);
  border: 1px solid rgba(199, 78, 78, 0.22);
  color: #8f3131;
  font-size: 0.86rem;
}

.bot-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(199, 214, 239, 0.84);
  background: rgba(255, 255, 255, 0.78);
}

.bot-composer-input {
  min-height: 54px;
  padding: 0.9rem 1rem;
}

.bot-composer-send {
  min-width: 112px;
}

.bot-chat-empty {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(184, 202, 232, 0.9);
  color: #577399;
  text-align: center;
}

.admin-page[data-admin-panel-active="bot-whatsapp"] .admin-hero {
  display: none;
}

.admin-page[data-admin-panel-active="calendario"] .admin-hero {
  display: none;
}

.admin-page[data-admin-panel-active="configuracoes-operador"] .admin-hero {
  display: none;
}

.admin-page[data-admin-panel-active="configuracoes-operador"] .admin-panel[data-admin-panel="configuracoes-operador"] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 128px);
  padding: 1.15rem;
}

.admin-page[data-admin-panel-active="configuracoes-operador"] .admin-content {
  min-height: calc(100vh - 128px);
}

.admin-page[data-admin-panel-active="calendario"] .admin-panel[data-admin-panel="calendario"] {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 1.15rem;
}

.admin-page[data-admin-panel-active="calendario"] .admin-content {
  min-height: calc(100vh - 128px);
}

.admin-page[data-admin-panel-active="calendario"] .admin-shell {
  grid-template-columns: 272px minmax(0, 1fr);
}

.admin-page[data-admin-sidebar="collapsed"][data-admin-panel-active="calendario"] .admin-shell {
  grid-template-columns: 92px minmax(0, 1fr);
}

.admin-page[data-admin-panel-active="bot-whatsapp"] .admin-panel[data-admin-panel="bot-whatsapp"] {
  min-height: calc(100vh - 128px);
  max-height: calc(100vh - 128px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-page[data-admin-panel-active="bot-whatsapp"] .admin-content {
  min-height: calc(100vh - 128px);
}

.admin-topbar-actions {
  gap: 0.7rem;
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(245, 249, 255, 0.9);
  border: 1px solid rgba(195, 212, 240, 0.96);
  color: #1d3a6d;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-trust-card {
  margin-top: 1rem;
  padding: 1rem;
}

.auth-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.auth-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(193, 210, 239, 0.92);
  color: #2b4f97;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    gap: 0.9rem;
  }

  nav {
    display: grid;
    order: 3;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    overflow: visible;
    padding-bottom: 0;
  }

  nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 0.6rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(198, 214, 239, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    white-space: normal;
    text-align: center;
  }

  .brand {
    width: 185px;
    height: 60px;
    margin-right: 0.7rem;
  }

  .brand img {
    top: -22px;
    height: 90px;
  }

  .header-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: 0;
    max-width: min(100%, 420px);
  }

  .header-guest-actions,
  .header-session {
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
  }

  .header-profile-trigger {
    min-width: 0;
    max-width: 100%;
  }

  .header-profile-copy strong,
  .header-guest-actions .btn {
    flex: 0 0 auto;
  }

  .header-actions .btn {
    padding: 0.58rem 0.78rem;
    font-size: 0.84rem;
  }

  .hero-grid,
  .auth-shell,
  .auth-stage-grid,
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .how-hero-grid,
  .how-summary-grid,
  .how-kpis {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 0;
  }

  .hero-card {
    width: min(100%, 380px);
    margin: 0 auto;
  }

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

  .how-carousel-frame {
    min-height: 0;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
  }

  .showcase-scene {
    grid-template-columns: 1fr;
    padding-top: 5.8rem;
  }

  .showcase-scene-split {
    padding-top: 1rem;
  }

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

   .showcase-device-stack {
    min-height: 680px;
  }

  .showcase-device-stack-dual {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-bottom: 0;
  }

  .portal-web-card {
    width: min(100%, 720px);
  }

  .portal-web-body,
  .portal-agenda-layout,
  .portal-checkin-grid,
  .portal-validation-grid,
  .portal-insights-chart {
    grid-template-columns: 1fr;
  }

  .portal-agenda-columns,
  .portal-insights-metrics,
  .portal-web-footer-strip,
  .portal-validation-board,
  .portal-insights-grid {
    grid-template-columns: 1fr;
  }

  .portal-agenda-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .portal-web-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    border-right: 0;
    border-bottom: 1px solid rgba(190, 209, 241, 0.44);
  }

  .module-data-strip {
    grid-template-columns: 1fr;
  }

  .showcase-floating-card {
    max-width: calc(100% - 2rem);
  }

  .showcase-scene-split .showcase-floating-card {
    max-width: 100%;
  }

  .showcase-orbit-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 360px;
    order: 2;
    margin-top: -1.5rem;
  }

  .how-carousel-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero-value-strip {
    gap: 0.45rem;
  }

  .hero-value-strip span {
    font-size: 0.8rem;
  }

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

  .phone-frame {
    width: 248px;
    height: 540px;
  }

  .phone-screen {
    height: 100%;
  }

  .auth-stage {
    min-height: unset;
    padding: 1.6rem;
  }

  .auth-card {
    padding: 1.6rem 1.25rem;
  }

  .auth-card-compact {
    margin-top: 2rem;
  }

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

  .calendar-admin-toolbar,
  .calendar-admin-body {
    grid-template-columns: 1fr;
    display: grid;
  }

  .operator-config-actions,
  .operator-config-grid,
  .operator-config-form-grid,
  .operator-config-form-grid-compact,
  .operator-config-kpis,
  .operator-config-row,
  .operator-config-branch-grid,
  .operator-config-professional-grid,
  .operator-config-professional-grid-compact {
    grid-template-columns: 1fr;
  }

  .operator-config-field-span-2,
  .operator-config-field-compact {
    grid-column: auto;
    max-width: none;
  }

  .operator-config-card-branches .operator-config-list {
    grid-template-columns: 1fr;
  }

  .operator-config-card-professionals .operator-config-list {
    grid-template-columns: 1fr;
  }

  .operator-config-toolbar-buttons,
  .operator-config-card-actions,
  .operator-config-inline-actions {
    width: 100%;
    justify-content: stretch;
  }

  .operator-config-toolbar-buttons .btn,
  .operator-config-card-actions .btn,
  .operator-config-inline-actions .btn {
    flex: 1 1 100%;
  }

  .calendar-admin-support {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-admin-controls {
    justify-items: stretch;
  }

  .calendar-admin-filters {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .calendar-modal-grid {
    grid-template-columns: 1fr;
  }

  .calendar-admin-stage {
    max-height: none;
  }

  .calendar-admin-canvas {
    max-height: calc(100vh - 340px);
  }

  .calendar-admin-nav-actions,
  .calendar-admin-view-switch {
    justify-content: flex-start;
  }

  .calendar-admin-metrics,
  .calendar-year-view {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-time-header,
  .calendar-time-body {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .calendar-month-view {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
  }

  .bot-admin-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .bot-overview-strip {
    grid-template-columns: 1fr;
  }

  .admin-page[data-admin-panel-active="bot-whatsapp"] .admin-panel[data-admin-panel="bot-whatsapp"] {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

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

  .admin-sidebar {
    position: static;
  }

  .admin-page[data-admin-sidebar="collapsed"] .admin-shell,
  .admin-page[data-admin-sidebar="collapsed"][data-admin-panel-active="calendario"] .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-page[data-admin-sidebar="collapsed"] .admin-sidebar .badge,
  .admin-page[data-admin-sidebar="collapsed"] .admin-nav-label,
  .admin-page[data-admin-sidebar="collapsed"] .admin-sidebar::after {
    display: initial;
  }

  .admin-page[data-admin-sidebar="collapsed"] .admin-nav-item::after {
    display: none;
  }

}

@media (max-width: 768px) {
  .nav {
    gap: 0.75rem;
  }

  .header-actions {
    width: 100%;
    max-width: none;
    margin-left: 0;
    justify-content: space-between;
  }

  .header-guest-actions,
  .header-session {
    width: 100%;
    justify-content: space-between;
  }

  .header-profile {
    width: 100%;
  }

  .header-profile-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .header-profile-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .header-search-trigger {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: 3.35rem 0 2.5rem;
  }

  .hero-video,
  .hero-scenes {
    opacity: 1;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 17, 33, 0.62) 0%, rgba(8, 20, 39, 0.4) 42%, rgba(6, 16, 30, 0.56) 100%),
      radial-gradient(circle at 80% 22%, rgba(61, 140, 255, 0.12), transparent 28%),
      rgba(0, 0, 0, 0.08);
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-title {
    margin-right: 0;
  }

  .money-proof,
  .control-note {
    font-size: 0.92rem;
  }

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

  .hero .hero-text {
    font-size: 1rem;
  }

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

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

  .hero-value-strip {
    gap: 0.5rem;
  }

  .hero-value-strip span {
    width: 100%;
    justify-content: center;
  }

  .hero-value-strip,
  .micro-trust {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hero-value-strip span,
  .micro-trust span {
    justify-content: center;
  }

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

  .phone-frame {
    transform: rotate(0deg);
    width: 240px;
    height: 520px;
  }

  .calendar-body {
    grid-template-columns: 38px 1fr;
    padding-left: 0.45rem;
  }

  .calendar-toolbar {
    padding: 0.5rem 0.7rem 0.62rem;
  }

  .calendar-slot {
    margin: 0 0.2rem;
  }

  .calendar-transfer {
    width: 156px;
    right: 0.55rem;
    bottom: 4.05rem;
  }

  .checkin-body,
  .validation-body,
  .dashboard-body {
    padding: 0.72rem 0.64rem 0.62rem;
  }

  .checkin-choice-grid,
  .validation-grid,
  .dashboard-kpis,
  .dashboard-grid {
    gap: 0.44rem;
  }

  .hero-card {
    width: min(100%, 340px);
    padding: 0.9rem 0.75rem 0.8rem;
  }

  .carousel-copy {
    gap: 0.9rem;
  }

  .module-data-strip {
    gap: 0.65rem;
  }

  .showcase-scene {
    min-height: 0;
    padding: 1rem;
    border-radius: 24px;
  }

  .showcase-floating-card,
  .showcase-side-panel,
  .showcase-orbit-card {
    width: 100%;
    max-width: 100%;
  }

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

  .portal-web-card {
    width: 100%;
  }

  .portal-web-shell {
    border-radius: 22px;
  }

  .portal-web-main {
    padding: 0.85rem;
  }

  .portal-web-header-card,
  .portal-agenda-panel,
  .portal-agenda-calendar,
  .portal-validation-timeline,
  .portal-validation-summary,
  .portal-insights-metrics article,
  .portal-insights-chart,
  .portal-web-footer-strip div,
  .portal-aside-card,
  .portal-agenda-table,
  .portal-board-card {
    border-radius: 18px;
  }

  .how-carousel-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .how-carousel-tabs::-webkit-scrollbar {
    display: none;
  }

  .carousel-tab {
    flex: 0 0 auto;
  }

  .how-hero {
    padding: 4.2rem 0 2.8rem;
  }

  .how-phone-frame {
    width: 276px;
    height: 600px;
  }

  .portal-web-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .portal-browser-bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .portal-browser-tabs {
    width: 100%;
  }

  .portal-browser-tab {
    flex: 1 1 0;
  }

  .portal-web-search,
  .portal-web-user {
    width: 100%;
    text-align: center;
  }

  .auth-main {
    padding-top: 1.35rem;
  }

  .auth-stage-copy h1,
  .auth-card-header h2 {
    max-width: none;
  }

  .social-auth-btn {
    min-height: 54px;
    font-size: 0.92rem;
  }

  .auth-link-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-main {
    padding-top: 1.2rem;
  }

  .bot-composer {
    grid-template-columns: 1fr;
  }

  .calendar-admin-metrics,
  .calendar-year-view {
    grid-template-columns: 1fr;
  }

  .calendar-admin-filters {
    grid-template-columns: 1fr;
  }

  .calendar-admin-canvas {
    max-height: calc(100vh - 360px);
  }

  .calendar-admin-support {
    grid-template-columns: 1fr;
  }

  .calendar-time-day-head {
    min-height: 68px;
  }

  .calendar-time-event {
    min-width: 0;
  }

  .bot-bubble {
    max-width: 92%;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 0.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  nav a {
    padding: 0.55rem 0.68rem;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .header-search-trigger {
    min-height: 38px;
    padding-inline: 0.68rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-guest-actions,
  .header-session {
    gap: 0.45rem;
  }

  .header-profile-trigger {
    min-height: 44px;
    padding: 0.34rem 0.38rem 0.34rem 0.42rem;
  }

  .header-profile-copy small {
    font-size: 0.64rem;
  }

  .header-profile-copy strong {
    max-width: 120px;
    font-size: 0.84rem;
  }

  .header-admin-link,
  .header-logout-button,
  .header-guest-actions .btn {
    flex: 1 1 calc(50% - 0.3rem);
    text-align: center;
  }

  .brand {
    width: 150px;
    height: 52px;
  }

  .hero {
    padding: 3rem 0 2.1rem;
  }

  .hero-card {
    width: min(100%, 300px);
    padding: 0.82rem 0.62rem 0.72rem;
    border-radius: 22px;
  }

  .money-proof,
  .control-note,
  .hero-urgency {
    font-size: 0.86rem;
  }

  .hero-value-strip span,
  .micro-trust span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .showcase-scene {
    padding: 0.85rem;
    border-radius: 20px;
  }

  .carousel-copy h3 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .module-data-card,
  .showcase-floating-card,
  .showcase-side-panel,
  .showcase-orbit-card,
  .portal-web-header-card,
  .portal-agenda-panel,
  .portal-agenda-calendar,
  .portal-validation-timeline,
  .portal-validation-summary,
  .portal-insights-metrics article,
  .portal-insights-chart,
  .portal-web-footer-strip div,
  .portal-aside-card,
  .portal-agenda-table,
  .portal-board-card {
    border-radius: 16px;
  }

  .portal-browser-bar,
  .portal-web-topbar,
  .portal-web-main {
    padding-inline: 0.72rem;
  }

  .portal-web-sidebar span,
  .portal-toolbar-chip,
  .portal-web-badge {
    font-size: 0.62rem;
  }

  .how-carousel-tabs {
    gap: 0.35rem;
  }

  .carousel-tab {
    min-height: 40px;
    padding: 0.58rem 0.72rem;
  }

  .brand img {
    top: -16px;
    height: 76px;
  }

  .header-actions .btn {
    padding: 0.52rem 0.68rem;
    font-size: 0.78rem;
  }

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

  .phone-frame {
    width: 228px;
    height: 496px;
  }

  .how-flow-steps div,
  .how-summary-card {
    padding: 1rem;
  }

  .how-carousel-frame {
    min-height: 0;
  }

  .module-data-card {
    padding: 0.82rem 0.86rem;
  }

  .showcase-scene {
    padding: 5.6rem 0.9rem 1rem;
  }

  .how-phone-frame {
    width: 248px;
    height: 540px;
  }

  .showcase-floating-card,
  .showcase-orbit-card,
  .showcase-side-panel {
    max-width: 100%;
  }

  .portal-web-main,
  .portal-web-sidebar {
    padding: 0.82rem;
  }

  .portal-web-toolbar,
  .portal-web-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .portal-web-header-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-table-row {
    grid-template-columns: 62px 1fr;
  }

  .portal-table-row span:nth-child(3),
  .portal-table-row span:nth-child(4) {
    justify-self: start;
  }

  .portal-web-badge {
    white-space: normal;
  }

  .carousel-slide {
    padding: 1rem;
  }

  .showcase-side-panel {
    order: 3;
  }

  .how-cta-actions .btn {
    width: 100%;
    text-align: center;
  }

  .how-carousel-tabs {
    gap: 0.4rem;
  }

  .carousel-tab {
    flex: 1 1 140px;
    text-align: center;
  }

  .showcase-scene {
    min-height: 480px;
  }

  .calendar-head {
    padding: 0.9rem 0.8rem 0.75rem;
  }

  .calendar-subtitle {
    font-size: 0.62rem;
  }

  .calendar-body {
    gap: 0.3rem;
    grid-template-columns: 34px 1fr;
    padding: 0.8rem 0.45rem 0.6rem 0.3rem;
  }

  .calendar-toolbar {
    padding: 0.45rem 0.6rem 0.55rem;
    gap: 0.24rem;
  }

  .calendar-chip {
    min-width: 46px;
    padding: 0.28rem 0.42rem;
    font-size: 0.62rem;
  }

  .calendar-column-header {
    padding: 0 0.5rem 0 0.65rem;
  }

  .calendar-slot {
    padding: 0.42rem 0.5rem;
  }

  .calendar-tag {
    font-size: 0.56rem;
  }

  .calendar-transfer {
    width: 146px;
    right: 0.45rem;
    bottom: 3.8rem;
    padding: 0.48rem 0.54rem;
  }

  .checkin-head,
  .checkin-footer,
  .validation-head,
  .validation-footer,
  .dashboard-head,
  .dashboard-footer {
    padding: 0.82rem 0.78rem 0.7rem;
  }

  .checkin-badge,
  .validation-badge,
  .dashboard-badge {
    font-size: 0.58rem;
    padding: 0.28rem 0.44rem;
  }

  .checkin-body,
  .validation-body,
  .dashboard-body {
    padding: 0.62rem 0.56rem 0.56rem;
  }

  .checkin-alert-card,
  .checkin-choice,
  .checkin-response-card,
  .validation-client-card,
  .validation-stepper,
  .validation-mini-card,
  .dashboard-card,
  .dashboard-panel {
    border-radius: 14px;
  }

  .checkin-choice-grid,
  .validation-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .compact-panel {
    min-height: auto;
  }

  .auth-stage,
  .auth-card,
  .auth-feature-list,
  .auth-info-panel,
  .auth-phone-card,
  .auth-checklist,
  .auth-trust-card,
  .auth-note {
    border-radius: 22px;
  }

  .auth-card {
    padding: 1.25rem 1rem;
  }

  .auth-stage {
    padding: 1.25rem 1rem;
  }

  .auth-feature-item {
    grid-template-columns: 38px 1fr;
  }

  .auth-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .admin-sidebar,
  .admin-hero,
  .admin-panel,
  .admin-feature-card,
  .admin-placeholder,
  .calendar-admin-toolbar,
  .calendar-admin-sidebar,
  .calendar-admin-stage,
  .calendar-sidebar-card,
  .calendar-metric-card,
  .calendar-week-column,
  .calendar-month-cell,
  .calendar-year-card {
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 0.55rem;
  }

  .header-actions,
  .header-guest-actions,
  .header-session {
    width: 100%;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-search-trigger {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .header-admin-link,
  .header-logout-button,
  .header-guest-actions .btn {
    flex: 1 1 100%;
  }

  .hero {
    padding: 2.7rem 0 1.8rem;
  }

  .badge,
  .hero .badge {
    padding: 0.38rem 0.62rem;
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .hero .hero-text {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .money-proof,
  .control-note,
  .hero-urgency {
    font-size: 0.82rem;
  }

  .hero-value-strip span,
  .micro-trust span {
    padding: 0.62rem 0.7rem;
    font-size: 0.76rem;
  }

  .hero-card {
    width: 100%;
    max-width: 280px;
  }

  .phone-frame {
    width: 212px;
    height: 458px;
  }

  .carousel-slide {
    padding: 0.82rem;
  }

  .carousel-copy h3 {
    font-size: clamp(1.2rem, 7vw, 1.55rem);
  }

  .how-carousel-tabs {
    padding-bottom: 0.15rem;
  }

  .carousel-tab {
    min-height: 38px;
    padding: 0.52rem 0.62rem;
    font-size: 0.78rem;
    flex: 0 0 auto;
  }

  .showcase-scene {
    min-height: 440px;
    padding: 4.85rem 0.72rem 0.82rem;
  }

  .showcase-summary-row {
    gap: 0.55rem;
  }

  .portal-web-shell {
    border-radius: 18px;
  }

  .portal-browser-tabs,
  .portal-agenda-mini-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portal-browser-tabs::-webkit-scrollbar,
  .portal-agenda-mini-tabs::-webkit-scrollbar {
    display: none;
  }

  .portal-browser-tab,
  .portal-agenda-mini-tabs span {
    flex: 0 0 auto;
  }

  .portal-web-toolbar,
  .portal-web-sidebar {
    grid-template-columns: 1fr;
  }

  .portal-browser-bar,
  .portal-web-topbar,
  .portal-web-main,
  .portal-web-sidebar {
    padding: 0.72rem;
  }

  .portal-web-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .portal-agenda-calendar-body {
    grid-template-columns: 42px 1fr;
    gap: 0.45rem;
    min-height: 300px;
  }
}

@media (max-width: 390px) {
  .container {
    width: 94%;
  }

  .brand {
    width: 138px;
    height: 48px;
  }

  .brand img {
    top: -14px;
    height: 70px;
  }

  nav a {
    padding: 0.5rem 0.45rem;
    font-size: 0.74rem;
  }

  .header-welcome {
    padding: 0 0.62rem;
  }

  .hero-card {
    max-width: 268px;
    padding: 0.75rem 0.55rem 0.65rem;
    border-radius: 18px;
  }

  .money-proof,
  .control-note,
  .hero-urgency {
    font-size: 0.8rem;
  }

  .showcase-scene {
    min-height: 400px;
    padding: 4.35rem 0.62rem 0.72rem;
    border-radius: 18px;
  }

  .portal-browser-bar,
  .portal-web-topbar,
  .portal-web-main,
  .portal-web-sidebar {
    padding: 0.62rem;
  }

  .portal-agenda-calendar-body {
    grid-template-columns: 36px 1fr;
  }

  .portal-agenda-slot {
    margin: 0 0.15rem;
    padding: 0.45rem;
  }

  .portal-table-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (max-width: 360px) {
  .container {
    width: 95%;
  }

  h1 {
    font-size: clamp(1.62rem, 8.4vw, 2.05rem);
  }

  .hero .hero-text,
  .money-proof,
  .control-note,
  .hero-urgency {
    font-size: 0.78rem;
  }

  .hero-actions .btn,
  .header-search-trigger,
  .header-guest-actions .btn,
  .header-admin-link,
  .header-logout-button {
    min-height: 42px;
    font-size: 0.76rem;
  }

  nav {
    gap: 0.35rem;
  }

  nav a {
    min-height: 40px;
    padding: 0.46rem 0.34rem;
    font-size: 0.7rem;
  }

  .hero-card {
    max-width: 252px;
    padding: 0.68rem 0.48rem 0.58rem;
  }

  .phone-frame {
    width: 198px;
    height: 432px;
  }

  .carousel-slide,
  .showcase-scene {
    padding-inline: 0.55rem;
  }

  .showcase-scene {
    min-height: 372px;
    padding-top: 4rem;
  }

  .carousel-tab {
    min-height: 36px;
    padding: 0.48rem 0.56rem;
    font-size: 0.74rem;
  }

  .portal-web-shell,
  .portal-web-header-card,
  .portal-agenda-panel,
  .portal-agenda-calendar,
  .portal-validation-summary,
  .portal-insights-chart,
  .portal-agenda-table,
  .portal-board-card,
  .portal-aside-card {
    border-radius: 14px;
  }

  .portal-browser-bar,
  .portal-web-topbar,
  .portal-web-main,
  .portal-web-sidebar {
    padding: 0.55rem;
  }
}
