:root {
  color-scheme: dark;
  --bg-0: #06070d;
  --bg-1: #101423;
  --surface: rgba(10, 15, 27, 0.84);
  --text: #faf6ee;
  --muted: #b2bdd1;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: #f0c86b;
  --accent-soft: #ffe0a4;
  --gold-shadow: rgba(243, 201, 106, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.24);
  --page-pad: 24px;
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(243, 201, 106, 0.18), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(124, 214, 203, 0.12), transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(120, 145, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #111523 0%, var(--bg-1) 24%, var(--bg-0) 62%, #03040a 100%);
  overflow-x: hidden;
}

body.sophia-auth-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px, 84px 84px;
  background-position: 0 0, 18px 22px;
  opacity: 0.24;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 90%);
}

body::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.02), transparent 36%),
    radial-gradient(circle at center, rgba(243, 201, 106, 0.04), transparent 54%);
  opacity: 0.72;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

::selection {
  background: rgba(243, 201, 106, 0.35);
  color: #fff;
}

h1,
p {
  margin: 0;
}

#root {
  min-height: 100dvh;
}

.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
}

.chat {
  width: min(var(--max), calc(100vw - 2 * var(--page-pad)));
  min-height: calc(100dvh - 2 * var(--page-pad));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 24, 41, 0.92), rgba(8, 12, 20, 0.92)),
    var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.chat::before,
.chat::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.chat::before {
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(243, 201, 106, 0), rgba(243, 201, 106, 0.95) 18%, rgba(255, 234, 183, 0.95) 50%, rgba(243, 201, 106, 0.95) 82%, rgba(243, 201, 106, 0));
  opacity: 0.95;
}

.chat::after {
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  border: 1px solid rgba(243, 201, 106, 0.08);
}

.chat__head {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at left top, rgba(243, 201, 106, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.chat__identity-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.chat__identity {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.chat__identity::after {
  content: "";
  width: 76px;
  height: 8px;
  margin-top: 1px;
  background:
    radial-gradient(circle, rgba(243, 201, 106, 0.95) 0 2px, transparent 2.5px) center/10px 10px no-repeat,
    linear-gradient(90deg, rgba(243, 201, 106, 0), rgba(243, 201, 106, 0.72) 24%, rgba(255, 231, 175, 0.95) 50%, rgba(243, 201, 106, 0.72) 76%, rgba(243, 201, 106, 0));
  opacity: 0.9;
}

.chat__header-avatar {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid rgba(243, 201, 106, 0.72);
  background: linear-gradient(180deg, #ffffff 0%, #eef4f5 100%);
  box-shadow:
    0 0 0 5px rgba(243, 201, 106, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.chat__header-avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(243, 201, 106, 0.18);
  pointer-events: none;
}

.chat__header-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(1.03) brightness(1.02);
}

.chat__brandline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.chat__actions {
  display: none;
}

.chat__social-proof {
  max-width: 460px;
  margin: -1px 0 0;
  color: rgba(250, 246, 238, 0.62);
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.journey-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 20px 2px;
  overflow: visible;
}

.journey-progress::-webkit-scrollbar {
  display: none;
}

.journey-progress__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 116px;
  padding: 0 10px;
  color: rgba(250, 246, 238, 0.54);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.journey-progress__step::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 14px);
  width: calc(100% - 28px);
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 201, 106, 0.36), rgba(243, 201, 106, 0.08));
  pointer-events: none;
}

.journey-progress__step:last-child::after {
  display: none;
}

.journey-progress__step.is-active {
  color: #fff1cb;
}

.journey-progress__step.is-done {
  color: rgba(255, 241, 207, 0.72);
}

.journey-progress__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: transparent;
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.journey-progress__step.is-active .journey-progress__index,
.journey-progress__step.is-done .journey-progress__index {
  border-color: rgba(243, 201, 106, 0.42);
}

.journey-progress__step.is-done .journey-progress__index {
  background: linear-gradient(135deg, rgba(243, 201, 106, 0.88), rgba(255, 229, 162, 0.9));
  box-shadow:
    0 0 0 5px rgba(243, 201, 106, 0.08),
    0 10px 22px rgba(243, 201, 106, 0.14);
}

.journey-progress__step.is-active .journey-progress__index {
  background: linear-gradient(135deg, rgba(255, 238, 196, 0.98), rgba(243, 201, 106, 0.96));
  box-shadow:
    0 0 0 6px rgba(243, 201, 106, 0.1),
    0 12px 26px rgba(243, 201, 106, 0.18);
}

.journey-progress__label {
  display: inline-block;
  transform: translateY(-0.5px);
  white-space: nowrap;
}

.journey-progress__step.is-active .journey-progress__label {
  color: #fff1cb;
}

.chat__promo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 22px 2px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 201, 106, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(5, 10, 18, 0.68);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.chat__promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(243, 201, 106, 0.95), rgba(255, 159, 188, 0.9));
  color: #1b1305;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(243, 201, 106, 0.18);
}

.chat__promo-copy {
  display: grid;
  gap: 3px;
  flex: 1;
}

.chat__promo-title {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.chat__promo-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.chat__promo-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(243, 201, 106, 0.28);
  background: rgba(243, 201, 106, 0.08);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.chat__promo-action:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 201, 106, 0.42);
  background: rgba(243, 201, 106, 0.12);
}

.chat__head h1 {
  font-size: clamp(1.32rem, 3.5vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.chat__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(73, 207, 109, 0.3);
  background: rgba(73, 207, 109, 0.12);
  color: #bff7ca;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(73, 207, 109, 0.08) inset;
}

.chat__specialty-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(243, 201, 106, 0.18);
  background: rgba(243, 201, 106, 0.08);
  color: rgba(247, 244, 236, 0.9);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat__tagline {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #d8e0ec;
  font-size: 0.84rem;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chat__status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #49cf6d;
  box-shadow:
    0 0 0 4px rgba(73, 207, 109, 0.14),
    0 0 18px rgba(73, 207, 109, 0.65);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.chat__title-aura {
  color: rgba(243, 201, 106, 0.92);
  font-size: 0.88rem;
  text-shadow:
    0 0 12px rgba(243, 201, 106, 0.35),
    0 0 20px rgba(243, 201, 106, 0.18);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 201, 106, 0.24);
  background: rgba(243, 201, 106, 0.08);
  color: #f7e2aa;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.recharge-btn,
.restart-btn--recharge {
  border-color: rgba(243, 201, 106, 0.44);
  background: linear-gradient(135deg, rgba(243, 201, 106, 0.16), rgba(255, 255, 255, 0.04));
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  width: 100%;
}

.recharge-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 247, 247, 0.96));
  color: #111111;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.recharge-card:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 201, 106, 0.52);
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.08);
}

.recharge-card:focus-visible {
  outline: 2px solid rgba(243, 201, 106, 0.9);
  outline-offset: 2px;
}

.recharge-card span {
  display: block;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.recharge-card strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.1;
  font-weight: 900;
}

.recharge-card--active {
  border-color: rgba(243, 201, 106, 0.9);
  background: linear-gradient(135deg, rgba(243, 201, 106, 0.22), rgba(255, 255, 255, 0.94));
  box-shadow: 0 0 0 4px rgba(243, 201, 106, 0.12);
}

.recharge-field {
  margin-top: 4px;
}

.recharge-hero {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 247, 0.98)),
    #ffffff;
  box-shadow: 0 18px 32px rgba(17, 17, 17, 0.07);
  text-align: center;
}

.recharge-hero__amount {
  color: #111111;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.recharge-hero__text {
  color: rgba(17, 17, 17, 0.74);
  font-size: 0.96rem;
  line-height: 1.5;
}

.auth-panel {
  display: grid;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.08);
}

.auth-panel--active {
  border-color: rgba(243, 201, 106, 0.2);
  box-shadow: inset 0 1px 0 rgba(243, 201, 106, 0.08);
}

.auth-panel--soft {
  opacity: 0.96;
}

.auth-panel--floating {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 2 * var(--page-pad)));
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top left, rgba(243, 201, 106, 0.15), transparent 26%),
    radial-gradient(circle at top right, rgba(107, 227, 207, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(7, 11, 19, 0.95));
}

.auth-panel--choice.auth-panel--floating {
  width: min(560px, calc(100vw - 2 * var(--page-pad)));
  padding: 24px 26px 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  color: #161616;
  box-shadow: 0 34px 86px rgba(8, 16, 23, 0.28);
}

.auth-panel--choice.auth-panel--floating::before {
  display: none;
}

.auth-panel--choice.auth-panel--floating > * {
  position: relative;
  z-index: 1;
}

.auth-panel--sheet.auth-panel--floating {
  width: min(560px, calc(100vw - 2 * var(--page-pad)));
  padding: 18px 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    radial-gradient(circle at top center, rgba(31, 127, 122, 0.06), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  color: #151515;
  box-shadow: 0 34px 86px rgba(8, 16, 23, 0.24);
}

.auth-panel__sheet {
  display: grid;
  justify-items: center;
  gap: 14px;
  position: relative;
  width: 100%;
}

.auth-panel__sheet-top {
  position: relative;
  width: 100%;
  min-height: 32px;
}

.auth-modal__back {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #7f7f7f;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.auth-modal__back:hover {
  background: #6f6f6f;
}

.auth-panel--sheet .auth-panel__copy--sheet {
  justify-items: center;
  text-align: center;
  gap: 8px;
  max-width: 390px;
}

.auth-panel--sheet .auth-panel__copy--sheet h2 {
  color: #111111;
  font-size: clamp(1.14rem, 3vw, 1.45rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-panel--sheet .auth-panel__copy--sheet p {
  color: rgba(17, 17, 17, 0.76);
  font-size: 0.95rem;
  line-height: 1.48;
}

.auth-form--sheet {
  width: 100%;
  justify-items: stretch;
  gap: 14px;
  margin-top: 2px;
}

.auth-field--sheet {
  width: 100%;
  max-width: 486px;
  justify-self: center;
}

.auth-panel--sheet .auth-field span {
  color: rgba(17, 17, 17, 0.72);
}

.auth-input--sheet {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000;
  caret-color: #000;
  box-shadow: none;
}

.auth-input--sheet::placeholder {
  color: #a7a7a7;
}

.auth-input--sheet:focus {
  border-color: #000;
  background: #fff !important;
  box-shadow: none;
}

.auth-input--sheet:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.auth-input--sheet:-webkit-autofill,
.auth-input--sheet:-webkit-autofill:hover,
.auth-input--sheet:-webkit-autofill:focus {
  -webkit-text-fill-color: #000;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-input--password {
  background: #f5f5f5 !important;
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f;
  caret-color: #1f1f1f;
  border-color: rgba(0, 0, 0, 0.1);
}

.auth-input--password::placeholder {
  color: #9a9a9a;
}

.auth-input--password:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.auth-input--password:focus {
  border-color: #000;
  background: #f5f5f5 !important;
  box-shadow: none;
}

.auth-input--password:-webkit-autofill,
.auth-input--password:-webkit-autofill:hover,
.auth-input--password:-webkit-autofill:focus {
  -webkit-text-fill-color: #1f1f1f;
  -webkit-box-shadow: 0 0 0 1000px #f5f5f5 inset;
  box-shadow: 0 0 0 1000px #f5f5f5 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-field__help {
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 2px 0 0;
}

.auth-consents {
  width: 100%;
  max-width: 486px;
  justify-self: center;
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #5d5d5d;
  font-size: 0.72rem;
  line-height: 1.35;
}

.auth-consent__text {
  flex: 1;
  min-width: 0;
}

.auth-consent__link {
  color: #1f7f7a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-consent__switch {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
}

.auth-consent__switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
}

.auth-consent__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d8d8;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: background 180ms ease;
}

.auth-consent__track::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 180ms ease;
}

.auth-consent__switch input:checked + .auth-consent__track {
  background: linear-gradient(135deg, #d6b34e, #e4c25f);
}

.auth-consent__switch input:checked + .auth-consent__track::before {
  transform: translateX(20px);
}

.auth-submit--sheet {
  min-height: 46px;
  min-width: 190px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d6b34e, #e4c25f);
  color: #171208;
  box-shadow: 0 10px 22px rgba(214, 179, 78, 0.28);
  justify-self: center;
}

.auth-submit--sheet:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d2ac45, #dfbd57);
}

.auth-choice__login-hint--sheet {
  padding-top: 4px;
  gap: 4px;
}

.auth-choice__login-hint--sheet .auth-choice__login-label {
  color: rgba(17, 17, 17, 0.58);
}

.auth-choice__login-hint--sheet .auth-choice__login-link {
  color: #111111;
}

.auth-panel__welcome {
  display: grid;
  justify-items: center;
  gap: 14px;
  position: relative;
  width: 100%;
}

.auth-panel__welcome .auth-choice__divider {
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.auth-panel__welcome .auth-choice__divider::before,
.auth-panel__welcome .auth-choice__divider::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
}

.auth-panel__welcome .auth-choice__login-label {
  color: rgba(17, 17, 17, 0.58);
}

.auth-panel__welcome .auth-choice__login-link {
  color: #111111;
}

.auth-modal__close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #7f7f7f;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.auth-modal__close:hover {
  background: #6f6f6f;
}

.auth-hero {
  display: grid;
  place-items: center;
  padding-top: 8px;
}

.auth-hero__avatar {
  position: relative;
  width: 102px;
  height: 102px;
  overflow: hidden;
  border-radius: 50%;
  border: 3.5px solid #1f7f7a;
  background: linear-gradient(180deg, #ffffff 0%, #edf5f5 100%);
  box-shadow: 0 0 0 5px rgba(31, 127, 122, 0.12);
}

.auth-hero__portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.auth-hero__presence {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #58b83d;
  box-shadow: 0 0 0 2px rgba(88, 184, 61, 0.18);
}

.auth-panel__copy--welcome {
  justify-items: center;
  text-align: center;
  gap: 8px;
  max-width: 380px;
}

.auth-panel__copy--welcome h2 {
  color: #121212;
  font-size: clamp(1.18rem, 3vw, 1.48rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-panel__copy--welcome p {
  color: rgba(18, 18, 18, 0.76);
  font-size: 0.96rem;
  line-height: 1.48;
}

.auth-form--welcome {
  width: 100%;
  justify-items: stretch;
  gap: 14px;
  margin-top: 2px;
}

.auth-field--welcome {
  width: 100%;
  max-width: 486px;
  justify-self: center;
}

.auth-input--welcome {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000;
  caret-color: #000;
  box-shadow: none;
}

.auth-input--welcome::placeholder {
  color: #a7a7a7;
}

.auth-input--welcome:focus {
  border-color: #000;
  background: #fff !important;
  box-shadow: none;
}

.auth-input--welcome:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.auth-input--welcome:-webkit-autofill,
.auth-input--welcome:-webkit-autofill:hover,
.auth-input--welcome:-webkit-autofill:focus {
  -webkit-text-fill-color: #000;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-panel--sheet .auth-input--password {
  border-radius: 999px;
}

.auth-submit--welcome {
  min-height: 46px;
  min-width: 190px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d6b34e, #e4c25f);
  color: #171208;
  box-shadow: 0 10px 22px rgba(214, 179, 78, 0.28);
  justify-self: center;
}

.auth-submit--welcome:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d2ac45, #dfbd57);
}

.auth-choice__divider {
  width: 100%;
  margin-top: 2px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.auth-choice__divider::before,
.auth-choice__divider::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
}

.auth-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-socials__google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 46px;
}

.auth-socials__google--hidden {
  position: absolute;
  inset: auto auto auto -9999px;
}

.auth-socials__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 0;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

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

.auth-socials__button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.auth-socials__button--google {
  background: #fff;
  color: #202124;
  border: 1px solid rgba(32, 33, 36, 0.16);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.auth-socials__button--google:hover {
  background: #f8fafc;
  border-color: rgba(31, 127, 122, 0.28);
}

.auth-socials__button--facebook {
  background: #4267f2;
  color: #fff;
  border: 1px solid rgba(66, 103, 242, 0.18);
  box-shadow: 0 10px 18px rgba(66, 103, 242, 0.28);
}

.auth-socials__button--ghost {
  background: #fff;
  color: #4a4a4a;
  border: 1px solid #d9d9d9;
}

.auth-socials__icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.auth-choice__login-hint--welcome {
  padding-top: 4px;
  gap: 4px;
}

.auth-choice__login-link {
  display: inline-flex;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #161616;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.auth-choice__login-link:hover {
  background: transparent;
  color: #000;
  box-shadow: none;
}

.auth-panel__copy--choice {
  gap: 12px;
  padding-bottom: 2px;
  text-align: center;
  justify-items: center;
}

.auth-panel__eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-benefit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(73, 207, 109, 0.28);
  background: rgba(73, 207, 109, 0.14);
  color: #c7f9d0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-choice {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.auth-choice--reference {
  gap: 14px;
}

.auth-choice--cards {
  gap: 14px;
}

.auth-choice-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.auth-choice-card--login {
  justify-items: center;
  text-align: center;
}

.auth-choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 201, 106, 0.38);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.auth-choice-card--primary {
  background: linear-gradient(135deg, rgba(243, 201, 106, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(243, 201, 106, 0.28);
}

.auth-choice-card--secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.auth-choice-card--google {
  padding-bottom: 18px;
}

.auth-choice-card--google.auth-choice-card--login {
  gap: 10px;
  padding-top: 16px;
}

.auth-choice-card--login-cta {
  min-height: 98px;
  padding: 20px 20px 18px;
  justify-items: center;
  text-align: center;
  border-radius: 26px;
}

.auth-choice-card--login-cta .auth-choice-card__text {
  max-width: 24ch;
}

.auth-choice-card__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.auth-choice-card__text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-choice__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(232, 237, 247, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-choice__divider::before,
.auth-choice__divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.auth-choice__google {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 4px 0 0;
}

.auth-choice__label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-choice__login-hint {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding-top: 2px;
}

.auth-choice__login-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.auth-choice__login-link {
  display: inline-flex;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #161616;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.auth-choice__login-link:hover {
  background: transparent;
  color: #000;
  box-shadow: none;
}

.auth-choice__login-link:disabled {
  opacity: 0.7;
  text-decoration: none;
}

.auth-choice__secondary {
  justify-self: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-choice__secondary:hover {
  color: var(--text);
  background: transparent;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field span {
  color: rgba(232, 237, 247, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.auth-input::placeholder {
  color: rgba(232, 237, 247, 0.38);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(243, 201, 106, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(243, 201, 106, 0.1);
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.auth-actions--stack {
  margin-top: 4px;
}

.auth-submit,
.auth-secondary {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(243, 201, 106, 0.32);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-submit {
  color: #1b1305;
  background: linear-gradient(135deg, rgba(243, 201, 106, 0.96), rgba(255, 159, 188, 0.88));
}

.auth-submit--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.auth-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-secondary:hover,
.auth-submit--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-submit:disabled,
.auth-secondary:disabled,
.auth-input:disabled {
  opacity: 0.7;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(10px);
  cursor: default;
}

.auth-modal--open .auth-panel--floating {
  animation: auth-pop-in 180ms ease-out;
}

.auth-panel__copy {
  display: grid;
  gap: 8px;
}

.auth-panel__eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-panel__copy h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  line-height: 1.15;
}

.auth-panel__copy p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-panel__body {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.auth-panel__close {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 700;
}

.google-slot {
  min-height: 44px;
  width: 100%;
}

.auth-panel__error {
  color: #ffd3d3;
  font-size: 0.92rem;
  line-height: 1.45;
}

.recharge-panel .auth-panel__error {
  color: #b23b3b;
}

.recharge-panel .auth-field__help {
  color: rgba(17, 17, 17, 0.62);
}

.recharge-panel .auth-field__help--warning {
  color: #9f6f17;
}

.auth-panel__note {
  color: rgba(232, 237, 247, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

@keyframes auth-pop-in {
  from {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.chat__hint {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.restart-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.restart-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 201, 106, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.restart-btn:active {
  transform: translateY(0);
}

.restart-btn--recharge {
  color: #fff6df;
}

.thread {
  padding: 22px;
  overflow: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(243, 201, 106, 0.07), transparent 24%),
    radial-gradient(circle at bottom left, rgba(99, 166, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(0, 0, 0, 0.08);
  overscroll-behavior: contain;
}

.thread::-webkit-scrollbar {
  width: 10px;
}

.thread::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.thread__end {
  width: 100%;
  height: 1px;
}

.message {
  display: flex;
}

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

.message--user .message__bubble {
  border-color: rgba(243, 201, 106, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 223, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(243, 201, 106, 0.98) 0%, rgba(247, 179, 141, 0.96) 52%, rgba(233, 143, 177, 0.94) 100%);
  color: #241507;
  box-shadow:
    0 18px 34px rgba(168, 103, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.message__bubble {
  max-width: min(700px, 92%);
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(11, 18, 32, 0.76);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.message--summary {
  justify-content: flex-start;
}

.message--summary .message__bubble {
  max-width: min(760px, 100%);
  border-color: rgba(243, 201, 106, 0.18);
  background:
    radial-gradient(circle at top right, rgba(243, 201, 106, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.conversation-summary {
  display: grid;
  gap: 8px;
}

.conversation-summary__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.conversation-summary__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #49cf6d;
  box-shadow: 0 0 0 4px rgba(73, 207, 109, 0.14);
}

.conversation-summary__text {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.conversation-summary__status {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.conversation-summary__status--error {
  color: #ffb4b4;
}

.message--assistant .message__bubble {
  border-top-left-radius: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  position: relative;
}

.message--assistant .message__bubble::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, rgba(243, 201, 106, 0.75), rgba(243, 201, 106, 0.08));
  opacity: 0.9;
}

.message--assistant.message--continuation {
  margin-top: -6px;
}

.message--assistant.message--continuation .message__bubble {
  border-top-left-radius: 18px;
}

.message--tarot .message__bubble {
  max-width: min(780px, 100%);
  padding: 18px;
  border-color: rgba(243, 201, 106, 0.24);
  background:
    radial-gradient(circle at top right, rgba(243, 201, 106, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(108, 151, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.message--tarot-picker,
.message--tarot-result {
  justify-content: center;
}

.message--tarot-picker .message__bubble,
.message--tarot-result .message__bubble {
  display: none;
}

.tarot-picker,
.tarot-result {
  width: min(760px, 100%);
  display: grid;
  gap: 22px;
  justify-items: center;
}

.tarot-picker__deck {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 170px;
  padding: 12px 8px 4px;
}

.tarot-choice {
  position: relative;
  width: 78px;
  height: 168px;
  margin-left: -12px;
  border: 0;
  background: transparent;
  padding: 0;
  transition: transform 180ms ease, filter 180ms ease;
}

.tarot-choice:first-child {
  margin-left: 0;
}

.tarot-choice:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.tarot-choice:focus-visible {
  outline: none;
}

.tarot-choice__inner,
.tarot-picker__slot-back {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 3px solid #fff3d0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    #d7a823;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 6px 14px rgba(0, 0, 0, 0.16);
}

.tarot-choice__pattern,
.tarot-picker__slot-back .tarot-choice__pattern {
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 250, 236, 0.92);
  background:
    radial-gradient(circle at center, rgba(255, 247, 224, 0.85) 0 2px, transparent 2.2px) 0 0 / 18px 18px,
    radial-gradient(circle at center, rgba(255, 247, 224, 0.7) 0 1.3px, transparent 1.5px) 9px 9px / 18px 18px,
    linear-gradient(90deg, transparent 0 47%, rgba(255, 248, 229, 0.95) 47% 53%, transparent 53%),
    linear-gradient(transparent 0 47%, rgba(255, 248, 229, 0.95) 47% 53%, transparent 53%),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 248, 229, 0.7) 48% 52%, transparent 52%),
    linear-gradient(45deg, transparent 0 48%, rgba(255, 248, 229, 0.7) 48% 52%, transparent 52%);
  opacity: 0.98;
}

.tarot-choice__pattern::before,
.tarot-choice__pattern::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 248, 229, 0.85);
  border-radius: 3px;
}

.tarot-choice__pattern::after {
  inset: 18px;
  border-color: rgba(255, 248, 229, 0.65);
}

.tarot-picker__chosen,
.tarot-result__cards {
  display: flex;
  justify-content: center;
  gap: 38px;
  width: 100%;
}

.tarot-picker__slot,
.tarot-result__slot {
  width: 140px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarot-picker__slot-back {
  width: 100px;
  height: 168px;
}

.tarot-face {
  width: 100px;
  height: 178px;
  padding: 2px;
  border-radius: 6px;
  background: #e8e8e8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.tarot-face__frame {
  display: grid;
  grid-template-rows: 18px 1fr 24px;
  width: 100%;
  height: 100%;
  border: 1px solid #2b2b2b;
  background: #fbf8f1;
}

.tarot-face__numeral {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tarot-face__art {
  display: grid;
  place-items: center;
  margin: 0 6px;
  border: 1px solid #8a8a8a;
  background:
    linear-gradient(180deg, #fffdf8, #f2e7cb);
  overflow: hidden;
}

.tarot-face__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid #1e1e1e;
  background: linear-gradient(135deg, #f1c84b, #f7df88);
  color: #1d1d1d;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tarot-face__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tarot-face__title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #111;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.message--phone-capture {
  justify-content: center;
}

.phone-capture {
  width: min(760px, 100%);
}

.phone-capture__card {
  display: grid;
  gap: 16px;
  padding: 20px 18px 22px;
  border: 6px solid #f0bf2b;
  border-radius: 18px;
  background:
    radial-gradient(circle at top center, rgba(255, 229, 149, 0.34), transparent 42%),
    radial-gradient(circle at top right, rgba(255, 210, 103, 0.16), transparent 30%),
    linear-gradient(180deg, #fffefb, #fff7e6);
  box-shadow:
    0 24px 54px rgba(180, 128, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.phone-capture__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(212, 192, 145, 0.65);
  border-radius: 999px;
  background: #ffffff;
}

.phone-capture__country {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
  max-width: 220px;
  gap: 8px;
  padding-right: 10px;
  border-right: 1px solid rgba(212, 192, 145, 0.55);
}

.phone-capture__country-flag {
  flex: 0 0 auto;
  line-height: 1;
}

.flag-icon {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  overflow: hidden;
}

.flag-icon--fr {
  background: linear-gradient(90deg, #1f4fbf 0 33.33%, #ffffff 33.33% 66.66%, #d8222a 66.66% 100%);
}

.flag-icon--be {
  background: linear-gradient(90deg, #111111 0 33.33%, #ffd43b 33.33% 66.66%, #d92d2a 66.66% 100%);
}

.flag-icon--ca {
  background: linear-gradient(90deg, #d92d2a 0 25%, #ffffff 25% 75%, #d92d2a 75% 100%);
  position: relative;
}

.flag-icon--ca::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d92d2a;
  font-size: 8px;
  line-height: 1;
}

.flag-icon--lu {
  background: linear-gradient(180deg, #d92d2a 0 33.33%, #ffffff 33.33% 66.66%, #7ec9f5 66.66% 100%);
}

.flag-icon--ch {
  background: #d92d2a;
  position: relative;
}

.flag-icon--ch::before,
.flag-icon--ch::after {
  content: "";
  position: absolute;
  background: #ffffff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.flag-icon--ch::before {
  width: 8px;
  height: 3px;
}

.flag-icon--ch::after {
  width: 3px;
  height: 8px;
}

.flag-icon--other {
  background:
    radial-gradient(circle at 50% 50%, #65b8ff 0 35%, transparent 35%),
    linear-gradient(180deg, #2b5d8f 0 50%, #3f7f3f 50% 100%);
}

.phone-capture__country-select {
  width: 100%;
  min-height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  color: #6a5122;
  font-size: 0.9rem;
  font-weight: 700;
  appearance: none;
  padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, #b58a2b 50%), linear-gradient(135deg, #b58a2b 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 8px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.phone-capture__input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #2b2418;
  font-size: 1rem;
}

.phone-capture__input::placeholder {
  color: rgba(80, 70, 55, 0.54);
}

.phone-capture__cta {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffcb2f 0%, #d9aa33 52%, #b78928 100%);
  color: #fffef8;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 14px 28px rgba(160, 118, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.phone-capture__slot {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 18px 16px;
  border: 1px dashed rgba(234, 192, 94, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  color: #5f4d2d;
  font-size: 0.92rem;
  line-height: 1.45;
}

.phone-capture__slot-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(240, 191, 43, 0.9);
  border-radius: 14px;
  background: #fffdf7;
  color: #9c7521;
  font-weight: 700;
}

.trust-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(187, 159, 91, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: #8a6c2a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.phone-capture__trusts,
.schedule-form__trusts {
  margin-top: -2px;
}

.phone-capture__legal,
.phone-capture__meta {
  margin: 0;
  color: #8c7854;
  font-size: 0.78rem;
  line-height: 1.45;
}

.phone-capture__meta {
  color: #ab8b44;
}

.phone-capture__error {
  margin: 0;
  color: #c23f2f;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 120;
}

.schedule-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 10, 18, 0.55);
}

.schedule-panel {
  position: relative;
  width: min(540px, calc(100vw - 28px));
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top center, rgba(255, 229, 149, 0.28), transparent 38%),
    linear-gradient(180deg, #fffefb, #fff8ea);
  box-shadow:
    0 30px 76px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  color: #2f2618;
}

.schedule-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.schedule-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.schedule-panel__intro {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  color: #7a6540;
  font-size: 0.94rem;
  line-height: 1.45;
}

.schedule-panel__intro p {
  margin: 0;
}

.schedule-panel__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #7f7157;
  font-size: 1.4rem;
  line-height: 1;
}

.schedule-form {
  display: grid;
  gap: 16px;
}

.schedule-form__group {
  display: grid;
  gap: 8px;
}

.schedule-form__label {
  color: #624d27;
  font-size: 0.86rem;
  font-weight: 700;
}

.schedule-form__phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(187, 159, 91, 0.35);
  border-radius: 14px;
  background: #fffdf8;
}

.schedule-form__country-select {
  flex: 0 0 180px;
  width: 180px;
  min-height: 40px;
  border: 0;
  outline: none;
  background: transparent;
  color: #6a5122;
  font-size: 0.92rem;
  font-weight: 700;
  appearance: none;
  padding-right: 22px;
  border-right: 1px solid rgba(187, 159, 91, 0.32);
  background-image: linear-gradient(45deg, transparent 50%, #b58a2b 50%), linear-gradient(135deg, #b58a2b 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 8px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.schedule-form__country-flag {
  flex: 0 0 auto;
  line-height: 1;
}

.schedule-form__input {
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(187, 159, 91, 0.35);
  border-radius: 14px;
  background: #fffdf8;
  color: #2f2618;
}

.schedule-form__input:disabled,
.schedule-form__date-input:disabled,
.schedule-form__select:disabled {
  opacity: 1;
  background: #fffdf8;
  color: #2f2618;
  -webkit-text-fill-color: #2f2618;
  border-color: rgba(187, 159, 91, 0.35);
}

.schedule-form__input::placeholder {
  color: rgba(93, 75, 40, 0.45);
}

.schedule-form__date-field {
  position: relative;
  display: block;
}

.schedule-form__date-input {
  position: relative;
  z-index: 1;
  padding-right: 52px;
  background: #fffdf8;
  color: #2f2618;
}

.schedule-form__date-input::placeholder {
  color: rgba(93, 75, 40, 0.52);
}

.schedule-form__date-button {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(240, 191, 43, 0.12);
  color: #9c7521;
  font-size: 1rem;
  line-height: 1;
}

.schedule-form__date-button:disabled {
  opacity: 1;
  background: rgba(240, 191, 43, 0.16);
  color: #9c7521;
}

.schedule-form__native-date {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.schedule-form__phone-field .schedule-form__input {
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.schedule-form__phone-field .schedule-form__input[type="tel"] {
  min-width: 0;
}

.schedule-form__time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.schedule-form__select {
  appearance: none;
  background: #fffdf8;
  color: #2f2618;
}

.schedule-form__consents {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(187, 159, 91, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.schedule-form__trusts {
  margin-top: 2px;
}

.schedule-form__consent {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #6f5c38;
  font-size: 0.78rem;
  line-height: 1.5;
}

.schedule-form__error {
  margin: 0;
  color: #c23f2f;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-form__cta {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f0dc93, #e2c15d);
  color: #fffef9;
  font-size: 1rem;
  font-weight: 800;
  box-shadow:
    0 14px 28px rgba(204, 169, 69, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.message--user .message__bubble {
  border-top-right-radius: 10px;
  color: #1b1305;
  background: linear-gradient(135deg, rgba(243, 201, 106, 0.96), rgba(255, 159, 188, 0.9));
  border-color: rgba(255, 255, 255, 0.16);
}

.message__bubble p {
  white-space: pre-wrap;
  line-height: 1.58;
}

.message__meta {
  margin-top: 8px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.58);
}

.message--user .message__meta {
  color: rgba(27, 19, 5, 0.6);
}

.message--typing .message__bubble {
  padding: 16px 18px;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: typing 1s infinite ease-in-out;
}

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

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

.composer {
  display: grid;
  gap: 12px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at top center, rgba(243, 201, 106, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.1));
}

.composer--birthdate {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  padding-bottom: 20px;
  background:
    radial-gradient(circle at 14% 18%, rgba(243, 201, 106, 0.14) 0 3px, transparent 4px),
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.32) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08));
}

.birthdate-card {
  width: min(100%, 286px);
  display: grid;
  gap: 3px;
  padding: 13px 17px 11px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(243, 201, 106, 0.96), rgba(255, 159, 188, 0.9));
  color: #1b1305;
  box-shadow: var(--shadow-soft);
}

.birthdate-card__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
}

.birthdate-card__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.birthdate-card__segment {
  width: 36px;
  min-width: 36px;
  border: 0;
  outline: none;
  padding: 0;
  background: transparent;
  color: #1b1305;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  caret-color: #1b1305;
}

.birthdate-card__segment--year {
  width: 58px;
  min-width: 58px;
}

.birthdate-card__segment::placeholder {
  color: rgba(27, 19, 5, 0.5);
}

.birthdate-card__segment:disabled {
  opacity: 0.72;
}

.birthdate-card__slash {
  color: rgba(27, 19, 5, 0.58);
  font-size: 0.9rem;
  font-weight: 700;
}

.birthdate-card__ok {
  border: 0;
  margin-left: auto;
  padding: 0 0 0 10px;
  background: transparent;
  color: #1b1305;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.birthdate-card__ok:hover {
  transform: none;
  background: transparent;
}

.birthdate-card__error {
  min-height: 13px;
  color: #d94832;
  font-size: 0.68rem;
  line-height: 1.1;
  opacity: 0;
}

.birthdate-card__error--visible {
  opacity: 1;
}

.composer__box {
  display: grid;
  gap: 12px;
}

.composer__input {
  width: 100%;
  min-height: 110px;
  max-height: 260px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(12, 18, 31, 0.92), rgba(7, 11, 19, 0.92)),
    rgba(6, 10, 18, 0.82);
  color: var(--text);
  outline: none;
  padding: 15px 16px;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.composer__input::placeholder {
  color: rgba(232, 237, 247, 0.56);
}

.composer__input:focus {
  border-color: rgba(243, 201, 106, 0.55);
  box-shadow: 0 0 0 4px rgba(243, 201, 106, 0.12);
}

.composer__input[readonly] {
  cursor: pointer;
  caret-color: transparent;
}

.composer__input[readonly]::placeholder {
  color: rgba(232, 237, 247, 0.58);
}

.composer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.composer__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.send-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #241605;
  background: linear-gradient(135deg, #f1c666 0%, #ffd890 56%, #ffe9ba 100%);
  box-shadow:
    0 14px 30px rgba(243, 201, 106, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(243, 201, 106, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.send-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(243, 201, 106, 0.14);
}

.send-btn--gate {
  cursor: pointer;
  border: 1px solid rgba(243, 201, 106, 0.22);
  background: linear-gradient(135deg, #f3c96a, #ffe29c);
}

.send-btn--gate:hover {
  border-color: rgba(243, 201, 106, 0.42);
}

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

@keyframes typing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(0.82);
    opacity: 1;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 0px;
  }

  .page {
    padding: 0;
  }

  .chat {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .chat__head,
  .thread,
  .composer,
  .composer--birthdate {
    padding-left: 14px;
    padding-right: 14px;
  }

  .chat__head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 10px;
    text-align: center;
  }

  .chat__identity-wrap {
    width: 100%;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .chat__header-avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-width: 2px;
    box-shadow:
      0 0 0 4px rgba(243, 201, 106, 0.1),
      0 10px 22px rgba(0, 0, 0, 0.18);
  }

  .chat__identity {
    gap: 4px;
    padding-bottom: 6px;
  }

  .chat__identity::after {
    width: 56px;
    height: 6px;
    background:
      radial-gradient(circle, rgba(243, 201, 106, 0.92) 0 1.6px, transparent 2px) center/8px 8px no-repeat,
      linear-gradient(90deg, rgba(243, 201, 106, 0), rgba(243, 201, 106, 0.64) 24%, rgba(255, 231, 175, 0.9) 50%, rgba(243, 201, 106, 0.64) 76%, rgba(243, 201, 106, 0));
  }

  .chat__brandline {
    gap: 6px;
  }

  .chat__status-pill,
  .chat__specialty-pill {
    font-size: 0.64rem;
    padding: 5px 9px;
    letter-spacing: 0.08em;
  }

  .chat__title-row {
    gap: 6px;
  }

  .chat__head h1 {
    font-size: clamp(2rem, 8.2vw, 2.5rem);
    line-height: 0.95;
  }

  .chat__title-aura {
    font-size: 0.9rem;
  }

  .chat__tagline {
    max-width: 290px;
    font-size: 0.84rem;
    line-height: 1.35;
    padding: 7px 12px;
  }

  .chat__social-proof {
    max-width: 290px;
    font-size: 0.69rem;
    line-height: 1.35;
  }

  .chat__actions {
    justify-content: center;
    max-width: 100%;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-panel--floating,
  .auth-panel--choice.auth-panel--floating,
  .auth-panel--sheet.auth-panel--floating {
    width: min(100%, calc(100vw - 24px));
  }

  .auth-panel__sheet,
  .auth-panel__welcome {
    padding: 16px 14px 18px;
    border-radius: 18px;
  }

  .chat__hint {
    text-align: left;
  }

  .thread {
    padding-top: 16px;
    padding-bottom: 18px;
    gap: 10px;
  }

  .message__bubble {
    max-width: min(100%, 94%);
    padding: 13px 14px;
    border-radius: 20px;
    font-size: 0.98rem;
    line-height: 1.56;
  }

  .tarot-spread__grid {
    grid-template-columns: 1fr;
  }

  .tarot-card {
    min-height: 0;
  }

  .tarot-picker,
  .tarot-result {
    width: 100%;
  }

  .tarot-picker__deck {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .tarot-choice {
    flex: 0 0 68px;
    width: 68px;
    height: 148px;
    margin-left: -18px;
  }

  .tarot-picker__chosen,
  .tarot-result__cards {
    gap: 14px;
  }

  .tarot-picker__slot,
  .tarot-result__slot {
    width: auto;
    min-height: 0;
  }

  .tarot-picker__slot-back,
  .tarot-face {
    width: 88px;
    height: 158px;
  }

  .composer {
    padding-top: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .composer__input {
    min-height: 112px;
    padding: 16px 14px;
    font-size: 1rem;
  }

  .composer__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .composer__hint {
    font-size: 0.76rem;
    text-align: center;
  }

  .birthdate-card {
    width: 100%;
    padding: 16px 14px;
  }

  .birthdate-card__row {
    gap: 4px;
    justify-content: space-between;
  }

  .birthdate-card__segment {
    width: calc((100% - 74px) / 4);
    min-width: 0;
  }

  .birthdate-card__segment--year {
    width: calc((100% - 74px) / 4 + 22px);
    min-width: 0;
  }

  .send-btn {
    width: 100%;
  }

  .phone-capture__field,
  .schedule-form__phone-field {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 18px;
  }

  .phone-capture__country,
  .schedule-form__country-select {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .phone-capture__country {
    padding-right: 0;
    padding-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(212, 192, 145, 0.55);
  }

  .schedule-form__country-select {
    flex-basis: auto;
    width: 100%;
    min-height: 36px;
    padding-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(187, 159, 91, 0.32);
  }

  .schedule-form__country-flag {
    margin-bottom: -2px;
  }

  .phone-capture__input,
  .schedule-form__phone-field .schedule-form__input {
    min-height: 34px;
  }

  .phone-capture__card,
  .schedule-panel {
    border-radius: 20px;
  }

  .schedule-modal {
    padding: 12px;
    align-items: end;
  }

  .schedule-panel {
    width: min(100%, calc(100vw - 24px));
    max-height: min(90dvh, 860px);
    padding: 16px 14px 18px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .schedule-panel__top {
    gap: 12px;
    margin-bottom: 12px;
  }

  .schedule-panel__title {
    font-size: 0.96rem;
  }

  .schedule-panel__intro {
    margin-bottom: 14px;
    font-size: 0.9rem;
  }

  .schedule-form {
    gap: 14px;
  }

  .schedule-form__time-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .schedule-form__consents {
    padding: 12px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .chat__head,
  .thread,
  .composer,
  .composer--birthdate {
    padding-left: 12px;
    padding-right: 12px;
  }

  .chat__identity-wrap {
    gap: 8px;
  }

  .chat__header-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .chat__head h1 {
    font-size: clamp(1.8rem, 9vw, 2.15rem);
  }

  .chat__tagline {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .message__bubble {
    max-width: 96%;
    padding: 12px 13px;
    font-size: 0.95rem;
  }

  .birthdate-card__title {
    font-size: 0.88rem;
  }

  .birthdate-card__segment {
    font-size: 0.96rem;
  }

  .birthdate-card__segment--year {
    width: calc((100% - 68px) / 4 + 18px);
  }

  .birthdate-card__ok {
    min-width: 48px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.seo-content {
  padding: 0 24px 48px;
}

.seo-content__inner {
  width: min(920px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 28px 30px;
  border-radius: 28px;
  border: 1px solid rgba(243, 201, 106, 0.14);
  background:
    radial-gradient(circle at top right, rgba(243, 201, 106, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(15, 21, 36, 0.92), rgba(7, 11, 19, 0.94));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.seo-content__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seo-content__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(243, 201, 106, 0.12);
}

.seo-content h2,
.seo-content h3 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: #fff6e3;
}

.seo-content h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.seo-content > * + *,
.seo-content__inner > * + * {
  margin-top: 16px;
}

.seo-content p {
  color: #d8e0ec;
  font-size: 0.98rem;
  line-height: 1.72;
}

.seo-content strong {
  color: #fff3d7;
}

.seo-content__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.seo-content__card {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(243, 201, 106, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.01);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.seo-content__card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.seo-content__card p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: #cfd7e3;
}

.seo-faq {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 201, 106, 0.12);
}

.seo-faq h3 {
  font-size: 1.16rem;
  margin-bottom: 14px;
}

.seo-faq details {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.seo-faq details + details {
  margin-top: 10px;
}

.seo-faq summary {
  cursor: pointer;
  color: #fff2d0;
  font-weight: 700;
  line-height: 1.45;
}

.seo-faq details p {
  margin-top: 10px;
  color: #d4dcea;
  font-size: 0.94rem;
  line-height: 1.66;
}

@media (max-width: 900px) {
  .seo-content__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .seo-content {
    padding: 0 16px 36px;
  }

  .seo-content__inner {
    width: min(100%, calc(100vw - 32px));
    padding: 22px 18px 24px;
    border-radius: 24px;
  }

  .seo-content p {
    font-size: 0.95rem;
    line-height: 1.68;
  }
}
