:root {
  --ecl-bg: #f7f4ee;
  --ecl-bg-soft: #efe8df;
  --ecl-surface: rgba(255, 255, 255, 0.94);
  --ecl-surface-border: rgba(15, 23, 42, 0.08);
  --ecl-surface-muted: #f4efe8;
  --ecl-ink: #141b2d;
  --ecl-muted: #5f6777;
  --ecl-muted-soft: #8d95a5;
  --ecl-accent: #d62d4e;
  --ecl-accent-strong: #b81f3f;
  --ecl-accent-soft: rgba(214, 45, 78, 0.1);
  --ecl-focus: #2563eb;
  --ecl-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
  --ecl-radius: 28px;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.exotic-chat-landing-page {
  background:
    radial-gradient(circle at top right, rgba(214, 45, 78, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf8f4 0%, var(--ecl-bg) 52%, #f2ece4 100%);
  color: var(--ecl-ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.exotic-chat-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.exotic-chat-panel {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: var(--ecl-radius);
  background: var(--ecl-surface);
  border: 1px solid var(--ecl-surface-border);
  box-shadow: var(--ecl-shadow);
  backdrop-filter: blur(10px);
}

.exotic-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.exotic-chat-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.exotic-chat-identity__mark {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.exotic-chat-identity__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.exotic-chat-section-label {
  margin: 0;
  color: var(--ecl-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.exotic-chat-country-chip {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--ecl-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.exotic-chat-copy-block h1 {
  margin: 0;
  max-width: 10ch;
  color: var(--ecl-ink);
  font-size: clamp(2.25rem, 9vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.exotic-chat-copy {
  margin: 16px 0 0;
  max-width: 34ch;
  color: var(--ecl-muted);
  font-size: 16px;
  line-height: 1.65;
}

.exotic-chat-activity {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.exotic-chat-activity span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(214, 45, 78, 0.32);
  animation: ecl-dot 1s ease-in-out infinite;
}

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

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

body.is-pwa-standalone:not(.is-shell-ready) .exotic-chat-activity {
  display: inline-flex;
}

.exotic-chat-status {
  margin: 20px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ecl-surface-muted);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--ecl-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.exotic-chat-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ecl-accent);
  box-shadow: 0 0 0 0 rgba(214, 45, 78, 0.25);
  animation: ecl-pulse 1.8s ease-in-out infinite;
}

.exotic-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.exotic-chat-action,
.exotic-chat-fallback {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.exotic-chat-action {
  color: #fff;
  background: var(--ecl-accent);
  box-shadow: 0 14px 30px rgba(214, 45, 78, 0.18);
}

.exotic-chat-action:hover,
.exotic-chat-action:focus-visible {
  background: var(--ecl-accent-strong);
}

.exotic-chat-action--secondary,
.exotic-chat-fallback,
.exotic-chat-action--supportive {
  color: var(--ecl-ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: none;
}

.exotic-chat-action--supportive {
  color: var(--ecl-muted);
  background: var(--ecl-surface-muted);
}

.exotic-chat-action[disabled] {
  cursor: default;
  opacity: 1;
}

.exotic-chat-action[disabled]:hover,
.exotic-chat-action[disabled]:focus-visible {
  transform: none;
  background: var(--ecl-surface-muted);
  outline: none;
}

.exotic-chat-action:hover,
.exotic-chat-action:focus-visible,
.exotic-chat-fallback:hover,
.exotic-chat-fallback:focus-visible {
  transform: translateY(-1px);
}

.exotic-chat-action:focus-visible,
.exotic-chat-fallback:focus-visible {
  outline: 3px solid var(--ecl-focus);
  outline-offset: 2px;
}

.exotic-chat-hint {
  margin: 14px 0 0;
  color: var(--ecl-muted);
  font-size: 14px;
  line-height: 1.55;
}

.exotic-chat-hint:not([hidden]) {
  display: block;
}

.exotic-chat-fallback {
  margin-top: 14px;
}

.exotic-chat-panel__footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.exotic-chat-panel__footer-copy {
  margin: 0;
  color: var(--ecl-muted);
  font-size: 13px;
  font-weight: 600;
}

.exotic-chat-action[hidden],
.exotic-chat-hint[hidden],
.exotic-chat-fallback[hidden] {
  display: none !important;
}

body.exotic-chat-landing-page.is-chat-open .exotic-chat-activity {
  opacity: 0;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
}

@keyframes ecl-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(214, 45, 78, 0.2);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(214, 45, 78, 0);
  }
}

@keyframes ecl-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .exotic-chat-shell {
    padding: 18px;
  }

  .exotic-chat-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .exotic-chat-header {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .exotic-chat-identity__mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .exotic-chat-country-chip {
    padding: 9px 12px;
  }

  .exotic-chat-copy-block h1 {
    max-width: 11ch;
    font-size: clamp(2rem, 12vw, 2.85rem);
  }

  .exotic-chat-copy {
    font-size: 15px;
  }

  .exotic-chat-status {
    display: flex;
  }

  .exotic-chat-action,
  .exotic-chat-fallback {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exotic-chat-activity span,
  .exotic-chat-status::before {
    animation: none;
  }

  .exotic-chat-action,
  .exotic-chat-fallback,
  .exotic-chat-activity {
    transition: none;
  }
}
