:root {
  --tc-ink: #2d2140;
  --tc-muted: #6a6074;
  --tc-bg: #fbf7ff;
  --tc-surface: #ffffff;
  --tc-purple: #8463a3;
  --tc-purple-dark: #6a4f82;
  --tc-lime: #90c63f;
  --tc-green: var(--tc-purple);
  --tc-green-dark: var(--tc-purple-dark);
  --tc-mint: #f1e8f7;
  --tc-gold: #f2a23a;
  --tc-rose: #ed6f91;
  --tc-border: #eadff1;
  --tc-danger: #bc2e39;
  --tc-shadow: 0 18px 44px rgba(106, 79, 130, 0.16);
}

html,
body.tc-app-first {
  min-height: 100%;
}

body.tc-app-first {
  margin: 0;
  overflow-x: hidden;
  color: var(--tc-ink);
  background:
    linear-gradient(145deg, rgba(223, 246, 232, 0.82), rgba(255, 250, 242, 0.94) 45%, rgba(255, 239, 218, 0.78));
}

.tc-app-main {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0 !important;
}

.tc-onboarding {
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: "Tajawal", "Inter", "Segoe UI", Arial, sans-serif;
}

.tc-onboarding,
.tc-onboarding *,
.tc-onboarding *::before,
.tc-onboarding *::after {
  box-sizing: border-box;
}

.tc-mobile-stage {
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  position: relative;
  display: grid;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.98)),
    repeating-linear-gradient(90deg, rgba(15, 107, 79, 0.04) 0 1px, transparent 1px 26px);
}

.tc-screen {
  grid-area: 1 / 1;
  height: 100%;
  max-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.tc-screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.tc-splash {
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.tc-splash-logo {
  width: 168px;
  max-width: 62%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(15, 107, 79, 0.15));
}

.tc-loading-bar {
  width: 122px;
  height: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(15, 107, 79, 0.12);
}

.tc-loading-bar span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: var(--tc-green);
  animation: tc-loading 900ms ease-in-out infinite alternate;
}

.tc-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 66px;
}

.tc-logo-row img {
  width: 114px;
  height: auto;
}

.tc-screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.tc-kicker {
  margin: 0 0 10px;
  color: var(--tc-green);
  font-size: 0.88rem;
  font-weight: 800;
}

.tc-screen h1 {
  margin: 0;
  max-width: 11ch;
  color: var(--tc-ink);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 900;
}

.tc-onboarding[dir="ltr"] .tc-screen h1 {
  max-width: 13ch;
}

.tc-lead {
  margin: 16px 0 0;
  max-width: 28rem;
  color: var(--tc-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 600;
}

.tc-progress {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.tc-progress span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(15, 107, 79, 0.16);
}

.tc-progress span.is-active {
  width: 26px;
  background: var(--tc-green);
}

.tc-feature-visual {
  width: 100%;
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-bottom: 34px;
}

.tc-feature-visual i {
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 107, 79, 0.12);
  border-radius: 8px;
  color: var(--tc-green-dark);
  background: var(--tc-surface);
  box-shadow: 0 12px 28px rgba(23, 50, 41, 0.1);
  font-size: 2rem;
}

.tc-feature-visual i:nth-child(2) {
  height: 154px;
  color: #8b560f;
  background: #fff4df;
}

.tc-feature-visual i:nth-child(3) {
  height: 132px;
  color: #89384f;
  background: #ffe8ef;
}

.tc-visual-plan i:first-child {
  background: #f1f8ff;
  color: #246076;
}

.tc-visual-pay i:first-child {
  color: var(--tc-green-dark);
  background: var(--tc-mint);
}

.tc-actions {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.tc-btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tc-btn:active {
  transform: translateY(1px);
}

.tc-btn-primary {
  color: #fff;
  background: var(--tc-green);
  box-shadow: 0 10px 24px rgba(15, 107, 79, 0.24);
}

.tc-btn-primary:hover,
.tc-btn-primary:focus-visible {
  color: #fff;
  background: var(--tc-green-dark);
}

.tc-btn-ghost {
  color: var(--tc-green-dark);
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--tc-border);
}

.tc-language-body {
  justify-content: center;
}

.tc-language-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.tc-language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  color: var(--tc-ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(23, 50, 41, 0.08);
  text-align: start;
}

.tc-language-option.is-selected,
.tc-language-option:focus-visible {
  border-color: var(--tc-green);
  outline: 3px solid rgba(15, 107, 79, 0.14);
}

.tc-language-main {
  font-size: 1.1rem;
  font-weight: 900;
}

.tc-language-sub {
  color: var(--tc-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.tc-auth-form {
  justify-content: center;
}

.tc-field-label {
  margin: 30px 0 8px;
  color: var(--tc-ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.tc-phone-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  direction: ltr;
}

.tc-phone-row select,
.tc-phone-row input,
.tc-otp-boxes input {
  min-height: 56px;
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  color: var(--tc-ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(23, 50, 41, 0.06);
}

.tc-phone-row select {
  padding: 0 10px;
}

.tc-phone-row input {
  padding: 0 14px;
}

.tc-phone-row select:focus,
.tc-phone-row input:focus,
.tc-otp-boxes input:focus {
  border-color: var(--tc-green);
  outline: 3px solid rgba(15, 107, 79, 0.14);
}

.tc-otp-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.tc-otp-boxes input {
  width: 100%;
  aspect-ratio: 1;
  min-height: 66px;
  padding: 0;
  text-align: center;
  font-size: 1.65rem;
}

.tc-error {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--tc-danger);
  font-weight: 800;
}

.tc-talk-quota-error {
  margin-top: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.18);
}

.tc-soft-hint.tc-talk-quota-error,
.tc-soft-hint[data-error="photo"] {
  color: #3d2a66;
  background: rgba(122, 82, 196, 0.08);
  border: 1px solid rgba(122, 82, 196, 0.18);
  font-weight: 700;
}

.tc-success {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tc-success h1 {
  max-width: none;
}

.tc-success-mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--tc-green);
  box-shadow: var(--tc-shadow);
  font-size: 2rem;
}

.tc-onboarding.is-loading .tc-btn-primary {
  opacity: 0.72;
  pointer-events: none;
}

@media (min-width: 520px) {
  .tc-onboarding {
    padding: 18px;
  }

  .tc-mobile-stage {
    min-height: min(840px, calc(100dvh - 36px));
    border: 1px solid rgba(15, 107, 79, 0.12);
    box-shadow: var(--tc-shadow);
  }

  .tc-screen {
    min-height: min(840px, calc(100dvh - 36px));
    padding-right: 30px;
    padding-left: 30px;
  }

  .tc-screen h1 {
    font-size: 2.18rem;
  }
}

@media (max-height: 700px) {
  .tc-feature-visual {
    min-height: 150px;
    margin-bottom: 24px;
  }

  .tc-feature-visual i {
    height: 86px;
  }

  .tc-feature-visual i:nth-child(2) {
    height: 120px;
  }

  .tc-feature-visual i:nth-child(3) {
    height: 104px;
  }

  .tc-screen h1 {
    font-size: 1.7rem;
  }

  .tc-lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-screen,
  .tc-btn,
  .tc-loading-bar span {
    animation: none;
    transition: none;
  }
}

@keyframes tc-loading {
  from {
    transform: translateX(70px);
  }
  to {
    transform: translateX(-70px);
  }
}

/* Delight pass: richer mobile app surface, softer state transitions, celebratory success. */
:root {
  --tc-lime: #90c63f;
  --tc-amber-soft: #fff3d8;
  --tc-rose-soft: #ffe9ef;
  --tc-blue-soft: #e9f7ff;
  --tc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.tc-app-first {
  background:
    linear-gradient(120deg, rgba(224, 247, 234, 0.9), rgba(255, 255, 255, 0.95) 36%, rgba(255, 246, 231, 0.9)),
    linear-gradient(180deg, #f5fbf7, #fffaf2);
}

.tc-mobile-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 50%, rgba(255, 250, 242, 0.98) 100%),
    repeating-linear-gradient(135deg, rgba(15, 107, 79, 0.035) 0 1px, transparent 1px 22px);
}

.tc-mobile-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(155, 212, 42, 0.1), transparent 28%),
    linear-gradient(0deg, rgba(242, 162, 58, 0.1), transparent 30%);
}

.tc-screen {
  isolation: isolate;
  padding: max(20px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom));
  transition: opacity 280ms var(--tc-ease), transform 280ms var(--tc-ease), visibility 280ms var(--tc-ease);
}

.tc-screen.is-active {
  animation: tc-screen-in 420ms var(--tc-ease) both;
}

.tc-logo-row {
  min-height: 92px;
  padding-top: 8px;
}

.tc-logo-row img {
  width: 128px;
  filter: drop-shadow(0 14px 22px rgba(23, 50, 41, 0.08));
}

.tc-flash-stack {
  position: fixed;
  z-index: 80;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 50%;
  width: min(92vw, 410px);
  margin: 0 !important;
  padding: 0 10px;
  transform: translateX(-50%);
}

.tc-app-first .tc-flash-stack .alert {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(15, 107, 79, 0.14);
  border-radius: 8px;
  color: var(--tc-green-dark);
  background: rgba(239, 255, 247, 0.92);
  box-shadow: 0 18px 36px rgba(23, 50, 41, 0.12);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.tc-app-first .tc-flash-stack .btn-close {
  margin: 0;
}

.tc-kicker {
  color: var(--tc-green);
  letter-spacing: 0;
}

.tc-screen h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 9.8vw, 3.25rem);
  letter-spacing: 0;
}

.tc-lead {
  color: #62756d;
  font-size: clamp(0.98rem, 4.1vw, 1.12rem);
}

.tc-language-body,
.tc-auth-form {
  justify-content: flex-start;
}

.tc-language-body {
  padding-top: 4px;
}

.tc-language-hero {
  min-height: 146px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "main main"
    "left right";
  gap: 10px;
  margin: 4px 0 26px;
}

.tc-mini-widget {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 107, 79, 0.1);
  border-radius: 8px;
  color: var(--tc-green-dark);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(23, 50, 41, 0.08);
  font-size: 0.84rem;
  font-weight: 900;
}

.tc-mini-widget i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--tc-green);
}

.tc-mini-widget-main {
  grid-area: main;
  min-height: 76px;
  background:
    linear-gradient(135deg, rgba(15, 107, 79, 0.96), rgba(11, 68, 52, 0.96)),
    #0f6b4f;
  color: #fff;
}

.tc-mini-widget-main i {
  color: var(--tc-green-dark);
  background: #fff;
}

.tc-language-grid {
  gap: 10px;
  margin-top: 24px;
}

.tc-language-option {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  padding: 14px;
  border-color: rgba(23, 50, 41, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(23, 50, 41, 0.08);
}

.tc-onboarding[dir="rtl"] .tc-language-option {
  grid-template-columns: 30px minmax(0, 1fr) 42px;
}

.tc-language-icon,
.tc-language-check {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.tc-language-icon {
  color: var(--tc-green);
  background: var(--tc-mint);
}

.tc-language-check {
  color: #fff;
  background: var(--tc-green);
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tc-language-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tc-language-option.is-selected {
  border-color: var(--tc-green);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 255, 248, 0.96));
  box-shadow: 0 14px 34px rgba(15, 107, 79, 0.14);
}

.tc-language-option.is-selected .tc-language-check {
  opacity: 1;
  transform: scale(1);
}

.tc-feature-visual {
  min-height: 222px;
  align-items: stretch;
  margin-bottom: 28px;
}

.tc-visual-care {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.tc-visual-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(23, 50, 41, 0.1);
  border-radius: 8px;
  color: var(--tc-green-dark);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(23, 50, 41, 0.08);
  font-weight: 900;
}

.tc-card-main {
  grid-row: span 2;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(15, 107, 79, 0.98), rgba(10, 61, 47, 0.98)),
    var(--tc-green);
}

.tc-feature-visual .tc-visual-card i,
.tc-package-box i,
.tc-plan-pills i,
.tc-delivery-path i,
.tc-secure-row i,
.tc-auth-badge i,
.tc-auth-assurance i,
.tc-otp-shield i {
  width: auto;
  height: auto;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: currentColor;
  background: transparent;
  box-shadow: none;
  font-size: 1.45rem;
}

.tc-card-main i {
  font-size: 2.3rem !important;
}

.tc-visual-plan,
.tc-visual-pay {
  grid-template-columns: 1fr;
  align-content: center;
}

.tc-package-widget {
  min-height: 146px;
  display: grid;
  place-items: end center;
  position: relative;
}

.tc-package-lid {
  width: 56%;
  height: 28px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(135deg, #f6b558, var(--tc-gold));
  box-shadow: 0 14px 24px rgba(242, 162, 58, 0.22);
  transform: translateY(10px) rotate(-4deg);
}

.tc-package-box {
  width: 78%;
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid rgba(242, 162, 58, 0.18);
  border-radius: 8px;
  color: #8b560f;
  background: linear-gradient(180deg, #fff6e6, #ffe9bd);
  box-shadow: 0 16px 34px rgba(139, 86, 15, 0.14);
  font-weight: 900;
}

.tc-plan-pills,
.tc-secure-row,
.tc-auth-assurance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tc-plan-pills span,
.tc-secure-row span,
.tc-auth-assurance span {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(15, 107, 79, 0.1);
  border-radius: 8px;
  color: var(--tc-green-dark);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(23, 50, 41, 0.06);
}

.tc-delivery-path {
  min-height: 116px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  position: relative;
}

.tc-delivery-path::before {
  content: "";
  position: absolute;
  inset-inline: 48px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tc-green), var(--tc-gold));
}

.tc-delivery-path span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  justify-self: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(15, 107, 79, 0.1);
  border-radius: 8px;
  color: var(--tc-green-dark);
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 50, 41, 0.1);
}

.tc-btn {
  min-height: 58px;
  border-radius: 8px;
  font-size: 1.02rem;
}

.tc-btn-primary {
  background: linear-gradient(135deg, var(--tc-green), var(--tc-green-dark));
  box-shadow: 0 18px 36px rgba(15, 107, 79, 0.24);
}

.tc-btn-primary:hover,
.tc-btn-primary:focus-visible {
  background: linear-gradient(135deg, #128866, var(--tc-green-dark));
}

.tc-auth-form {
  padding-top: clamp(22px, 7dvh, 68px);
}

.tc-auth-badge,
.tc-otp-shield {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 107, 79, 0.1);
  border-radius: 8px;
  color: var(--tc-green-dark);
  background: rgba(223, 246, 232, 0.72);
  font-size: 0.86rem;
  font-weight: 900;
}

.tc-auth-assurance {
  margin-top: 22px;
}

.tc-phone-row select,
.tc-phone-row input,
.tc-otp-boxes input {
  min-height: 60px;
  border-radius: 8px;
  border-color: rgba(23, 50, 41, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 50, 41, 0.08);
}

.tc-otp-shield {
  width: 62px;
  height: 62px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--tc-green), var(--tc-green-dark));
  box-shadow: 0 16px 34px rgba(15, 107, 79, 0.22);
}

.tc-otp-boxes {
  gap: 12px;
}

.tc-otp-boxes input {
  min-height: 76px;
  font-size: 1.9rem;
}

.tc-success {
  justify-content: space-between;
  text-align: center;
}

.tc-success .tc-actions {
  width: 100%;
}

.tc-success-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.tc-success .tc-lead {
  max-width: 23rem;
}

.tc-success-mark {
  width: 102px;
  height: 102px;
  margin-bottom: 28px;
  position: relative;
  background: linear-gradient(135deg, var(--tc-green), var(--tc-lime));
  animation: tc-check-pop 720ms var(--tc-ease) both;
}

.tc-success-mark::before,
.tc-success-mark::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(15, 107, 79, 0.18);
  border-radius: 50%;
  animation: tc-ring 1600ms ease-out infinite;
}

.tc-success-mark::after {
  inset: -24px;
  animation-delay: 240ms;
}

.tc-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 162, 58, 0.22);
  border-radius: 8px;
  color: #8b560f;
  background: var(--tc-amber-soft);
  font-weight: 900;
}

.tc-confetti {
  position: absolute;
  inset: 14px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.tc-confetti span {
  position: absolute;
  top: -24px;
  width: 8px;
  height: 18px;
  border-radius: 3px;
  opacity: 0;
  background: var(--tc-gold);
  animation: tc-confetti-fall 2200ms ease-out forwards;
}

.tc-confetti span:nth-child(1) { inset-inline-start: 12%; background: var(--tc-lime); animation-delay: 80ms; }
.tc-confetti span:nth-child(2) { inset-inline-start: 25%; background: var(--tc-rose); animation-delay: 180ms; }
.tc-confetti span:nth-child(3) { inset-inline-start: 43%; background: var(--tc-green); animation-delay: 20ms; }
.tc-confetti span:nth-child(4) { inset-inline-start: 58%; background: var(--tc-gold); animation-delay: 260ms; }
.tc-confetti span:nth-child(5) { inset-inline-start: 75%; background: #64b5d8; animation-delay: 130ms; }
.tc-confetti span:nth-child(6) { inset-inline-start: 88%; background: var(--tc-lime); animation-delay: 320ms; }

.tc-onboarding:not(.is-celebrating) .tc-confetti span {
  animation-play-state: paused;
}

@media (max-width: 380px) {
  .tc-screen {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tc-screen h1 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .tc-language-hero {
    min-height: 126px;
  }

  .tc-otp-boxes {
    gap: 8px;
  }
}

@media (max-height: 760px) {
  .tc-logo-row {
    min-height: 70px;
  }

  .tc-logo-row img {
    width: 104px;
  }

  .tc-language-hero {
    min-height: 112px;
    margin-bottom: 18px;
  }

  .tc-feature-visual {
    min-height: 176px;
    margin-bottom: 20px;
  }

  .tc-visual-card {
    min-height: 72px;
    padding: 11px;
  }

  .tc-auth-form {
    padding-top: 18px;
  }

  .tc-auth-assurance {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-screen.is-active,
  .tc-success-mark,
  .tc-success-mark::before,
  .tc-success-mark::after,
  .tc-confetti span {
    animation: none;
  }
}

@keyframes tc-screen-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tc-check-pop {
  0% {
    transform: scale(0.72);
  }
  65% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tc-ring {
  from {
    opacity: 0.48;
    transform: scale(0.82);
  }
  to {
    opacity: 0;
    transform: scale(1.25);
  }
}

@keyframes tc-confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(360px) rotate(220deg);
  }
}
/* Image Styles */
.tc-language-hero, .tc-success-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}
.tc-hero-img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(23, 50, 41, 0.15));
}
.tc-success-img {
  max-height: 280px;
}
/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.tc-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tc-animate-float {
  animation: float 4s ease-in-out infinite;
}

.tc-onboarding-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.8rem;
  width: 100%;
  height: 25vh;
  max-height: 220px;
  min-height: 120px;
}

.tc-onboarding-img-wrapper .tc-hero-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(23, 50, 41, 0.12);
  border: 1px solid var(--tc-border);
}
/* Elegant Splash Hero */
.tc-language-hero-elegant {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
  height: 30vh;
  max-height: 260px;
  min-height: 160px;
}
.tc-hero-img-elegant {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Mobile viewport fit pass: keep CTAs visible on every first-run screen. */
body.tc-app-first {
  height: 100dvh;
  overflow: hidden;
}

.tc-app-main,
.tc-onboarding {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.tc-onboarding {
  align-items: stretch;
  justify-items: center;
}

.tc-mobile-stage {
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  align-self: stretch;
}

.tc-screen {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: clamp(12px, 2dvh, 20px) clamp(16px, 5vw, 22px) max(12px, env(safe-area-inset-bottom));
}

.tc-screen.is-active {
  transform: none;
  animation: tc-screen-fade-in 240ms var(--tc-ease) both;
}

.tc-screen-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.tc-screen-body::-webkit-scrollbar {
  display: none;
}

.tc-progress,
.tc-logo-row,
.tc-actions {
  flex: 0 0 auto;
}

.tc-logo-row {
  min-height: clamp(48px, 8dvh, 76px);
  padding-top: 0;
}

.tc-logo-row img {
  width: clamp(92px, 26vw, 124px);
}

.tc-progress {
  min-height: clamp(16px, 2.4dvh, 24px);
}

.tc-screen h1 {
  max-width: min(13ch, 100%);
  font-size: clamp(1.55rem, 7.2vw, 2.45rem);
  line-height: 1.12;
}

.tc-onboarding[dir="ltr"] .tc-screen h1 {
  max-width: min(17ch, 100%);
}

.tc-kicker {
  margin-bottom: clamp(4px, 0.8dvh, 8px);
  font-size: clamp(0.74rem, 3.2vw, 0.88rem);
}

.tc-lead {
  margin-top: clamp(8px, 1.3dvh, 14px);
  font-size: clamp(0.86rem, 3.55vw, 1.02rem);
  line-height: 1.48;
}

.tc-actions {
  gap: clamp(7px, 1.15dvh, 10px);
  padding-top: clamp(8px, 1.6dvh, 14px);
}

.tc-btn {
  min-height: clamp(46px, 6.2dvh, 58px);
  font-size: clamp(0.92rem, 3.6vw, 1.02rem);
}

.tc-onboarding-img-wrapper {
  height: clamp(98px, 21dvh, 210px);
  min-height: 0;
  max-height: min(210px, 24dvh);
  margin-bottom: clamp(8px, 1.4dvh, 14px);
}

.tc-language-hero-elegant {
  height: clamp(130px, 27dvh, 250px);
  min-height: 0;
  max-height: min(250px, 30dvh);
  margin-top: 0;
  margin-bottom: 0;
}

.tc-language-actions {
  gap: clamp(8px, 1.2dvh, 12px) !important;
  margin-top: clamp(14px, 2.2dvh, 24px) !important;
}

.tc-language-hint {
  margin-top: clamp(4px, 1dvh, 10px) !important;
}

.tc-auth-form {
  justify-content: center;
  padding-top: 0;
}

[data-state="phone"] .tc-onboarding-img-wrapper {
  height: clamp(72px, 14dvh, 126px);
  max-height: min(126px, 16dvh);
  margin-bottom: clamp(6px, 1dvh, 10px);
}

.tc-auth-assurance {
  gap: 8px;
  margin-top: clamp(10px, 1.6dvh, 16px);
}

.tc-auth-assurance span {
  min-height: clamp(40px, 5.4dvh, 54px);
}

.tc-field-label {
  margin-top: clamp(12px, 2dvh, 22px);
  margin-bottom: 6px;
}

.tc-phone-row select,
.tc-phone-row input {
  min-height: clamp(46px, 6.1dvh, 56px);
}

.tc-error {
  min-height: 18px;
  margin-top: 6px;
}

.tc-otp-shield {
  margin-bottom: clamp(10px, 1.8dvh, 18px);
}

.tc-otp-boxes {
  gap: clamp(8px, 2vw, 12px);
  margin-top: clamp(14px, 2.5dvh, 26px);
}

.tc-otp-boxes input {
  min-height: clamp(54px, 14vw, 76px);
}

.tc-success-panel {
  justify-content: center;
}

.tc-success-hero {
  margin-bottom: clamp(8px, 1.6dvh, 18px);
}

.tc-success-img {
  max-height: min(220px, 27dvh);
}

.tc-success-badge {
  margin-top: clamp(12px, 2dvh, 22px);
}

@media (max-height: 760px) {
  .tc-screen {
    padding-top: clamp(10px, 1.6dvh, 14px);
  }

  .tc-onboarding-img-wrapper {
    height: clamp(82px, 18dvh, 150px);
  }

  [data-state="phone"] .tc-onboarding-img-wrapper {
    height: clamp(58px, 11dvh, 92px);
  }

  .tc-auth-assurance span {
    min-height: 40px;
  }
}

@media (min-width: 520px) {
  .tc-onboarding {
    padding: 18px;
  }

  .tc-mobile-stage {
    height: min(840px, calc(100dvh - 36px));
    max-height: calc(100dvh - 36px);
    align-self: center;
  }
}

@keyframes tc-screen-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Premium onboarding pass v1 */
.tc-splash {
  position: relative;
  overflow: hidden;
}

.tc-splash-wash {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(155, 212, 42, 0.12), transparent 52%),
    radial-gradient(circle at 18% 78%, rgba(15, 107, 79, 0.08), transparent 46%);
  animation: tc-splash-wash 3.2s ease-in-out infinite alternate;
}

.tc-splash-logo {
  position: relative;
  z-index: 1;
  animation: tc-logo-glow 1.4s var(--tc-ease, ease) both;
}

.tc-splash.tc-splash-exit,
.tc-screen.tc-splash.tc-splash-exit {
  animation: tc-splash-out 220ms ease forwards;
}

.tc-screen.is-leaving {
  animation: tc-screen-leave 220ms var(--tc-ease, ease) forwards;
  pointer-events: none;
}

.tc-stagger-item {
  opacity: 1;
}

.tc-stagger-item.tc-animate-in {
  animation: tc-stagger-in 480ms var(--tc-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.tc-language-mini-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: clamp(10px, 1.8dvh, 16px) 0;
}

.tc-language-mini-row .tc-mini-widget {
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  font-size: 0.72rem;
  text-align: center;
}

.tc-language-mini-row .tc-mini-widget i {
  width: 28px;
  height: 28px;
  font-size: 0.82rem;
}

.tc-language-hint {
  margin-top: clamp(10px, 1.6dvh, 16px);
  color: var(--tc-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.tc-hero-img-elegant {
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(23, 50, 41, 0.1);
  mix-blend-mode: normal;
}

.tc-slide-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: clamp(8px, 1.4dvh, 14px);
}

.tc-slide-tile {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  border: 1px solid rgba(15, 107, 79, 0.1);
  border-radius: 16px;
  color: var(--tc-green-dark);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(23, 50, 41, 0.06);
  text-align: center;
}

.tc-slide-tile i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 10px;
  color: var(--tc-green);
  background: rgba(223, 246, 232, 0.72);
  font-size: 0.95rem;
}

.tc-slide-tile-label {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tc-green-dark);
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tc-btn,
.tc-language-option,
.tc-phone-row select,
.tc-phone-row input,
.tc-otp-boxes input,
.tc-slide-tile,
.tc-success-badge {
  border-radius: 16px;
}

.tc-resend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  color: var(--tc-green-dark);
  background: rgba(223, 246, 232, 0.72);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  touch-action: manipulation;
}

.tc-resend-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.tc-otp-boxes.is-complete input {
  border-color: var(--tc-green);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
  animation: tc-otp-pulse 420ms ease;
}

.tc-success-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto clamp(10px, 1.8dvh, 18px);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--tc-green), var(--tc-lime, #9bd42a));
  box-shadow: 0 18px 36px rgba(15, 107, 79, 0.24);
  font-size: 2.2rem;
}

.tc-success .tc-success-mark.tc-animate-in {
  animation: tc-check-pop 720ms var(--tc-ease, ease) both;
}

.tc-confetti-wave-2 span {
  animation-delay: 600ms !important;
}

.tc-onboarding.is-confetti-wave-2 .tc-confetti-wave-2 span {
  animation-name: tc-confetti-fall;
  animation-play-state: running;
}

.tc-onboarding:not(.is-celebrating) .tc-confetti-wave-2 span {
  animation-play-state: paused;
}

.tc-btn-celebrate {
  animation: tc-btn-pulse 1.8s ease-in-out infinite;
}

.tc-onboarding.is-exiting {
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 300ms ease, transform 300ms ease;
}

.tc-auth-assurance span i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tc-green);
}

.tc-onboarding button,
.tc-language-option {
  touch-action: manipulation;
}

@keyframes tc-splash-wash {
  from {
    transform: translate3d(-2%, 0, 0);
    opacity: 0.72;
  }
  to {
    transform: translate3d(2%, 0, 0);
    opacity: 1;
  }
}

@keyframes tc-logo-glow {
  0% {
    opacity: 0;
    transform: scale(0.92);
    filter: drop-shadow(0 0 0 rgba(15, 107, 79, 0));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 10px 24px rgba(15, 107, 79, 0.18));
  }
}

@keyframes tc-splash-out {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes tc-screen-leave {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes tc-stagger-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tc-otp-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tc-btn-pulse {
  0%,
  100% {
    box-shadow: 0 18px 36px rgba(15, 107, 79, 0.24);
  }
  50% {
    box-shadow: 0 22px 42px rgba(15, 107, 79, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-splash-wash,
  .tc-splash-logo,
  .tc-stagger-item.tc-animate-in,
  .tc-btn-celebrate,
  .tc-otp-boxes.is-complete input {
    animation: none;
  }

  .tc-onboarding.is-exiting {
    transition: none;
  }
}

/* Logo restart + country flags */
.tc-logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms ease, opacity 160ms ease;
}

.tc-logo-btn:active {
  transform: scale(0.96);
  opacity: 0.88;
}

.tc-logo-btn img {
  width: clamp(92px, 26vw, 124px);
  height: auto;
  pointer-events: none;
}

.tc-phone-row {
  grid-template-columns: minmax(118px, 34%) minmax(0, 1fr);
}

.tc-country-picker {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(46px, 6.1dvh, 56px);
  border: 1px solid rgba(23, 50, 41, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 50, 41, 0.08);
  overflow: hidden;
}

.tc-country-flag {
  position: absolute;
  inset-inline-start: 12px;
  z-index: 1;
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
}

.tc-country-select {
  width: 100%;
  min-height: inherit;
  padding-inline-start: 40px;
  padding-inline-end: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tc-ink);
  font-size: 0.92rem;
  font-weight: 800;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230f6b4f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.tc-country-select:focus {
  outline: none;
}

.tc-country-picker:focus-within {
  border-color: var(--tc-green);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.14);
}

.tc-phone-row .tc-country-select {
  min-height: clamp(46px, 6.1dvh, 56px);
}

.tc-onboarding[dir="rtl"] .tc-country-select {
  background-position: left 12px center;
}

/* Delight motion — logo, cats, and step-by-step micro-animations */
.tc-screen.is-active .tc-logo-live {
  animation: tc-logo-breathe 2.8s ease-in-out infinite;
}

.tc-cats-scene {
  position: relative;
  isolation: isolate;
}

.tc-cats-scene::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 58%, rgba(155, 212, 42, 0.18), transparent 68%);
  animation: tc-cats-glow 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.tc-cats-scene .tc-hero-img-elegant {
  position: relative;
  z-index: 1;
  mix-blend-mode: normal;
  transform-origin: center bottom;
}

.tc-screen.is-active .tc-cats-alive {
  animation: tc-cats-alive 4.8s ease-in-out infinite;
}

.tc-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(155, 212, 42, 0.85);
  box-shadow: 0 0 12px rgba(155, 212, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.tc-sparkle-1 {
  top: 16%;
  inset-inline-start: 14%;
}

.tc-sparkle-2 {
  top: 24%;
  inset-inline-end: 12%;
  background: rgba(242, 162, 58, 0.9);
  box-shadow: 0 0 12px rgba(242, 162, 58, 0.4);
}

.tc-sparkle-3 {
  bottom: 18%;
  inset-inline-start: 46%;
  width: 6px;
  height: 6px;
}

.tc-screen.is-active .tc-sparkle {
  animation: tc-sparkle-twinkle 2.4s ease-in-out infinite;
}

.tc-screen.is-active .tc-sparkle-2 {
  animation-delay: 0.8s;
}

.tc-screen.is-active .tc-sparkle-3 {
  animation-delay: 1.5s;
}

.tc-screen.is-active .tc-title-shine {
  animation: tc-title-shine 3.2s ease-in-out infinite;
}

.tc-screen.is-active .tc-language-mini-row .tc-mini-widget {
  animation: tc-widget-float 3s ease-in-out infinite;
}

.tc-screen.is-active .tc-language-mini-row .tc-mini-widget:nth-child(2) {
  animation-delay: 0.35s;
}

.tc-screen.is-active .tc-language-mini-row .tc-mini-widget:nth-child(3) {
  animation-delay: 0.7s;
}

.tc-screen.is-active .tc-language-mini-row .tc-mini-widget i {
  animation: tc-icon-pop 2.4s ease-in-out infinite;
}

.tc-screen.is-active .tc-slide-tile i {
  animation: tc-icon-pop 2.6s ease-in-out infinite;
}

.tc-screen.is-active .tc-slide-tile:nth-child(2) i {
  animation-delay: 0.25s;
}

.tc-screen.is-active .tc-slide-tile:nth-child(3) i {
  animation-delay: 0.5s;
}

.tc-screen.is-active .tc-hero-alive {
  animation: tc-hero-alive 4.2s ease-in-out infinite;
}

.tc-progress-live span.is-active {
  animation: tc-progress-pulse 1.8s ease-in-out infinite;
}

.tc-screen.is-active .tc-btn-primary.tc-btn-pop {
  animation: tc-btn-enter 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-screen.is-active .tc-auth-assurance span i {
  animation: tc-icon-pop 2.2s ease-in-out infinite;
}

.tc-screen.is-active .tc-auth-assurance span:nth-child(2) i {
  animation-delay: 0.35s;
}

.tc-screen.is-active .tc-otp-shield i {
  animation: tc-icon-pop 2.4s ease-in-out infinite;
}

@keyframes tc-logo-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(15, 107, 79, 0.12));
  }
  50% {
    transform: scale(1.045);
    filter: drop-shadow(0 14px 26px rgba(155, 212, 42, 0.28));
  }
}

@keyframes tc-cats-alive {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate3d(-2px, -7px, 0) rotate(-0.7deg) scale(1.012);
  }
  50% {
    transform: translate3d(0, -11px, 0) rotate(0deg) scale(1.018);
  }
  75% {
    transform: translate3d(2px, -6px, 0) rotate(0.7deg) scale(1.012);
  }
}

@keyframes tc-cats-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

@keyframes tc-sparkle-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.7);
  }
  45% {
    opacity: 1;
    transform: translateY(-6px) scale(1);
  }
}

@keyframes tc-title-shine {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(15, 107, 79, 0);
  }
  50% {
    text-shadow: 0 6px 18px rgba(15, 107, 79, 0.12);
  }
}

@keyframes tc-widget-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes tc-icon-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes tc-hero-alive {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-9px) scale(1.015);
  }
}

@keyframes tc-progress-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(15, 107, 79, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(15, 107, 79, 0.12);
  }
}

@keyframes tc-btn-enter {
  0% {
    transform: scale(0.96);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-screen.is-active .tc-logo-live,
  .tc-screen.is-active .tc-cats-alive,
  .tc-screen.is-active .tc-sparkle,
  .tc-cats-scene::before,
  .tc-screen.is-active .tc-title-shine,
  .tc-screen.is-active .tc-language-mini-row .tc-mini-widget,
  .tc-screen.is-active .tc-language-mini-row .tc-mini-widget i,
  .tc-screen.is-active .tc-slide-tile i,
  .tc-screen.is-active .tc-hero-alive,
  .tc-progress-live span.is-active,
  .tc-screen.is-active .tc-auth-assurance span i,
  .tc-screen.is-active .tc-otp-shield i {
    animation: none;
  }
}

/* Success celebration — spectacular pass */
.tc-success {
  position: relative;
  overflow: hidden;
}

.tc-success-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(155, 212, 42, 0.22), transparent 42%),
    radial-gradient(circle at 20% 72%, rgba(242, 162, 58, 0.14), transparent 36%),
    radial-gradient(circle at 82% 68%, rgba(15, 107, 79, 0.12), transparent 34%);
  opacity: 0;
}

.tc-onboarding.is-celebrating .tc-success-aurora {
  animation: tc-success-aurora-in 900ms ease forwards, tc-success-aurora-pulse 4s ease-in-out 900ms infinite;
}

.tc-success-mark-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto clamp(8px, 1.4dvh, 14px);
}

.tc-success-mark-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(155, 212, 42, 0.35);
  opacity: 0;
}

.tc-onboarding.is-celebrating .tc-success-mark-ring {
  animation: tc-success-ring-spin 8s linear infinite, tc-success-ring-in 700ms ease 200ms forwards;
}

.tc-success .tc-success-mark {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--tc-green), var(--tc-lime, #9bd42a));
  box-shadow: 0 20px 40px rgba(15, 107, 79, 0.28);
  font-size: 2.35rem;
}

.tc-onboarding.is-celebrating .tc-success-mark-wrap.tc-animate-in .tc-success-mark {
  animation: tc-success-check-pop 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-success-hero-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 280px);
  margin: 0 auto clamp(10px, 1.6dvh, 16px);
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.88));
  box-shadow:
    0 24px 48px rgba(23, 50, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tc-onboarding.is-celebrating .tc-success-hero-frame.tc-animate-in {
  animation: tc-success-frame-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-success-cat {
  position: relative;
  z-index: 1;
  max-height: min(200px, 24dvh);
  border-radius: 20px;
  filter: drop-shadow(0 16px 28px rgba(23, 50, 41, 0.14));
}

.tc-onboarding.is-celebrating .tc-success-cat {
  animation: tc-success-cat-bounce 2.8s ease-in-out 400ms infinite;
}

.tc-success-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}

.tc-success-spark-1 {
  top: 8%;
  inset-inline-start: 10%;
  background: var(--tc-lime);
  box-shadow: 0 0 14px rgba(155, 212, 42, 0.55);
}

.tc-success-spark-2 {
  top: 14%;
  inset-inline-end: 8%;
  background: var(--tc-gold);
  box-shadow: 0 0 14px rgba(242, 162, 58, 0.5);
}

.tc-success-spark-3 {
  bottom: 10%;
  inset-inline-start: 44%;
  width: 7px;
  height: 7px;
  background: var(--tc-rose);
  box-shadow: 0 0 12px rgba(237, 111, 145, 0.45);
}

.tc-onboarding.is-celebrating .tc-success-spark {
  animation: tc-success-spark 2.2s ease-in-out infinite;
}

.tc-onboarding.is-celebrating .tc-success-spark-2 {
  animation-delay: 0.5s;
}

.tc-onboarding.is-celebrating .tc-success-spark-3 {
  animation-delay: 1s;
}

.tc-success-title {
  max-width: none;
  background: linear-gradient(135deg, var(--tc-green-dark), var(--tc-green) 55%, #128866);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tc-onboarding.is-celebrating .tc-success-title.tc-animate-in {
  animation: tc-success-title-in 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-onboarding.is-celebrating .tc-success .tc-kicker.tc-animate-in {
  animation: tc-stagger-in 520ms ease both;
  color: var(--tc-gold);
}

.tc-onboarding.is-celebrating .tc-success-badge {
  border-radius: 999px;
  padding: 11px 18px;
  box-shadow: 0 12px 28px rgba(242, 162, 58, 0.18);
}

.tc-onboarding.is-celebrating .tc-success-badge.tc-animate-in {
  animation: tc-success-badge-pop 620ms cubic-bezier(0.22, 1, 0.36, 1) both, tc-success-badge-glow 2.4s ease-in-out 620ms infinite;
}

.tc-onboarding.is-celebrating .tc-success-badge i {
  animation: tc-icon-pop 1.8s ease-in-out infinite;
}

.tc-onboarding.is-celebrating .tc-btn-celebrate {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(15, 107, 79, 0.32),
    0 0 0 0 rgba(155, 212, 42, 0.35);
  animation: tc-success-btn-glow 2s ease-in-out infinite;
}

.tc-onboarding.is-celebrating .tc-btn-celebrate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: tc-success-btn-shine 2.4s ease-in-out infinite;
}

.tc-confetti-a span,
.tc-confetti-b span,
.tc-confetti-c span {
  position: absolute;
  top: -28px;
  width: 9px;
  height: 16px;
  border-radius: 3px;
  opacity: 0;
}

.tc-confetti-a span:nth-child(1) { inset-inline-start: 8%; background: var(--tc-lime); }
.tc-confetti-a span:nth-child(2) { inset-inline-start: 18%; background: var(--tc-rose); animation-delay: 0.15s; }
.tc-confetti-a span:nth-child(3) { inset-inline-start: 32%; background: var(--tc-green); animation-delay: 0.05s; }
.tc-confetti-a span:nth-child(4) { inset-inline-start: 48%; background: var(--tc-gold); animation-delay: 0.25s; }
.tc-confetti-a span:nth-child(5) { inset-inline-start: 62%; background: #64b5d8; animation-delay: 0.12s; }
.tc-confetti-a span:nth-child(6) { inset-inline-start: 76%; background: var(--tc-lime); animation-delay: 0.3s; }
.tc-confetti-a span:nth-child(7) { inset-inline-start: 88%; background: var(--tc-rose); animation-delay: 0.08s; }
.tc-confetti-a span:nth-child(8) { inset-inline-start: 94%; background: var(--tc-gold); animation-delay: 0.22s; }

.tc-confetti-b span:nth-child(1) { inset-inline-start: 5%; background: var(--tc-gold); width: 7px; height: 12px; }
.tc-confetti-b span:nth-child(2) { inset-inline-start: 22%; background: var(--tc-green); width: 11px; height: 7px; animation-delay: 0.18s; }
.tc-confetti-b span:nth-child(3) { inset-inline-start: 38%; background: var(--tc-lime); animation-delay: 0.4s; }
.tc-confetti-b span:nth-child(4) { inset-inline-start: 54%; background: #64b5d8; animation-delay: 0.1s; }
.tc-confetti-b span:nth-child(5) { inset-inline-start: 68%; background: var(--tc-rose); width: 7px; animation-delay: 0.28s; }
.tc-confetti-b span:nth-child(6) { inset-inline-start: 80%; background: var(--tc-gold); animation-delay: 0.14s; }
.tc-confetti-b span:nth-child(7) { inset-inline-start: 90%; background: var(--tc-green); width: 11px; height: 7px; animation-delay: 0.35s; }
.tc-confetti-b span:nth-child(8) { inset-inline-start: 96%; background: var(--tc-lime); animation-delay: 0.2s; }

.tc-confetti-c span:nth-child(1) { inset-inline-start: 12%; background: var(--tc-rose); }
.tc-confetti-c span:nth-child(2) { inset-inline-start: 28%; background: var(--tc-lime); animation-delay: 0.2s; }
.tc-confetti-c span:nth-child(3) { inset-inline-start: 44%; background: var(--tc-gold); animation-delay: 0.35s; }
.tc-confetti-c span:nth-child(4) { inset-inline-start: 58%; background: var(--tc-green); animation-delay: 0.1s; }
.tc-confetti-c span:nth-child(5) { inset-inline-start: 72%; background: #64b5d8; animation-delay: 0.28s; }
.tc-confetti-c span:nth-child(6) { inset-inline-start: 86%; background: var(--tc-rose); animation-delay: 0.16s; }

.tc-onboarding.is-celebrating .tc-confetti-a span {
  animation: tc-confetti-fall-loop 3.2s ease-in-out infinite;
}

.tc-onboarding.is-celebrating.is-confetti-wave-2 .tc-confetti-b span {
  animation: tc-confetti-fall-loop 3.4s ease-in-out infinite;
}

.tc-onboarding.is-celebrating.is-confetti-wave-3 .tc-confetti-c span {
  animation: tc-confetti-fall-loop 3.1s ease-in-out infinite;
}

.tc-onboarding:not(.is-celebrating) .tc-confetti-a span,
.tc-onboarding:not(.is-celebrating) .tc-confetti-b span,
.tc-onboarding:not(.is-celebrating) .tc-confetti-c span {
  animation-play-state: paused;
}

@keyframes tc-success-aurora-in {
  to { opacity: 1; }
}

@keyframes tc-success-aurora-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes tc-success-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes tc-success-ring-in {
  to { opacity: 1; }
}

@keyframes tc-success-check-pop {
  0% { transform: scale(0.5); opacity: 0; }
  65% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tc-success-frame-in {
  0% { transform: scale(0.88) translateY(16px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes tc-success-cat-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-8px) rotate(-1deg); }
  70% { transform: translateY(-4px) rotate(1deg); }
}

@keyframes tc-success-spark {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes tc-success-title-in {
  0% { transform: translateY(18px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes tc-success-badge-pop {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tc-success-badge-glow {
  0%, 100% { box-shadow: 0 12px 28px rgba(242, 162, 58, 0.18); }
  50% { box-shadow: 0 16px 36px rgba(242, 162, 58, 0.32); }
}

@keyframes tc-success-btn-glow {
  0%, 100% { box-shadow: 0 20px 40px rgba(15, 107, 79, 0.32), 0 0 0 0 rgba(155, 212, 42, 0.2); }
  50% { box-shadow: 0 24px 48px rgba(15, 107, 79, 0.38), 0 0 0 8px rgba(155, 212, 42, 0.12); }
}

@keyframes tc-success-btn-shine {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}

@keyframes tc-confetti-fall-loop {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(420px) rotate(280deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-onboarding.is-celebrating .tc-success-aurora,
  .tc-onboarding.is-celebrating .tc-success-mark-ring,
  .tc-onboarding.is-celebrating .tc-success-mark,
  .tc-onboarding.is-celebrating .tc-success-cat,
  .tc-onboarding.is-celebrating .tc-success-spark,
  .tc-onboarding.is-celebrating .tc-success-badge,
  .tc-onboarding.is-celebrating .tc-btn-celebrate,
  .tc-onboarding.is-celebrating .tc-btn-celebrate::after,
  .tc-onboarding.is-celebrating .tc-confetti-a span,
  .tc-onboarding.is-celebrating .tc-confetti-b span,
  .tc-onboarding.is-celebrating .tc-confetti-c span {
    animation: none;
  }

  .tc-success-title {
    color: var(--tc-green-dark);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

/* Twin Cats brand splash/onboarding pass */
body.tc-app-first {
  background:
    linear-gradient(130deg, rgba(132, 99, 163, 0.12), rgba(255, 255, 255, 0.96) 44%, rgba(144, 198, 63, 0.13)),
    linear-gradient(180deg, #fbf7ff, #ffffff 48%, #f4fde9);
}

.tc-mobile-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 255, 0.95) 54%, rgba(246, 252, 239, 0.98)),
    radial-gradient(circle at 0 0, rgba(132, 99, 163, 0.1), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(144, 198, 63, 0.12), transparent 32%);
}

.tc-mobile-stage::before {
  background:
    linear-gradient(135deg, rgba(132, 99, 163, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(144, 198, 63, 0.12), transparent 34%);
}

.tc-splash {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(155deg, #6a4f82 0%, #8463a3 56%, #765593 100%);
}

.tc-splash::before,
.tc-splash::after {
  content: "";
  position: absolute;
  inset-inline: -14%;
  pointer-events: none;
  border-radius: 999px;
  background: #90c63f;
  transform: rotate(-11deg);
}

.tc-splash::before {
  top: -8%;
  height: 70px;
  opacity: 0.96;
}

.tc-splash::after {
  bottom: -9%;
  height: 82px;
  opacity: 0.9;
  transform: rotate(-8deg);
}

.tc-splash-wash {
  inset: 0;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.14), transparent 26%),
    radial-gradient(circle at 76% 64%, rgba(144, 198, 63, 0.17), transparent 24%);
}

.tc-splash-logo {
  width: min(245px, 70vw);
  max-width: 70vw;
  padding: clamp(12px, 4vw, 18px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 26px 58px rgba(41, 22, 61, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  filter: none;
  animation: tc-logo-pop 900ms cubic-bezier(0.22, 1, 0.36, 1) both, tc-logo-bob 3.2s ease-in-out 900ms infinite;
}

.tc-loading-bar {
  position: relative;
  z-index: 1;
  width: 148px;
  height: 7px;
  background: rgba(255, 255, 255, 0.22);
}

.tc-loading-bar span {
  background: linear-gradient(90deg, #90c63f, #c6ef74);
  box-shadow: 0 0 18px rgba(144, 198, 63, 0.45);
}

.tc-logo-row img,
.tc-logo-btn img {
  width: clamp(72px, 21vw, 104px);
  border-radius: 18px;
}

.tc-logo-btn:focus-visible,
.tc-language-option:focus-visible,
.tc-btn:focus-visible {
  outline: 3px solid rgba(144, 198, 63, 0.38);
  outline-offset: 2px;
}

.tc-kicker {
  color: var(--tc-lime);
}

.tc-screen h1 {
  color: #2d2140;
}

.tc-title-shine {
  color: #4f3670;
}

.tc-lead {
  color: #6a6074;
}

.tc-language-hero-elegant {
  min-height: clamp(128px, 25dvh, 228px);
  padding: clamp(6px, 1.5dvh, 12px);
  border: 1px solid rgba(132, 99, 163, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 246, 255, 0.9)),
    linear-gradient(135deg, rgba(144, 198, 63, 0.08), transparent 46%);
  box-shadow: 0 18px 38px rgba(106, 79, 130, 0.12);
}

.tc-hero-img-elegant {
  max-height: 100%;
  border-radius: 20px;
  box-shadow: none;
  object-fit: contain;
}

.tc-language-mini-row .tc-mini-widget {
  border-color: rgba(132, 99, 163, 0.12);
  color: #4f3670;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(106, 79, 130, 0.1);
}

.tc-language-mini-row .tc-mini-widget i {
  color: #4f3670;
  background: rgba(144, 198, 63, 0.23);
}

.tc-language-mini-row .tc-mini-widget:nth-child(2) i {
  color: #fff;
  background: #8463a3;
}

.tc-language-option {
  border-color: rgba(132, 99, 163, 0.14);
  color: #2d2140;
  box-shadow: 0 12px 28px rgba(106, 79, 130, 0.1);
}

.tc-language-icon {
  color: #6a4f82;
  background: #f1e8f7;
}

.tc-language-check {
  color: #2d2140;
  background: #90c63f;
}

.tc-language-option.is-selected,
.tc-language-option:focus-visible {
  border-color: #8463a3;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 252, 0.96));
  box-shadow: 0 16px 34px rgba(106, 79, 130, 0.16);
}

.tc-progress span {
  background: rgba(132, 99, 163, 0.18);
}

.tc-progress span.is-active {
  background: linear-gradient(90deg, #8463a3, #90c63f);
}

.tc-vision-plate {
  position: relative;
  min-height: clamp(112px, 22dvh, 214px);
  padding: clamp(6px, 1.5dvh, 10px);
  border: 1px solid rgba(132, 99, 163, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 255, 0.92)),
    linear-gradient(45deg, rgba(144, 198, 63, 0.08), transparent 42%);
  box-shadow: 0 18px 40px rgba(106, 79, 130, 0.12);
  overflow: hidden;
}

.tc-vision-plate::before {
  content: "";
  position: absolute;
  inset-inline-start: -34px;
  top: -38px;
  width: 118px;
  height: 64px;
  border-radius: 999px;
  border: 10px solid rgba(144, 198, 63, 0.72);
  transform: rotate(-18deg);
  pointer-events: none;
}

.tc-vision-plate .tc-hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  object-fit: contain;
  background: #fff;
}

.tc-vision-badge {
  position: absolute;
  z-index: 2;
  inset-inline-end: clamp(14px, 4vw, 24px);
  bottom: clamp(12px, 2.4dvh, 20px);
  width: clamp(48px, 13vw, 62px);
  height: clamp(48px, 13vw, 62px);
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 18px;
  color: #2d2140;
  background: #90c63f;
  box-shadow: 0 14px 30px rgba(106, 79, 130, 0.2);
  font-size: clamp(1.2rem, 5vw, 1.55rem);
}

.tc-brand-slide-care .tc-vision-badge {
  color: #fff;
  background: #8463a3;
}

.tc-brand-slide-welfare .tc-vision-badge {
  color: #fff;
  background: linear-gradient(135deg, #6a4f82, #8463a3);
}

.tc-screen.is-active .tc-vision-badge {
  animation: tc-brand-badge-wiggle 2.7s ease-in-out infinite;
}

.tc-slide-tile {
  border-color: rgba(132, 99, 163, 0.12);
  color: #4f3670;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(106, 79, 130, 0.1);
}

.tc-slide-tile i {
  color: #4f3670;
  background: rgba(144, 198, 63, 0.22);
}

.tc-brand-slide-care .tc-slide-tile i {
  color: #fff;
  background: #8463a3;
}

.tc-brand-slide-welfare .tc-slide-tile i {
  color: #2d2140;
  background: #90c63f;
}

.tc-slide-tile-label {
  color: #4f3670;
}

.tc-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8463a3, #6a4f82);
  box-shadow: 0 18px 36px rgba(106, 79, 130, 0.24);
}

.tc-btn-primary:hover,
.tc-btn-primary:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #755491, #5b416f);
}

.tc-btn-primary:active {
  color: #fff;
}

.tc-btn-ghost,
.tc-resend-btn {
  color: #4f3670;
  background: rgba(241, 232, 247, 0.78);
  border-color: rgba(132, 99, 163, 0.14);
}

.tc-phone-row select,
.tc-phone-row input,
.tc-otp-boxes input,
.tc-country-picker {
  border-color: rgba(132, 99, 163, 0.16);
  color: #2d2140;
  box-shadow: 0 12px 28px rgba(106, 79, 130, 0.08);
}

.tc-phone-row select:focus,
.tc-phone-row input:focus,
.tc-otp-boxes input:focus,
.tc-country-picker:focus-within {
  border-color: #8463a3;
  outline-color: rgba(132, 99, 163, 0.16);
  box-shadow: 0 0 0 3px rgba(132, 99, 163, 0.16);
}

.tc-country-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238463A3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tc-auth-assurance span,
.tc-secure-row span,
.tc-plan-pills span {
  color: #4f3670;
  border-color: rgba(132, 99, 163, 0.12);
}

.tc-auth-assurance span i,
.tc-otp-shield,
.tc-success-mark {
  background: linear-gradient(135deg, #8463a3, #6a4f82);
}

.tc-success-title {
  background: linear-gradient(135deg, #6a4f82, #8463a3 55%, #90c63f);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes tc-logo-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.78) rotate(-3deg);
  }
  68% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05) rotate(1.2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes tc-logo-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-0.8deg);
  }
}

@keyframes tc-brand-badge-wiggle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  28% {
    transform: translateY(-5px) rotate(-3deg) scale(1.04);
  }
  56% {
    transform: translateY(-2px) rotate(3deg) scale(1.02);
  }
}

@media (max-height: 700px) {
  .tc-vision-plate {
    min-height: clamp(84px, 17dvh, 142px);
  }

  .tc-language-hero-elegant {
    min-height: clamp(104px, 21dvh, 170px);
  }
}

@media (min-width: 520px) {
  .tc-logo-row {
    min-height: clamp(54px, 7dvh, 68px);
  }

  .tc-language-body h1 {
    max-width: min(14ch, 100%);
    font-size: clamp(1.75rem, 5.4vw, 2.28rem);
  }

  .tc-language-hero-elegant {
    height: clamp(118px, 20dvh, 176px);
    min-height: 118px;
    max-height: 176px;
    margin-top: 2px;
  }

  .tc-language-grid {
    margin-top: 16px;
  }

  .tc-language-option {
    min-height: 72px;
  }

  .tc-language-hint {
    margin-top: 6px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-splash-logo,
  .tc-screen.is-active .tc-vision-badge {
    animation: none;
  }
}

/* Fun pass v2 — zero formality, higher delight */
.tc-fun-screen .tc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #4f3670;
  background: linear-gradient(135deg, rgba(144, 198, 63, 0.28), rgba(132, 99, 163, 0.14));
  box-shadow: 0 8px 18px rgba(106, 79, 130, 0.1);
}

.tc-vision-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #2d2140;
  font-weight: 800;
  font-size: clamp(0.86rem, 3.4vw, 0.98rem);
  background: linear-gradient(135deg, #90c63f, #b6e35f);
  box-shadow: 0 14px 28px rgba(106, 79, 130, 0.16);
}

.tc-vision-banner i {
  color: #4f3670;
  font-size: 1.05em;
}

.tc-language-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 2px;
}

.tc-language-pillars .tc-mini-widget {
  border-color: rgba(132, 99, 163, 0.12);
  color: #4f3670;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(106, 79, 130, 0.1);
  border-radius: 999px;
  padding: 8px 12px;
}

.tc-language-pillars .tc-mini-widget i {
  color: #4f3670;
  background: rgba(144, 198, 63, 0.26);
}

.tc-language-pillars .tc-mini-widget:nth-child(3) i {
  color: #fff;
  background: #8463a3;
}

.tc-language-pillars .tc-mini-widget:nth-child(5) i {
  color: #fff;
  background: linear-gradient(135deg, #6a4f82, #8463a3);
}

.tc-pillar-sep {
  color: #8463a3;
  font-weight: 900;
  font-size: 1.15rem;
  opacity: 0.72;
  line-height: 1;
}

.tc-language-hero-elegant,
.tc-vision-plate {
  border-radius: 30px;
}

.tc-language-option,
.tc-btn,
.tc-slide-tile {
  border-radius: 22px;
}

.tc-btn-primary {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform-origin: center;
}

.tc-screen.is-active .tc-btn-primary {
  animation: tc-fun-cta-pulse 1.8s ease-in-out infinite;
}

.tc-screen.is-active .tc-slide-tile {
  animation: tc-fun-tile-pop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-screen.is-active .tc-slide-tile:nth-child(2) {
  animation-delay: 70ms;
}

.tc-screen.is-active .tc-slide-tile:nth-child(3) {
  animation-delay: 140ms;
}

.tc-brand-slide-nutrition .tc-vision-plate {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(246, 252, 239, 0.94)),
    linear-gradient(45deg, rgba(144, 198, 63, 0.16), transparent 44%);
}

.tc-brand-slide-care .tc-vision-plate {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(248, 242, 252, 0.95)),
    linear-gradient(45deg, rgba(132, 99, 163, 0.14), transparent 44%);
}

.tc-brand-slide-welfare .tc-vision-plate {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(250, 246, 255, 0.94)),
    linear-gradient(45deg, rgba(144, 198, 63, 0.1), rgba(132, 99, 163, 0.12) 52%);
}

.tc-brand-slide .tc-vision-plate {
  min-height: clamp(96px, 18dvh, 180px);
}

.tc-brand-slide .tc-actions {
  margin-top: auto;
  padding-top: 8px;
  gap: 8px;
}

.tc-brand-slide .tc-btn-primary,
.tc-brand-slide .tc-btn-ghost {
  min-height: 48px;
}

.tc-splash-logo {
  animation:
    tc-logo-pop 900ms cubic-bezier(0.22, 1, 0.36, 1) both,
    tc-logo-bob 2.6s ease-in-out 900ms infinite,
    tc-fun-logo-wiggle 4.8s ease-in-out 1.2s infinite;
}

.tc-screen.is-active .tc-vision-badge {
  animation: tc-brand-badge-wiggle 1.9s ease-in-out infinite;
}

.tc-language-body h1,
.tc-brand-slide h1 {
  max-width: min(16ch, 100%);
}

@keyframes tc-fun-cta-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 36px rgba(106, 79, 130, 0.24);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 40px rgba(106, 79, 130, 0.3);
  }
}

@keyframes tc-fun-tile-pop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes tc-fun-logo-wiggle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-6px) rotate(-1.4deg);
  }
  55% {
    transform: translateY(-2px) rotate(1.2deg);
  }
}

@media (max-height: 700px) {
  .tc-vision-banner {
    padding: 8px 12px;
    margin-bottom: 4px;
    font-size: 0.82rem;
  }

  .tc-language-pillars {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-splash-logo,
  .tc-screen.is-active .tc-vision-badge,
  .tc-screen.is-active .tc-btn-primary,
  .tc-screen.is-active .tc-slide-tile {
    animation: none !important;
  }
}

/* Language screen — hide copy already inside vision.png */
.tc-fun-screen[data-screen="language"] [data-i18n="languageTitle"],
.tc-fun-screen[data-screen="language"] [data-i18n="languageText"] {
  display: none !important;
}

.tc-language-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.28rem 0.4rem;
  margin: 0 0 0.35rem;
  padding: 0 0.75rem;
  text-align: center;
  line-height: 1.35;
}

.tc-language-tagline-main {
  color: #6a4f82;
  font-size: clamp(0.72rem, 2.85vw, 0.88rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tc-language-tagline-accent {
  color: #6faa28;
  font-size: clamp(0.72rem, 2.85vw, 0.88rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  position: relative;
  padding-inline: 0.15rem;
}

.tc-language-tagline-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.28em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(143, 211, 66, 0.35), rgba(143, 211, 66, 0.12));
  z-index: -1;
}

.tc-fun-screen[data-screen="language"] .tc-language-body {
  gap: 8px;
}

.tc-fun-screen[data-screen="language"] .tc-language-tagline {
  margin-bottom: 2px;
}

.tc-fun-screen[data-screen="language"] .tc-kicker {
  margin-bottom: 2px;
}

.tc-fun-screen[data-screen="language"] .tc-vision-banner {
  margin-bottom: 6px;
}

.tc-fun-screen[data-screen="language"] .tc-language-hero-elegant {
  min-height: clamp(158px, 34dvh, 286px);
  max-height: min(40dvh, 300px);
  height: clamp(158px, 34dvh, 286px);
  margin-top: 0;
  margin-bottom: 4px;
  padding: clamp(4px, 1dvh, 8px);
}

.tc-fun-screen[data-screen="language"] .tc-hero-img-elegant {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

@media (max-height: 720px) {
  .tc-fun-screen[data-screen="language"] .tc-language-hero-elegant {
    min-height: clamp(148px, 32dvh, 240px);
    height: clamp(148px, 32dvh, 240px);
    max-height: 36dvh;
  }
}

@media (min-width: 520px) {
  .tc-fun-screen[data-screen="language"] .tc-language-hero-elegant {
    min-height: clamp(180px, 34dvh, 280px);
    height: clamp(180px, 34dvh, 280px);
    max-height: 280px;
  }
}

/* Fun Pro v4 — more professional + more funny across all screens */
.tc-splash-tag {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  color: #2d2140;
  font-weight: 800;
  font-size: clamp(0.9rem, 3.4vw, 1.05rem);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(41, 22, 61, 0.22);
  animation: tc-fun-tag-pop 700ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}

.tc-splash-paw {
  position: absolute;
  z-index: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.55) 0 28%, transparent 29%),
    radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.5) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.5) 0 12%, transparent 13%),
    radial-gradient(circle at 70% 34%, rgba(255, 255, 255, 0.5) 0 12%, transparent 13%);
  opacity: 0.28;
  animation: tc-fun-paw-float 4.8s ease-in-out infinite;
}

.tc-splash-paw-1 {
  top: 18%;
  inset-inline-start: 12%;
}

.tc-splash-paw-2 {
  top: 28%;
  inset-inline-end: 10%;
  animation-delay: 0.8s;
  transform: scale(0.85);
}

.tc-splash-paw-3 {
  bottom: 22%;
  inset-inline-start: 18%;
  animation-delay: 1.4s;
  transform: scale(0.7);
}

.tc-language-prompt {
  margin: 2px 0 0;
  text-align: center;
  color: #4f3670;
  font-weight: 800;
  font-size: clamp(0.95rem, 3.5vw, 1.08rem);
}

.tc-fun-screen[data-screen="language"] .tc-language-hero-elegant {
  min-height: clamp(190px, 40dvh, 340px);
  max-height: min(46dvh, 360px);
  height: clamp(190px, 40dvh, 340px);
}

.tc-fun-screen[data-screen="language"] .tc-language-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-fun-screen[data-screen="language"] .tc-kicker {
  align-self: center;
}

.tc-auth-screen .tc-kicker,
.tc-success.tc-fun-screen .tc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: #4f3670;
  background: linear-gradient(135deg, rgba(144, 198, 63, 0.28), rgba(132, 99, 163, 0.14));
  box-shadow: 0 8px 18px rgba(106, 79, 130, 0.1);
}

.tc-auth-hero-frame {
  position: relative;
  width: min(100%, 330px);
  height: clamp(96px, 16dvh, 142px);
  min-height: 0;
  max-height: min(142px, 18dvh);
  margin-inline: auto;
  padding: 0;
  border: 1px solid rgba(132, 99, 163, 0.12);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 255, 0.94)),
    linear-gradient(45deg, rgba(144, 198, 63, 0.1), transparent 46%);
  box-shadow: 0 16px 36px rgba(106, 79, 130, 0.12);
}

.tc-auth-hero-frame .tc-hero-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  background: transparent;
  box-shadow: none;
  filter: none;
}

[data-state="phone"] .tc-onboarding-img-wrapper.tc-auth-hero-frame {
  height: clamp(100px, 16dvh, 142px);
  max-height: min(142px, 18dvh);
}

.tc-auth-otp-frame {
  height: clamp(72px, 12dvh, 104px);
  min-height: 0;
  max-height: min(104px, 13dvh);
  margin-bottom: clamp(6px, 1dvh, 10px);
}

.tc-success-hero-frame .tc-success-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(158px, 19dvh);
  object-fit: cover;
}

.tc-auth-screen .tc-otp-boxes {
  /* Room for focus ring without clipping inside overflow parents */
  padding: 6px 2px 8px;
  margin-top: clamp(8px, 1.5dvh, 18px);
  overflow: visible;
}

.tc-auth-screen .tc-otp-boxes input {
  border-radius: 16px;
  font-weight: 800;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.tc-auth-screen .tc-otp-boxes input:focus {
  /* No scale — overflow:hidden/auto ancestors clip scaled OTP cells */
  transform: none;
  outline: none;
  border-color: #8463a3;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(132, 99, 163, 0.2),
    0 10px 22px rgba(106, 79, 130, 0.1);
}

.tc-auth-screen .tc-btn-primary,
.tc-success.tc-fun-screen .tc-btn-primary {
  border-radius: 999px;
  font-weight: 800;
}

.tc-screen.is-active.tc-auth-screen .tc-btn-primary,
.tc-screen.is-active.tc-success .tc-btn-primary {
  animation: tc-fun-cta-pulse 1.8s ease-in-out infinite;
}

.tc-brand-slide .tc-vision-plate {
  min-height: clamp(120px, 22dvh, 210px);
}

.tc-brand-slide h1 {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tc-brand-slide .tc-lead {
  font-size: clamp(0.92rem, 3.3vw, 1.02rem);
}

.tc-screen.is-active .tc-language-hero-elegant .tc-hero-img-elegant,
.tc-screen.is-active .tc-vision-plate .tc-hero-img,
.tc-screen.is-active .tc-auth-hero-frame .tc-hero-img {
  animation: tc-fun-hero-bob 3.6s ease-in-out infinite;
}

.tc-screen.is-active .tc-sparkle {
  animation: tc-sparkle-twinkle 1.8s ease-in-out infinite;
}

.tc-language-option {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tc-language-option:active {
  transform: scale(0.98);
}

.tc-language-option.is-selected {
  transform: translateY(-1px);
}

@keyframes tc-fun-tag-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tc-fun-paw-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(8deg);
  }
}

@keyframes tc-fun-hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-height: 720px) {
  .tc-fun-screen[data-screen="language"] .tc-language-hero-elegant {
    min-height: clamp(160px, 34dvh, 250px);
    height: clamp(160px, 34dvh, 250px);
    max-height: 38dvh;
  }

  .tc-auth-hero-frame {
    min-height: clamp(88px, 16dvh, 140px);
    max-height: 22dvh;
  }

  .tc-brand-slide .tc-vision-plate {
    min-height: clamp(96px, 18dvh, 160px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-splash-tag,
  .tc-splash-paw,
  .tc-screen.is-active .tc-language-hero-elegant .tc-hero-img-elegant,
  .tc-screen.is-active .tc-vision-plate .tc-hero-img,
  .tc-screen.is-active .tc-auth-hero-frame .tc-hero-img,
  .tc-screen.is-active.tc-auth-screen .tc-btn-primary,
  .tc-screen.is-active.tc-success .tc-btn-primary {
    animation: none !important;
  }
}

/* First screen premium pass: tighter visual hierarchy and faster hero rendering. */
.tc-fun-screen[data-screen="language"] {
  padding-top: clamp(14px, 2dvh, 22px);
}

.tc-fun-screen[data-screen="language"] .tc-logo-row {
  min-height: clamp(82px, 13dvh, 108px);
  padding-top: 0;
}

.tc-fun-screen[data-screen="language"] .tc-logo-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(132, 99, 163, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 40px rgba(106, 79, 130, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.tc-fun-screen[data-screen="language"] .tc-logo-btn::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(144, 198, 63, 0.22), transparent 62%);
}

.tc-fun-screen[data-screen="language"] .tc-logo-live {
  width: clamp(78px, 20vw, 98px);
  border-radius: 18px;
  box-shadow: none;
}

.tc-fun-screen[data-screen="language"] .tc-language-body {
  justify-content: flex-start;
  gap: clamp(8px, 1.35dvh, 13px);
}

.tc-fun-screen[data-screen="language"] .tc-language-hero-elegant {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  max-height: none;
  margin: clamp(2px, 0.6dvh, 6px) 0 clamp(6px, 1dvh, 10px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(132, 99, 163, 0.12);
  border-radius: 30px;
  background: #ffffff;
  box-shadow:
    0 20px 48px rgba(106, 79, 130, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
  transform: translateZ(0);
}

.tc-fun-screen[data-screen="language"] .tc-hero-img-elegant {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: inherit;
  object-fit: cover;
}

.tc-screen.is-active .tc-language-hero-elegant {
  animation: tc-language-plate-float 5.2s ease-in-out infinite;
}

.tc-screen.is-active .tc-language-hero-elegant .tc-hero-img-elegant {
  animation: none;
}

.tc-fun-screen[data-screen="language"] .tc-kicker {
  padding: 6px 14px;
  border-radius: 999px;
  color: #4f3670;
  background: linear-gradient(135deg, rgba(144, 198, 63, 0.22), rgba(132, 99, 163, 0.1));
  box-shadow: 0 10px 22px rgba(106, 79, 130, 0.1);
  font-size: clamp(0.82rem, 2.8vw, 0.92rem);
}

.tc-language-prompt {
  margin: 0;
  color: #39294f;
  font-size: clamp(1rem, 3.8vw, 1.14rem);
  font-weight: 900;
  letter-spacing: 0;
}

.tc-fun-screen[data-screen="language"] .tc-language-grid {
  gap: clamp(9px, 1.5dvh, 12px);
  margin-top: clamp(4px, 0.9dvh, 8px);
}

.tc-fun-screen[data-screen="language"] .tc-language-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(5px, 1.6vw, 8px);
  width: 100%;
  margin: clamp(2px, 0.7dvh, 6px) 0 0;
}

.tc-fun-screen[data-screen="language"] .tc-language-pillars .tc-language-pillar {
  min-width: 0;
  min-height: clamp(42px, 5.9dvh, 52px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
  padding: 7px clamp(9px, 3vw, 13px);
  border: 1px solid rgba(132, 99, 163, 0.12);
  border-radius: 999px;
  color: #3b2d50;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 252, 0.92)),
    radial-gradient(circle at 12% 20%, rgba(144, 198, 63, 0.18), transparent 36%);
  box-shadow:
    0 14px 28px rgba(106, 79, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-size: clamp(0.78rem, 2.8vw, 0.9rem);
  font-weight: 900;
  white-space: nowrap;
}

.tc-fun-screen[data-screen="language"] .tc-language-pillars .tc-language-pillar i {
  width: clamp(30px, 8vw, 38px);
  height: clamp(30px, 8vw, 38px);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #4f3670;
  background: rgba(144, 198, 63, 0.28);
  font-size: clamp(0.82rem, 3vw, 0.98rem);
}

.tc-fun-screen[data-screen="language"] .tc-language-pillars .tc-language-pillar:nth-child(3) i {
  color: #fff;
  background: linear-gradient(135deg, #8463a3, #6a4f82);
}

.tc-fun-screen[data-screen="language"] .tc-language-pillars .tc-language-pillar:nth-child(5) i {
  color: #fff;
  background: linear-gradient(135deg, #6a4f82, #8463a3);
}

.tc-fun-screen[data-screen="language"] .tc-language-pillars .tc-language-pillar-label {
  line-height: 1;
}

.tc-fun-screen[data-screen="language"] .tc-pillar-sep {
  color: rgba(106, 79, 130, 0.62);
  font-weight: 900;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
}

.tc-brand-slide .tc-slide-head {
  width: 100%;
  min-height: clamp(44px, 6.5dvh, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(8px, 1.6dvh, 14px);
}

.tc-brand-slide .tc-slide-head .tc-kicker {
  min-width: clamp(86px, 24vw, 112px);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #4f3670;
  background:
    linear-gradient(135deg, rgba(144, 198, 63, 0.26), rgba(132, 99, 163, 0.12)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 26px rgba(106, 79, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-size: clamp(0.86rem, 3.3vw, 1rem);
  font-weight: 900;
}

.tc-brand-slide .tc-slide-head .tc-progress {
  min-height: 0;
  justify-content: flex-end;
  margin-inline-start: auto;
}

.tc-brand-slide .tc-screen-body {
  justify-content: flex-start;
  gap: clamp(8px, 1.4dvh, 12px);
}

.tc-brand-slide .tc-vision-plate {
  margin-top: 0;
}

.tc-brand-slide h1 {
  margin-top: clamp(2px, 0.7dvh, 6px);
}

.tc-fun-screen[data-screen="language"] .tc-language-option {
  position: relative;
  min-height: clamp(68px, 8.8dvh, 82px);
  padding: 12px 14px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 30px rgba(106, 79, 130, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.tc-fun-screen[data-screen="language"] .tc-language-option::before {
  content: "";
  position: absolute;
  inset-block: 14px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}

.tc-fun-screen[data-screen="language"] .tc-language-option.is-selected::before {
  background: #90c63f;
}

.tc-fun-screen[data-screen="language"] .tc-language-icon,
.tc-fun-screen[data-screen="language"] .tc-language-check {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 15px;
}

.tc-fun-screen[data-screen="language"] .tc-language-icon {
  color: #6a4f82;
  background: rgba(132, 99, 163, 0.12);
}

.tc-fun-screen[data-screen="language"] .tc-language-check {
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tc-fun-screen[data-screen="language"] .tc-language-option.is-selected .tc-language-check {
  opacity: 1;
  transform: scale(1);
}

.tc-fun-screen[data-screen="language"] .tc-language-main {
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  line-height: 1.1;
}

.tc-fun-screen[data-screen="language"] .tc-language-sub {
  margin-top: 3px;
  font-size: clamp(0.78rem, 2.8vw, 0.88rem);
}

.tc-language-hint {
  margin-top: clamp(2px, 0.6dvh, 6px) !important;
  color: rgba(45, 33, 64, 0.68);
  font-size: clamp(0.78rem, 2.7vw, 0.86rem);
}

@keyframes tc-language-plate-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-height: 720px) {
  .tc-fun-screen[data-screen="language"] .tc-logo-row {
    min-height: 76px;
  }

  .tc-fun-screen[data-screen="language"] .tc-language-option {
    min-height: 62px;
  }

  .tc-language-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-screen.is-active .tc-language-hero-elegant {
    animation: none !important;
  }
}

/* Wide heroes fill frames (no portrait letterboxing / side crop) */
.tc-fun-screen[data-screen="language"] .tc-language-hero-elegant {
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
}

.tc-fun-screen[data-screen="language"] .tc-hero-img-elegant {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tc-brand-slide .tc-vision-plate,
.tc-brand-slide-nutrition .tc-vision-plate,
.tc-brand-slide-care .tc-vision-plate,
.tc-brand-slide-welfare .tc-vision-plate {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  max-height: min(34dvh, 240px);
  padding: 0;
  overflow: hidden;
}

.tc-brand-slide .tc-vision-plate .tc-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: inherit;
  box-shadow: none;
}

.tc-brand-slide .tc-vision-badge {
  inset-inline-start: clamp(10px, 3vw, 16px);
  inset-inline-end: auto;
  bottom: clamp(10px, 2dvh, 16px);
}

.tc-screen.is-active .tc-vision-plate .tc-hero-img {
  animation: none;
}

@media (max-height: 720px) {
  .tc-brand-slide .tc-vision-plate,
  .tc-brand-slide-nutrition .tc-vision-plate,
  .tc-brand-slide-care .tc-vision-plate,
  .tc-brand-slide-welfare .tc-vision-plate {
    max-height: min(28dvh, 180px);
  }
}

/* ===== Value slide: package vs retail + golden + loyalty ===== */
.tc-value-slide {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(250, 204, 21, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 80%, rgba(111, 170, 40, 0.12), transparent 50%),
    linear-gradient(180deg, #fbf8ff 0%, #f4eef9 55%, #eef6e6 100%);
}

.tc-value-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  padding-inline: 0.35rem;
}

.tc-value-slide h1 {
  max-width: min(18ch, 100%);
  margin: 0.15rem 0 0;
  font-size: clamp(1.25rem, 5.2vw, 1.55rem);
  line-height: 1.25;
  color: #4a3560;
}

.tc-value-slide .tc-lead {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(0.88rem, 3.4vw, 0.98rem);
  color: #6b5a7a;
}

.tc-value-duel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.35rem;
  width: min(100%, 360px);
  margin: 0.15rem auto 0.25rem;
}

.tc-value-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.85rem 0.55rem;
  border-radius: 18px;
  min-height: 118px;
  transition: transform 0.35s ease;
}

.tc-value-side.is-retail {
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1.5px dashed #94a3b8;
  color: #64748b;
  opacity: 0.92;
  transform: scale(0.96);
}

.tc-value-side.is-pack {
  background: linear-gradient(155deg, #6faa28 0%, #5a9120 55%, #4d7c1a 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow:
    0 14px 28px rgba(79, 130, 26, 0.35),
    0 0 0 3px rgba(111, 170, 40, 0.18);
  transform: scale(1.04);
  z-index: 1;
}

.tc-value-side-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.tc-value-side.is-retail .tc-value-side-icon {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.tc-value-side.is-pack .tc-value-side-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.tc-value-side-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.9;
}

.tc-value-side-price {
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tc-value-side.is-retail .tc-value-side-price {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #94a3b8;
}

.tc-value-side-note {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

.tc-value-vs {
  display: grid;
  place-items: center;
  align-self: center;
  z-index: 2;
}

.tc-value-vs span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15 0%, #d97706 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.35);
}

.tc-value-save {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(100%, 340px);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.22), rgba(111, 170, 40, 0.18));
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #854d0e;
  font-size: clamp(0.72rem, 3vw, 0.82rem);
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.12);
}

.tc-value-save i {
  color: #d97706;
  flex-shrink: 0;
}

.tc-value-trust {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: min(100%, 360px);
  margin-top: 0.35rem;
}

.tc-value-trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  text-align: start;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(132, 99, 163, 0.12);
  box-shadow: 0 6px 16px rgba(74, 53, 96, 0.06);
}

.tc-value-trust-item.is-gold {
  background: linear-gradient(120deg, #fffbeb 0%, #fef9c3 100%);
  border-color: rgba(250, 204, 21, 0.45);
}

.tc-value-trust-item.is-loyalty {
  background: linear-gradient(120deg, #f5f0fa 0%, #ede4f5 100%);
  border-color: rgba(132, 99, 163, 0.22);
}

.tc-value-trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.tc-value-trust-item.is-gold .tc-value-trust-icon {
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #fff;
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.3);
}

.tc-value-trust-item.is-loyalty .tc-value-trust-icon {
  background: linear-gradient(135deg, #8463a3, #6a4f82);
  color: #fff;
  box-shadow: 0 6px 14px rgba(106, 79, 130, 0.28);
}

.tc-value-trust-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.tc-value-trust-copy strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #3f2f4f;
  line-height: 1.2;
}

.tc-value-trust-item.is-gold .tc-value-trust-copy strong {
  color: #854d0e;
}

.tc-value-trust-copy span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b5a7a;
  line-height: 1.35;
}

.tc-value-slide .tc-actions {
  margin-top: auto;
  padding-top: 8px;
  gap: 8px;
}

.tc-screen.is-active .tc-value-side.is-pack {
  animation: tc-value-pack-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-screen.is-active .tc-value-vs span {
  animation: tc-value-vs-pulse 2s ease-in-out 0.4s infinite;
}

.tc-screen.is-active .tc-value-save {
  animation: tc-value-save-shine 2.4s ease-in-out 0.6s infinite;
}

@keyframes tc-value-pack-pop {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes tc-value-vs-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.48);
  }
}

@keyframes tc-value-save-shine {
  0%,
  100% {
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.12);
  }
  50% {
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.22);
  }
}

@media (max-height: 720px) {
  .tc-value-side {
    min-height: 96px;
    padding: 0.65rem 0.45rem;
  }

  .tc-value-trust-item {
    padding: 0.55rem 0.7rem;
  }

  .tc-value-slide h1 {
    font-size: clamp(1.1rem, 4.6vw, 1.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-screen.is-active .tc-value-side.is-pack,
  .tc-screen.is-active .tc-value-vs span,
  .tc-screen.is-active .tc-value-save {
    animation: none !important;
  }
}

/* —— Choose pet (post-login species picker) —— */
.tc-choose-pet {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(167, 243, 208, 0.35), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 62%, #eef7f1 100%);
}

.tc-choose-pet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.15rem 0.35rem;
  margin-bottom: 0.15rem;
}

.tc-choose-pet-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.tc-choose-pet-brand img {
  width: 46px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.tc-choose-pet-account-btn {
  appearance: none;
  border: 1px solid rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #312e81;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(49, 46, 129, 0.08);
}

.tc-choose-pet-account-btn.dropdown-toggle::after {
  margin-inline-start: 0.15rem;
  opacity: 0.55;
}

.tc-choose-pet-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  color: #fff;
  font-size: 0.78rem;
}

.tc-choose-pet-account-name {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-choose-pet .tc-choose-pet-body {
  padding-top: 0.2rem;
  padding-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tc-choose-pet-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(167, 243, 208, 0.55);
  color: #5b21b6;
  font-weight: 800;
  font-size: 0.78rem;
}

.tc-choose-pet-title {
  text-align: center;
  position: relative;
  margin: 0 0 0.45rem;
  color: #1e1b4b;
  font-size: clamp(1.55rem, 6.4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tc-choose-pet-title::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin: 0.5rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.tc-choose-pet-lead {
  text-align: center;
  max-width: 22rem;
  margin: 0 auto;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
}

.tc-species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 0.65rem;
  width: 100%;
  max-width: 360px;
  margin: 1.15rem auto 0.65rem;
}

.tc-species-card {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.tc-species-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #f8f5f0;
  box-shadow:
    0 10px 24px rgba(28, 25, 23, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  border: 3px solid #fff;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: grid;
  place-items: center;
}

.tc-species-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tc-species-card:hover .tc-species-circle,
.tc-species-card:focus-visible .tc-species-circle {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.18);
  border-color: #ddd6fe;
  outline: none;
}

.tc-species-card:active .tc-species-circle {
  transform: scale(0.97);
}

.tc-species-name {
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  color: #1e1b4b;
}

.tc-choose-pet-pillars {
  display: flex;
  justify-content: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #6b7280;
}

.tc-choose-pet-pillars span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tc-choose-pet-pillars i {
  color: #ea580c;
}

@media (min-width: 420px) {
  .tc-species-circle {
    width: 96px;
    height: 96px;
  }
  .tc-species-name {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-species-circle {
    transition: none;
  }
}

/* ── Subtype picker (bird / small / fish / reptile) ── */
.tc-onboarding.is-subtype-picking .tc-choose-pet-body > .tc-choose-pet-kicker,
.tc-onboarding.is-subtype-picking .tc-choose-pet-body > .tc-choose-pet-title,
.tc-onboarding.is-subtype-picking .tc-choose-pet-body > .tc-choose-pet-lead {
  display: none;
}

.tc-subtype-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  animation: tc-subtype-in 0.28s ease-out;
}

.tc-subtype-panel[hidden] {
  display: none !important;
}

@keyframes tc-subtype-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tc-subtype-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: #6b4f82;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.15rem;
  cursor: pointer;
}

.tc-subtype-back:hover,
.tc-subtype-back:focus-visible {
  color: #8463a3;
  outline: none;
}

.tc-subtype-title {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 800;
  color: #2d1f3a;
  text-align: center;
}

.tc-subtype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.tc-subtype-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 7.25rem;
  padding: 0.7rem 0.45rem 0.85rem;
  border: 1.5px solid rgba(132, 99, 163, 0.18);
  border-radius: 1.1rem;
  background: linear-gradient(165deg, #fff 0%, #faf7fc 100%);
  color: #2d1f3a;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tc-subtype-card:hover,
.tc-subtype-card:focus-visible {
  border-color: #8463a3;
  box-shadow: 0 8px 22px rgba(132, 99, 163, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.tc-subtype-card:active {
  transform: translateY(0);
}

.tc-subtype-circle {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3eef7;
  box-shadow: inset 0 0 0 2px rgba(132, 99, 163, 0.12);
}

.tc-subtype-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tc-subtype-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(132, 99, 163, 0.12);
  color: #6b4f82;
  font-size: 1.35rem;
}

.tc-subtype-name {
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

@media (min-width: 420px) {
  .tc-subtype-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tc-subtype-circle,
  .tc-subtype-icon {
    width: 84px;
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-subtype-panel,
  .tc-subtype-card {
    animation: none;
    transition: none;
  }
}

/* -- Photo analysis entry + confirm (after choose_pet) -- */
.tc-photo-entry,
.tc-photo-confirm {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(196, 230, 120, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(132, 99, 163, 0.12), transparent 50%),
    linear-gradient(180deg, #fbf7ff 0%, #ffffff 48%, #f7fbef 100%);
}

.tc-photo-confirm.tc-screen {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tc-photo-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding-inline: 1.25rem;
  padding-bottom: 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
  width: 100%;
}

.tc-photo-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: #6a4f82;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.tc-photo-species-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(241, 232, 247, 0.95);
  border: 1px solid #eadff1;
  color: #4a3560;
  font-weight: 700;
  font-size: 0.92rem;
}

.tc-photo-species-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}

.tc-photo-species-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-photo-capture-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 11.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1.35rem;
  border: 2px dashed rgba(132, 99, 163, 0.45);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(241, 232, 247, 0.65));
  box-shadow: 0 12px 32px rgba(106, 79, 130, 0.08);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-photo-capture-card:hover,
.tc-photo-capture-card:focus-within {
  border-color: #8463a3;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(106, 79, 130, 0.14);
}

.tc-photo-capture-visual {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8463a3, #c4e678);
  color: #fff;
  font-size: 1.55rem;
  margin-bottom: 0.25rem;
  animation: tc-photo-pulse 2.4s ease-in-out infinite;
}

@keyframes tc-photo-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(132, 99, 163, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(132, 99, 163, 0); }
}

.tc-photo-capture-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #3d2a52;
}

.tc-photo-capture-hint {
  font-size: 0.88rem;
  color: #7a6a8c;
}

.tc-photo-source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.tc-photo-source-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 9.5rem;
  padding: 1.15rem 0.85rem;
  border-radius: 1.25rem;
  border: 1px solid #eadff1;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(241, 232, 247, 0.55));
  box-shadow: 0 10px 28px rgba(106, 79, 130, 0.08);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-photo-source-card:hover,
.tc-photo-source-card:focus-visible {
  border-color: #8463a3;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(106, 79, 130, 0.14);
  outline: none;
}

.tc-photo-source-card:active {
  transform: translateY(0);
}

.tc-photo-source-visual {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.tc-photo-source-card--camera .tc-photo-source-visual {
  background: linear-gradient(135deg, #8463a3, #6a4f82);
  animation: tc-photo-pulse 2.4s ease-in-out infinite;
}

.tc-photo-source-card--gallery .tc-photo-source-visual {
  background: linear-gradient(135deg, #9bbf4a, #c4e678);
  color: #3d2a52;
}

.tc-photo-source-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: #3d2a52;
  line-height: 1.3;
}

.tc-photo-source-hint {
  font-size: 0.78rem;
  color: #7a6a8c;
  line-height: 1.35;
  max-width: 9.5rem;
}

@media (max-width: 380px) {
  .tc-photo-source-grid {
    grid-template-columns: 1fr;
  }

  .tc-photo-source-card {
    min-height: 7.5rem;
    flex-direction: row;
    justify-content: flex-start;
    text-align: start;
    gap: 0.85rem;
    padding-inline: 1rem;
  }

  .tc-photo-source-hint {
    max-width: none;
  }
}

/* —— AI TwinCats talk hero + review + spotlight (pro polish) —— */
.tc-photo-entry .tc-photo-body {
  gap: 0.85rem;
  padding-top: 0.15rem;
}

.tc-photo-entry .tc-choose-pet-title {
  margin: 0;
  letter-spacing: -0.02em;
}

.tc-photo-entry .tc-choose-pet-lead {
  margin: 0;
  max-width: 20rem;
  color: #6a5780;
  line-height: 1.45;
}

.tc-talk-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin: 0.15rem 0 0.35rem;
}

.tc-talk-cta {
  position: relative;
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 5.75rem;
  height: 5.75rem;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #7b52c4 0%, #5a379e 48%, #45287a 100%);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(74, 42, 130, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
  z-index: 2;
}

.tc-talk-cta-glow {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(196, 230, 120, 0.38), transparent 68%);
  opacity: 0.65;
  animation: tc-talk-glow 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.tc-talk-cta-ring {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 2px solid rgba(196, 230, 120, 0.55);
  opacity: 0;
  pointer-events: none;
}

.tc-talk-cta-core {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.35rem;
  backdrop-filter: blur(2px);
}

.tc-talk-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.tc-talk-cta-label {
  font-size: 1.02rem;
  font-weight: 800;
  color: #3d2a55;
  letter-spacing: -0.01em;
}

.tc-talk-status {
  margin: 0;
  font-size: 0.86rem;
  color: #7a6a8c;
  font-weight: 560;
  line-height: 1.35;
  max-width: 16rem;
}

.tc-talk-cta:hover,
.tc-talk-cta:focus-visible {
  transform: translateY(-2px) scale(1.03);
  outline: none;
  box-shadow:
    0 16px 34px rgba(74, 42, 130, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tc-talk-cta:active {
  transform: scale(0.98);
}

.tc-talk-cta.is-listening {
  background: linear-gradient(145deg, #6db343 0%, #4f922f 100%);
}

.tc-talk-cta.is-listening .tc-talk-cta-ring {
  opacity: 1;
  animation: tc-talk-ring 1.25s ease-out infinite;
}

.tc-talk-cta.is-thinking {
  background: linear-gradient(145deg, #8a68c4 0%, #6342a0 100%);
}

.tc-talk-cta.is-thinking .tc-talk-cta-core {
  animation: tc-talk-think 1s ease-in-out infinite;
}

.tc-talk-cta.is-speaking {
  background: linear-gradient(145deg, #5b86d6 0%, #3f63b0 100%);
}

.tc-talk-partial {
  margin: 0;
  max-width: 22rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 92, 168, 0.14);
  color: #4a3470;
  font-size: 0.86rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(88, 56, 130, 0.06);
}

.tc-talk-review {
  width: 100%;
  margin-top: 0.35rem;
  padding: 1.05rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(124, 92, 168, 0.12);
  box-shadow: 0 14px 32px rgba(88, 56, 130, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 3;
  text-align: start;
}

.tc-talk-review-title {
  margin: 0;
  font-size: 1.12rem;
  color: #3d2a55;
}

.tc-talk-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tc-talk-review-list li {
  padding: 0.55rem 0.8rem;
  border-radius: 0.85rem;
  background: #faf7ff;
  color: #4a3470;
  font-size: 0.92rem;
  border: 1px solid rgba(124, 92, 168, 0.08);
}

.tc-talk-package {
  padding: 0.95rem;
  border-radius: 1.05rem;
  background:
    linear-gradient(145deg, rgba(196, 230, 120, 0.18), rgba(255, 255, 255, 0.95) 45%);
  border: 1px solid rgba(124, 92, 168, 0.12);
}

.tc-talk-package-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  color: #7a6a8c;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tc-talk-package-name {
  display: block;
  font-size: 1.08rem;
  color: #3d2a55;
}

.tc-talk-package-price {
  display: inline-block;
  margin-top: 0.3rem;
  font-weight: 800;
  color: #4f922f;
  font-size: 1.15rem;
}

.tc-talk-package-reason {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: #5c4a70;
  line-height: 1.45;
}

.tc-talk-review-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tc-talk-continue {
  width: 100%;
  min-height: 3.15rem;
  font-size: 1.05rem;
  border-radius: 999px;
  animation: tc-talk-cta-pulse 1.8s ease-in-out infinite;
}

.tc-spotlight-scrim {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 42, 0.14);
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.tc-spotlight-scrim.is-on {
  opacity: 1;
  visibility: visible;
}

.tc-spotlight-target.is-hint {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(196, 230, 120, 0.45), 0 10px 24px rgba(79, 47, 140, 0.14);
}

.tc-spotlight-target.is-spotlighted {
  position: relative;
  z-index: 45;
  box-shadow: 0 0 0 4px rgba(196, 230, 120, 0.55), 0 12px 28px rgba(79, 47, 140, 0.22);
}

@keyframes tc-talk-glow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

@keyframes tc-talk-ring {
  0% { transform: scale(0.96); opacity: 0.75; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes tc-talk-think {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.75; }
}

@keyframes tc-talk-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122, 79, 181, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(122, 79, 181, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tc-talk-cta-glow,
  .tc-talk-cta-ring,
  .tc-talk-continue,
  .tc-talk-cta.is-thinking .tc-talk-cta-core {
    animation: none;
  }
}

/* iPhone / Safari / Chrome mobile — layout + safe areas */
.tc-photo-entry.tc-screen {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.tc-photo-entry .tc-photo-body {
  max-width: min(28rem, 100%);
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

.tc-photo-entry .tc-spotlight-scrim[hidden],
.tc-photo-entry .tc-spotlight-scrim:not(.is-on) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tc-guide-panel {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 1.4rem;
  background: #ffffff;
  border: 1px solid rgba(124, 92, 168, 0.12);
  box-shadow: 0 12px 30px rgba(88, 56, 130, 0.07);
  text-align: start;
}

/* —— Live call overlay —— */
.tc-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1.1rem max(1.25rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 28% 18%, rgba(196, 230, 120, 0.3), transparent 42%),
    radial-gradient(circle at 78% 78%, rgba(132, 99, 163, 0.28), transparent 48%),
    rgba(36, 24, 54, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tc-call-overlay[hidden] {
  display: none !important;
}

.tc-call-card {
  width: min(100%, 22.5rem);
  padding: 1.45rem 1.25rem 1.35rem;
  border-radius: 1.65rem;
  background: linear-gradient(165deg, #ffffff 0%, #faf6ff 52%, #f3fae8 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 28px 64px rgba(45, 33, 64, 0.34);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.tc-call-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7a6a8c;
  text-transform: uppercase;
}

.tc-call-title {
  margin: 0;
  font-size: 1.35rem;
  color: #3d2a55;
}

.tc-call-customer {
  margin: 0;
  font-size: 0.9rem;
  color: #5b3d8a;
  font-weight: 650;
}

.tc-call-orb {
  width: 6.4rem;
  height: 6.4rem;
  margin: 0.55rem 0 0.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.7rem;
  background: linear-gradient(145deg, #7b52c4 0%, #5a379e 55%, #45287a 100%);
  box-shadow: 0 14px 32px rgba(74, 42, 130, 0.32);
  position: relative;
}

.tc-call-orb.is-listening {
  background: linear-gradient(145deg, #6db343 0%, #4f922f 100%);
  animation: tc-call-pulse 1.4s ease-in-out infinite;
}

.tc-call-orb.is-speaking {
  background: linear-gradient(145deg, #5b86d6 0%, #3f63b0 100%);
}

.tc-call-orb.is-thinking {
  background: linear-gradient(145deg, #8a68c4 0%, #6342a0 100%);
}

.tc-call-status {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #4a3470;
  min-height: 1.4em;
}

.tc-call-transcript {
  margin: 0;
  max-width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(124, 92, 168, 0.12);
  color: #4a3470;
  font-size: 0.86rem;
  line-height: 1.4;
}

.tc-call-meter {
  width: 70%;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(124, 92, 168, 0.12);
  overflow: hidden;
}

.tc-call-meter span {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #90c63f, #7b52c4);
  transition: width 0.12s linear;
}

.tc-call-hangup {
  appearance: none;
  margin-top: 0.55rem;
  border: 0;
  cursor: pointer;
  min-width: 11rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(145deg, #c24b5a 0%, #9e2f3f 100%);
  box-shadow: 0 10px 22px rgba(158, 47, 63, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.tc-call-hangup:active {
  transform: scale(0.98);
}

@keyframes tc-call-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 32px rgba(79, 146, 47, 0.28); }
  50% { transform: scale(1.05); box-shadow: 0 18px 36px rgba(79, 146, 47, 0.4); }
}

.tc-onboarding.is-in-call .tc-photo-entry {
  pointer-events: auto;
}

.tc-onboarding.is-in-call .tc-guide-alt {
  opacity: 0.55;
}

.tc-guide-composer {
  padding-bottom: max(0.15rem, env(safe-area-inset-bottom));
}

.tc-talk-cta,
.tc-talk-logo-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@supports (-webkit-touch-callout: none) {
  .tc-talk-status {
    max-width: 18rem;
  }
}

/* —— Inline logo call control (no fullscreen overlay) —— */
.tc-photo-entry.tc-screen {
  padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
  padding-inline: max(0.85rem, env(safe-area-inset-left, 0px)) max(0.85rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.tc-photo-entry .tc-choose-pet-topbar {
  position: relative;
  z-index: 5;
  padding: 0.35rem 0.1rem 0.45rem;
  margin-bottom: 0.35rem;
  min-height: 3.75rem;
}

.tc-talk-logo-btn {
  position: relative;
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 4.15rem;
  height: 4.15rem;
  padding: 0;
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 24px rgba(74, 42, 130, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  overflow: visible;
}

.tc-talk-logo-btn:hover,
.tc-talk-logo-btn:focus-visible {
  transform: translateY(-1px) scale(1.03);
  outline: none;
  box-shadow:
    0 14px 28px rgba(74, 42, 130, 0.2),
    0 0 0 3px rgba(196, 230, 120, 0.35);
}

.tc-talk-logo-btn:active {
  transform: scale(0.97);
}

.tc-talk-logo-img {
  width: 2.85rem;
  height: 2.95rem;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 0.7rem;
}

.tc-talk-logo-glow {
  position: absolute;
  inset: -12px;
  border-radius: 1.6rem;
  background: radial-gradient(circle, rgba(196, 230, 120, 0.42), transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.2s ease;
}

.tc-talk-logo-ring {
  position: absolute;
  inset: -7px;
  border-radius: 1.45rem;
  border: 2px solid rgba(122, 79, 181, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.tc-talk-logo-meter {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0.28rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(122, 79, 181, 0.12);
  overflow: hidden;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tc-talk-logo-meter i,
.tc-talk-logo-meter [data-call-meter] {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #90c63f, #7b52c4);
  transform: scaleX(0.12);
  transform-origin: center;
  transition: transform 0.1s linear;
}

.tc-talk-logo-badge {
  position: absolute;
  top: -0.25rem;
  inset-inline-end: -0.25rem;
  z-index: 4;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  color: #fff;
  background: #7b52c4;
  box-shadow: 0 4px 10px rgba(74, 42, 130, 0.28);
}

.tc-talk-logo-btn.is-listening .tc-talk-logo-glow,
.tc-talk-logo-btn.is-speaking .tc-talk-logo-glow,
.tc-talk-logo-btn.is-thinking .tc-talk-logo-glow {
  opacity: 1;
  animation: tc-talk-glow 2.2s ease-in-out infinite;
}

.tc-talk-logo-btn.is-listening .tc-talk-logo-ring {
  opacity: 1;
  border-color: rgba(144, 198, 63, 0.75);
  animation: tc-talk-ring 1.25s ease-out infinite;
}

.tc-talk-logo-btn.is-speaking .tc-talk-logo-ring {
  opacity: 1;
  border-color: rgba(123, 82, 196, 0.7);
  animation: tc-talk-ring 1.05s ease-out infinite;
}

.tc-talk-logo-btn.is-thinking .tc-talk-logo-ring {
  opacity: 0.85;
  border-color: rgba(123, 82, 196, 0.45);
}

.tc-talk-logo-btn.is-listening .tc-talk-logo-meter,
.tc-talk-logo-btn.is-speaking .tc-talk-logo-meter,
.tc-talk-logo-btn.is-thinking .tc-talk-logo-meter {
  opacity: 1;
}

.tc-talk-logo-btn.is-listening .tc-talk-logo-badge {
  background: #5e9e2e;
}

.tc-talk-logo-btn.is-speaking .tc-talk-logo-badge {
  background: #7b52c4;
}

.tc-talk-logo-btn.is-thinking .tc-talk-logo-badge {
  background: #6a4f82;
}

.tc-onboarding.is-in-call .tc-talk-logo-btn {
  box-shadow:
    0 12px 28px rgba(74, 42, 130, 0.22),
    0 0 0 3px rgba(144, 198, 63, 0.28);
}

.tc-talk-hero--inline {
  width: 100%;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0.1rem 0 0.35rem;
}

.tc-talk-start-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-align: start;
  padding: 0.42rem 0.7rem 0.42rem 0.45rem;
  min-height: 2.35rem;
  border-radius: 999px;
  background: #1f7a5c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 122, 92, 0.2);
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
  position: relative;
}

.tc-talk-orb {
  display: none !important;
}

.tc-talk-waves {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 0.95rem;
  margin-inline-start: 0.15rem;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.1rem;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0;
  pointer-events: none;
}

.tc-talk-waves > span,
.tc-talk-waves > i {
  display: block;
  width: 0.12rem;
  height: var(--h, 40%);
  min-height: 18%;
  max-height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.85;
  transform-origin: center bottom;
  transition: height 80ms linear;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.tc-talk-start-btn.is-idle .tc-talk-waves > span,
.tc-talk-start-btn.is-idle .tc-talk-waves > i {
  animation: tc-talk-wave-idle 1.8s ease-in-out infinite;
}
.tc-talk-start-btn.is-idle .tc-talk-waves > :nth-child(2) { animation-delay: 0.1s; }
.tc-talk-start-btn.is-idle .tc-talk-waves > :nth-child(3) { animation-delay: 0.2s; }
.tc-talk-start-btn.is-idle .tc-talk-waves > :nth-child(4) { animation-delay: 0.12s; }
.tc-talk-start-btn.is-idle .tc-talk-waves > :nth-child(5) { animation-delay: 0s; }

.tc-talk-start-btn.is-listening .tc-talk-waves > span,
.tc-talk-start-btn.is-listening .tc-talk-waves > i,
.tc-talk-start-btn.is-speaking .tc-talk-waves > span,
.tc-talk-start-btn.is-speaking .tc-talk-waves > i,
.tc-talk-start-btn.is-thinking .tc-talk-waves > span,
.tc-talk-start-btn.is-thinking .tc-talk-waves > i {
  opacity: 1;
}

@keyframes tc-talk-wave-idle {
  0%, 100% { height: calc(var(--h, 40%) * 0.7); opacity: 0.6; }
  50% { height: var(--h, 40%); opacity: 1; }
}

.tc-talk-start-btn:hover,
.tc-talk-start-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 6px 14px rgba(31, 122, 92, 0.28);
}

.tc-talk-start-btn:active {
  transform: scale(0.985);
}

.tc-talk-start-btn-icon {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  border: 0;
  outline: none;
  box-shadow: none;
}

.tc-talk-start-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.tc-talk-start-btn .tc-talk-cta-label {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.tc-talk-start-btn .tc-talk-status {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  line-height: 1.2;
  margin: 0;
  max-width: none;
}

.tc-talk-start-btn.is-listening {
  background: #24956f;
}

.tc-talk-start-btn.is-speaking {
  background: #3b6cb0;
}

.tc-talk-start-btn.is-thinking {
  background: #5a6370;
}

.tc-onboarding.is-in-call .tc-talk-start-btn.is-idle,
.tc-talk-start-btn[aria-pressed="true"].is-idle {
  background: #c24b4b;
}

/* Compact live-call layout — more room for chat */
.tc-photo-entry.is-live-call .tc-choose-pet-kicker,
.tc-photo-entry.is-live-call .tc-choose-pet-title,
.tc-photo-entry.is-live-call .tc-choose-pet-lead,
.tc-photo-entry.is-live-call .tc-photo-species-chip,
.tc-photo-entry.is-live-call .tc-guide-alt,
.tc-photo-entry.is-live-call .tc-photo-disclaimer {
  display: none !important;
}

.tc-photo-entry.is-live-call .tc-photo-body {
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.tc-photo-entry.is-live-call .tc-talk-hero {
  position: sticky;
  top: 0;
  z-index: 6;
}

.tc-photo-entry.is-live-call .tc-guide-panel {
  min-height: min(58dvh, 28rem);
}

.tc-photo-entry.is-live-call .tc-guide-thread {
  min-height: 11rem;
  max-height: min(42dvh, 18rem);
}

.tc-photo-entry.tc-screen {
  padding-top: max(1.15rem, calc(env(safe-area-inset-top, 0px) + 0.7rem));
}

.tc-photo-entry .tc-choose-pet-topbar {
  padding-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.tc-talk-hero--inline {
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .tc-talk-start-btn.is-idle .tc-talk-waves > span,
  .tc-talk-start-btn.is-idle .tc-talk-waves > i,
  .tc-talk-start-btn.is-listening .tc-talk-waves > span,
  .tc-talk-start-btn.is-listening .tc-talk-waves > i,
  .tc-talk-start-btn.is-speaking .tc-talk-waves > span,
  .tc-talk-start-btn.is-speaking .tc-talk-waves > i,
  .tc-talk-start-btn.is-thinking .tc-talk-waves > span,
  .tc-talk-start-btn.is-thinking .tc-talk-waves > i {
    animation: none;
  }
}

.tc-talk-live-line {
  margin: 0.15rem auto 0;
  max-width: 24rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(124, 92, 168, 0.12);
  color: #3d2d52;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: start;
}

.tc-guide-panel.is-live-call {
  border-color: rgba(144, 198, 63, 0.35);
  box-shadow:
    0 14px 34px rgba(88, 56, 130, 0.1),
    0 0 0 1px rgba(144, 198, 63, 0.18);
}

.tc-guide-panel.is-live-call .tc-guide-live-dot {
  background: #5e9e2e;
  box-shadow: 0 0 0 4px rgba(94, 158, 46, 0.18);
  animation: tc-talk-glow 1.6s ease-in-out infinite;
}

.tc-photo-entry .tc-photo-body {
  padding-top: 0.35rem;
  gap: 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
  .tc-talk-logo-glow,
  .tc-talk-logo-ring,
  .tc-guide-panel.is-live-call .tc-guide-live-dot {
    animation: none;
  }
}

.tc-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;
}

.tc-guide-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.tc-guide-avatar {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  color: #5b3d8a;
  background: linear-gradient(145deg, #f0e8ff, #eef8d8);
  flex-shrink: 0;
  font-size: 1rem;
}

.tc-guide-head-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  text-align: start;
  flex: 1;
  min-width: 0;
}

.tc-guide-head-copy strong {
  font-size: 0.98rem;
  color: #3d2a55;
}

.tc-guide-head-copy span {
  font-size: 0.74rem;
  color: #8a7a9c;
  line-height: 1.35;
}

.tc-guide-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #6db343;
  box-shadow: 0 0 0 4px rgba(109, 179, 67, 0.18);
  flex-shrink: 0;
}

.tc-guide-thread {
  max-height: min(42vh, 18rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.2rem 0.05rem;
  scroll-behavior: smooth;
}

.tc-guide-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  max-width: 94%;
  animation: tc-guide-in 0.28s ease both;
}

.tc-guide-msg--assistant {
  align-self: flex-start;
}

.tc-guide-msg--user {
  align-self: flex-end;
}

.tc-guide-msg-avatar {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: #5b3d8a;
  background: #f0e8ff;
  flex-shrink: 0;
}

.tc-guide-bubble {
  padding: 0.7rem 0.9rem;
  border-radius: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: start;
}

.tc-guide-msg--assistant .tc-guide-bubble {
  background: #faf7ff;
  color: #3d2a55;
  border: 1px solid rgba(124, 92, 168, 0.1);
  border-end-start-radius: 0.35rem;
}

.tc-guide-msg--user .tc-guide-bubble {
  background: linear-gradient(135deg, #6f46b5, #54358f);
  color: #fff;
  border-end-end-radius: 0.35rem;
}

.tc-guide-msg.is-pending .tc-guide-bubble {
  color: #8a7a9c;
  font-style: italic;
}

@keyframes tc-guide-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.tc-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tc-guide-chip {
  appearance: none;
  border: 1px solid rgba(124, 92, 168, 0.18);
  background: #fff;
  color: #4a3470;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 2.4rem;
}

.tc-guide-chip:hover,
.tc-guide-chip:focus-visible {
  background: #f6f0ff;
  border-color: rgba(124, 92, 168, 0.35);
  outline: none;
}

.tc-guide-chip:active {
  transform: scale(0.97);
}

.tc-guide-composer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: #f7f4fb;
  border: 1px solid rgba(124, 92, 168, 0.12);
}

.tc-guide-attach,
.tc-guide-send {
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.tc-guide-attach {
  background: #fff;
  color: #5b3d8a;
  border: 1px solid rgba(124, 92, 168, 0.12);
}

.tc-guide-send {
  background: linear-gradient(135deg, #6f46b5, #54358f);
  color: #fff;
}

.tc-guide-attach:hover,
.tc-guide-send:hover {
  transform: scale(1.04);
}

.tc-guide-input-wrap {
  flex: 1;
  min-width: 0;
}

.tc-guide-input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: #3d2a55;
  padding: 0.5rem 0.25rem;
  outline: none;
}

.tc-guide-alt {
  width: 100%;
  margin-top: 0.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(124, 92, 168, 0.2);
  padding: 0.1rem 0.85rem 0.85rem;
}

.tc-guide-alt-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #6a4f82;
}

.tc-guide-alt-summary::-webkit-details-marker {
  display: none;
}

.tc-guide-alt[open] {
  border-style: solid;
  background: #fff;
}

.tc-guide-alt .tc-photo-source-grid {
  margin-top: 0.2rem;
}

.tc-guide-alt .tc-photo-tips {
  margin-top: 0.75rem;
}

.tc-guide-alt .tc-photo-actions {
  margin-top: 0.5rem;
}

.tc-photo-entry .tc-photo-disclaimer {
  margin-top: 0.15rem;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .tc-guide-msg {
    animation: none;
  }
}


.tc-photo-tips {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  width: 100%;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tc-photo-tips li {
  position: relative;
  padding-inline-start: 1.35rem;
  font-size: 0.88rem;
  color: #5c4a70;
  line-height: 1.45;
}

.tc-photo-tips li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.15rem;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #c4e678;
  box-shadow: 0 0 0 3px rgba(196, 230, 120, 0.35);
}

.tc-photo-disclaimer {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #8a7a9a;
  line-height: 1.4;
  max-width: 22rem;
}

.tc-photo-status {
  margin: 0;
  font-weight: 700;
  color: #8463a3;
  font-size: 0.92rem;
}

.tc-photo-actions {
  width: 100%;
  margin-top: 0.5rem;
  gap: 0.55rem;
}

.tc-photo-actions .tc-btn {
  width: 100%;
}

.tc-photo-confirm {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tc-photo-confirm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.9rem 0.4rem;
  flex-shrink: 0;
}

.tc-photo-confirm-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--tc-border);
  box-shadow: 0 4px 12px rgba(106, 79, 130, 0.08);
  flex-shrink: 0;
  text-decoration: none;
}

.tc-photo-confirm-brand img {
  width: 30px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.tc-photo-confirm-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(144, 198, 63, 0.16);
  color: #3f6b12;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tc-photo-body--confirm {
  gap: 0.6rem;
  max-width: 100%;
  padding-inline: 0.9rem;
  padding-top: 0.2rem;
  padding-bottom: 0.55rem;
  align-items: stretch;
  text-align: start;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tc-photo-result-hero,
.tc-photo-result-hero--stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tc-photo-preview--banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  max-height: 11rem;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--tc-border);
  background:
    linear-gradient(160deg, #f7f1fb 0%, #eef6e4 100%);
  box-shadow: 0 10px 24px rgba(106, 79, 130, 0.1);
}

.tc-photo-preview--banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.tc-photo-preview--banner .tc-photo-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8463a3;
  font-size: 2rem;
}

.tc-photo-result-badge--on-photo {
  position: absolute;
  inset-block-start: 0.55rem;
  inset-inline-start: 0.55rem;
  margin: 0;
  box-shadow: 0 6px 14px rgba(45, 33, 64, 0.12);
  backdrop-filter: blur(4px);
}

.tc-photo-result-hero--stack .tc-photo-result-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.1rem;
  text-align: start;
}

.tc-photo-confirm .tc-photo-confirm-title,
.tc-photo-confirm h1.tc-photo-confirm-title {
  margin: 0;
  max-width: none;
  width: 100%;
  color: var(--tc-ink);
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: 0;
}

.tc-onboarding[dir="ltr"] .tc-photo-confirm h1.tc-photo-confirm-title {
  max-width: none;
}

.tc-photo-result-lead {
  margin: 0;
  color: var(--tc-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 600;
}

.tc-photo-preview {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 2px solid #eadff1;
  background:
    linear-gradient(160deg, #f7f1fb 0%, #eef6e4 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(106, 79, 130, 0.12);
}

.tc-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.tc-photo-preview-fallback {
  color: #8463a3;
  font-size: 2rem;
}

.tc-photo-result-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  text-align: start;
}

.tc-photo-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(144, 198, 63, 0.16);
  color: #3f6b12;
  font-size: 0.72rem;
  font-weight: 800;
}

.tc-photo-confidence {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.tc-photo-confidence-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--tc-muted);
}

.tc-photo-confidence-top strong {
  color: var(--tc-ink);
  font-weight: 800;
}

.tc-photo-confidence-track {
  height: 0.36rem;
  border-radius: 999px;
  background: rgba(132, 99, 163, 0.12);
  overflow: hidden;
}

.tc-photo-confidence-fill {
  display: block;
  height: 100%;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8463a3, #90c63f);
  transition: width 0.45s ease;
}

.tc-photo-confidence[data-tone="high"] .tc-photo-confidence-fill {
  background: linear-gradient(90deg, #6a9d2f, #90c63f);
}

.tc-photo-confidence[data-tone="mid"] .tc-photo-confidence-fill {
  background: linear-gradient(90deg, #c98a2e, #f2a23a);
}

.tc-photo-confidence[data-tone="low"] .tc-photo-confidence-fill {
  background: linear-gradient(90deg, #8463a3, #b39bc8);
}

.tc-photo-insight {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--tc-border);
  text-align: start;
  box-shadow: 0 6px 16px rgba(106, 79, 130, 0.05);
}

.tc-photo-insight-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  color: #8b560f;
  background: #fff4df;
  font-size: 0.85rem;
}

.tc-photo-insight-text {
  margin: 0;
  color: var(--tc-ink);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-photo-care-hints {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(144, 198, 63, 0.1), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(144, 198, 63, 0.28);
  text-align: start;
}

.tc-photo-care-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #3f6b12;
}

.tc-photo-care-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.tc-photo-care-pill {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(144, 198, 63, 0.22);
  color: var(--tc-ink);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
}

.tc-photo-care-list {
  display: none;
}

.tc-photo-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: start;
}

.tc-photo-fields-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--tc-muted);
}

.tc-photo-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.tc-photo-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.65rem 0.65rem 0.7rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--tc-border);
  box-shadow: 0 4px 12px rgba(106, 79, 130, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tc-photo-field--span2 {
  grid-column: 1 / -1;
}

.tc-photo-field.is-picked {
  transform: scale(0.985);
  border-color: rgba(132, 99, 163, 0.45);
}

.tc-photo-field:focus-within {
  border-color: rgba(132, 99, 163, 0.55);
  box-shadow: 0 8px 18px rgba(106, 79, 130, 0.1);
}

.tc-photo-field--high {
  border-color: rgba(144, 198, 63, 0.35);
}

.tc-photo-field--mid {
  border-color: rgba(242, 162, 58, 0.35);
}

.tc-photo-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.tc-photo-field-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  color: #3d2a52;
  font-size: 0.8rem;
  min-width: 0;
}

.tc-photo-field-title i {
  display: none;
}

.tc-photo-field-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.45rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #f1e8f7, #fff);
  border: 1px solid var(--tc-border);
  color: var(--tc-purple);
  font-size: 0.68rem;
  flex-shrink: 0;
}

.tc-photo-field-conf {
  font-size: 0.65rem;
  font-weight: 700;
  color: #8463a3;
  background: #f1e8f7;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tc-photo-field-conf--high {
  color: #3f6b12;
  background: rgba(144, 198, 63, 0.18);
}

.tc-photo-field-conf--mid {
  color: #8b560f;
  background: #fff4df;
}

.tc-photo-field-conf--low {
  color: #6a6074;
  background: #f3eef7;
}

.tc-photo-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tc-photo-chip {
  appearance: none;
  border: 1px solid #eadff1;
  background: #faf7fd;
  color: #4a3560;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

.tc-photo-chip:hover,
.tc-photo-chip:focus-visible {
  border-color: rgba(132, 99, 163, 0.45);
  background: #fff;
  outline: none;
}

.tc-photo-chip:active {
  transform: scale(0.96);
}

.tc-photo-chip.is-selected {
  background: linear-gradient(135deg, #8463a3, #6a4f82);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(106, 79, 130, 0.22);
}

.tc-photo-field-select {
  display: none;
}

.tc-photo-confirm .tc-photo-disclaimer {
  font-size: 0.72rem;
  margin: 0;
  text-align: center;
}

.tc-photo-actions--dock {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(251, 247, 255, 0.2), #fbf7ff 28%);
  border-top: 1px solid rgba(234, 223, 241, 0.9);
  box-shadow: 0 -8px 24px rgba(106, 79, 130, 0.06);
  z-index: 5;
}

.tc-photo-actions--dock .tc-btn-primary,
.tc-photo-actions--dock .tc-btn-ghost {
  min-height: 2.45rem;
}

.tc-photo-actions--dock .tc-btn-primary {
  width: 100%;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 0.95rem;
}

.tc-photo-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.tc-photo-actions-row .tc-btn-ghost {
  width: 100%;
  min-height: 2.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 0.85rem;
  padding-inline: 0.45rem;
}

.tc-photo-confirm .tc-photo-actions:not(.tc-photo-actions--dock) {
  display: none;
}

@media (max-width: 420px) {
  .tc-photo-preview--banner {
    max-height: 9.75rem;
    aspect-ratio: 16 / 10;
  }

  .tc-photo-confirm .tc-photo-confirm-title,
  .tc-photo-confirm h1.tc-photo-confirm-title {
    font-size: 1.02rem;
  }

  .tc-photo-chip {
    font-size: 0.7rem;
    padding: 0.34rem 0.55rem;
  }

  .tc-photo-actions--dock {
    padding-inline: 0.75rem;
  }

  .tc-photo-actions--dock .tc-btn-primary {
    min-height: 2.45rem;
  }

  .tc-photo-actions-row .tc-btn-ghost {
    min-height: 2.15rem;
  }
}

@media (min-width: 420px) {
  .tc-photo-care-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tc-onboarding.is-loading .tc-photo-capture-card,
.tc-onboarding.is-loading .tc-photo-source-card {
  opacity: 0.7;
  pointer-events: none;
}

/* Fun scan overlay + reveal */
.tc-photo-scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 230, 120, 0.28), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(132, 99, 163, 0.22), transparent 45%),
    rgba(45, 33, 64, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: tc-photo-overlay-in 280ms ease both;
}

.tc-photo-scan-overlay[hidden] {
  display: none !important;
}

.tc-photo-scan-card {
  width: min(100%, 22rem);
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(165deg, #ffffff 0%, #fbf7ff 55%, #f4fbe8 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(45, 33, 64, 0.28);
  text-align: center;
  transform-origin: center;
  animation: tc-photo-scan-card-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-photo-scan-preview-wrap {
  position: relative;
  width: 9.25rem;
  height: 9.25rem;
  margin: 0 auto 1rem;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 3px solid rgba(144, 198, 63, 0.55);
  background: #f1e8f7;
  box-shadow:
    0 0 0 6px rgba(144, 198, 63, 0.12),
    0 12px 28px rgba(106, 79, 130, 0.18);
}

.tc-photo-scan-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  display: block;
  background: linear-gradient(160deg, #f7f1fb 0%, #eef6e4 100%);
}

.tc-photo-scan-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tc-purple);
  font-size: 2rem;
}

.tc-photo-scan-beam {
  position: absolute;
  inset-inline: -10%;
  height: 28%;
  top: -30%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(196, 230, 120, 0.55),
    transparent
  );
  animation: tc-photo-scan-beam 1.6s ease-in-out infinite;
  pointer-events: none;
}

.tc-photo-scan-orbit {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(132, 99, 163, 0.35);
  animation: tc-photo-orbit 4.5s linear infinite;
  pointer-events: none;
}

.tc-photo-scan-spark {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tc-lime);
  box-shadow: 0 0 0 3px rgba(144, 198, 63, 0.2);
  animation: tc-photo-spark 1.4s ease-in-out infinite;
}

.tc-photo-scan-spark--1 { top: 10%; inset-inline-start: 14%; }
.tc-photo-scan-spark--2 {
  top: 18%;
  inset-inline-end: 10%;
  background: var(--tc-gold);
  animation-delay: 0.25s;
}
.tc-photo-scan-spark--3 {
  bottom: 14%;
  inset-inline-start: 18%;
  background: var(--tc-purple);
  animation-delay: 0.5s;
}

.tc-photo-scan-kicker {
  margin: 0 0 0.25rem;
  color: var(--tc-purple-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tc-photo-scan-title {
  margin: 0;
  color: var(--tc-ink);
  font-size: 1.15rem;
  font-weight: 850;
}

.tc-photo-scan-msg {
  margin: 0.45rem 0 0.9rem;
  min-height: 1.4em;
  color: var(--tc-muted);
  font-size: 0.9rem;
  font-weight: 600;
  animation: tc-photo-msg-pop 320ms ease both;
}

.tc-photo-scan-track {
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(132, 99, 163, 0.14);
  overflow: hidden;
}

.tc-photo-scan-fill {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8463a3, #90c63f 70%, #c4e678);
  transition: width 0.45s ease;
}

.tc-photo-scan-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tc-photo-scan-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--tc-purple);
  opacity: 0.35;
  animation: tc-photo-dot 1s ease-in-out infinite;
}

.tc-photo-scan-dots span:nth-child(2) { animation-delay: 0.15s; }
.tc-photo-scan-dots span:nth-child(3) { animation-delay: 0.3s; }

.tc-photo-scan-overlay.is-done .tc-photo-scan-card {
  animation: tc-photo-scan-done 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-photo-scan-overlay.is-done .tc-photo-scan-title {
  color: #3f6b12;
}

.tc-photo-scan-overlay.is-done .tc-photo-scan-msg {
  color: #4a3560;
  font-weight: 700;
}

.tc-photo-scan-overlay.is-done .tc-photo-scan-fill {
  background: linear-gradient(90deg, #6a9d2f, #90c63f 70%, #c4e678);
}

.tc-photo-scan-overlay.is-done .tc-photo-scan-beam,
.tc-photo-scan-overlay.is-done .tc-photo-scan-orbit {
  animation: none;
  opacity: 0;
}

.tc-photo-scan-overlay.is-done .tc-photo-scan-preview-wrap {
  border-color: #90c63f;
  box-shadow:
    0 0 0 7px rgba(144, 198, 63, 0.18),
    0 14px 30px rgba(106, 79, 130, 0.16);
}

.tc-onboarding.is-photo-scanning .tc-photo-entry {
  pointer-events: none;
}

.tc-photo-confirm.is-photo-pop .tc-photo-result-hero {
  animation: tc-photo-hero-pop 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-photo-field.tc-photo-field-pop {
  animation: tc-photo-field-in 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tc-field-delay, 0ms);
}

.tc-onboarding.is-photo-reveal .tc-photo-result-badge {
  animation: tc-photo-badge-wiggle 700ms ease both;
}

.tc-photo-source-grid {
  align-items: stretch;
}

.tc-photo-source-card {
  min-height: 9.5rem;
  justify-content: flex-start;
  padding: 1.05rem 0.85rem 1.1rem;
}

.tc-photo-insight,
.tc-photo-care-hints,
.tc-photo-result-hero {
  width: 100%;
}

@keyframes tc-photo-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tc-photo-scan-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tc-photo-scan-beam {
  0% { top: -35%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

@keyframes tc-photo-orbit {
  to { transform: rotate(360deg); }
}

@keyframes tc-photo-spark {
  0%, 100% { transform: scale(0.7); opacity: 0.45; }
  50% { transform: scale(1.25); opacity: 1; }
}

@keyframes tc-photo-msg-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tc-photo-dot {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes tc-photo-scan-done {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes tc-photo-hero-pop {
  0% {
    opacity: 0.4;
    transform: scale(0.92) translateY(10px);
  }
  60% {
    transform: scale(1.03) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes tc-photo-field-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tc-photo-badge-wiggle {
  0% { transform: rotate(0) scale(0.9); }
  30% { transform: rotate(-4deg) scale(1.05); }
  60% { transform: rotate(3deg) scale(1.02); }
  100% { transform: rotate(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tc-photo-capture-visual,
  .tc-photo-source-card--camera .tc-photo-source-visual {
    animation: none;
  }
  .tc-photo-capture-card,
  .tc-photo-source-card {
    transition: none;
  }
  .tc-photo-confidence-fill,
  .tc-photo-scan-fill {
    transition: none;
  }
  .tc-photo-scan-overlay,
  .tc-photo-scan-card,
  .tc-photo-scan-beam,
  .tc-photo-scan-orbit,
  .tc-photo-scan-spark,
  .tc-photo-scan-dots span,
  .tc-photo-confirm.is-photo-pop .tc-photo-result-hero,
  .tc-photo-field.tc-photo-field-pop,
  .tc-photo-result-pop,
  .tc-onboarding.is-photo-reveal .tc-photo-result-badge,
  .tc-photo-scan-msg.tc-photo-scan-msg-pop {
    animation: none;
  }
}

/* ===== Photo confirm fun polish v11 (wins cascade) ===== */
.tc-photo-confirm.tc-screen {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse 95% 42% at 50% -6%, rgba(196, 230, 120, 0.34), transparent 56%),
    radial-gradient(ellipse 70% 40% at 100% 18%, rgba(132, 99, 163, 0.14), transparent 52%),
    radial-gradient(ellipse 55% 30% at 0% 70%, rgba(144, 198, 63, 0.1), transparent 50%),
    linear-gradient(180deg, #fbf7ff 0%, #ffffff 46%, #f7fbef 100%) !important;
}

.tc-photo-confirm-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem 0.5rem;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
  background: transparent;
}

.tc-photo-confirm-brand {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(234, 223, 241, 0.95);
  box-shadow:
    0 8px 20px rgba(106, 79, 130, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tc-photo-confirm-brand:active {
  transform: scale(0.96);
}

.tc-photo-confirm-brand img {
  width: 30px !important;
  height: 32px !important;
  object-fit: contain;
}

.tc-photo-confirm-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(144, 198, 63, 0.22), rgba(196, 230, 120, 0.28));
  color: #355c10;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(144, 198, 63, 0.35);
  box-shadow: 0 6px 14px rgba(90, 140, 40, 0.12);
}

.tc-photo-confirm-status i {
  font-size: 0.68rem;
  color: #4f8a18;
}

.tc-photo-confirm .tc-photo-body.tc-photo-body--confirm {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  text-align: start !important;
  gap: 0.75rem !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0.2rem 0.95rem 0.85rem !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box;
}

.tc-photo-top-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  padding: 0.55rem;
  border-radius: 1.45rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(247, 241, 251, 0.88) 55%, rgba(238, 246, 228, 0.75));
  border: 1px solid rgba(234, 223, 241, 0.95);
  box-shadow:
    0 14px 32px rgba(106, 79, 130, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.tc-photo-banner {
  position: relative;
  width: 100%;
  height: 11.5rem;
  min-height: 11.5rem;
  flex-shrink: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(160deg, #f7f1fb, #eef6e4);
  box-shadow:
    0 12px 28px rgba(106, 79, 130, 0.14),
    0 0 0 1px rgba(132, 99, 163, 0.08);
  isolation: isolate;
}

.tc-photo-banner-glow {
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 70%;
  background: radial-gradient(circle at 50% 0%, rgba(196, 230, 120, 0.35), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.tc-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transform: scale(1.02);
}

.tc-photo-banner-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8463a3;
  font-size: 2.2rem;
}

.tc-photo-banner-badge {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #3f6b12;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(45, 33, 64, 0.14);
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tc-photo-banner-badge i {
  color: #8463a3;
}

.tc-photo-banner-paw {
  position: absolute;
  inset-inline-end: 0.65rem;
  bottom: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: #8463a3;
  font-size: 0.85rem;
  box-shadow: 0 6px 14px rgba(45, 33, 64, 0.12);
  z-index: 2;
  transform: rotate(-12deg);
}

.tc-photo-top-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: start;
  padding: 0.1rem 0.25rem 0.2rem;
}

.tc-photo-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.tc-photo-title-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.6rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
  background: linear-gradient(145deg, #8463a3, #90c63f);
  color: #fff;
  font-size: 0.72rem;
  box-shadow: 0 6px 14px rgba(106, 79, 130, 0.18);
  transform-origin: center;
}

.tc-photo-confirm .tc-photo-confirm-title {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  color: var(--tc-ink) !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.tc-photo-confirm .tc-photo-result-lead {
  margin: 0;
  color: var(--tc-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

.tc-photo-confirm .tc-photo-confidence {
  margin-top: 0.2rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(234, 223, 241, 0.95);
}

.tc-photo-confirm .tc-photo-confidence-track {
  height: 0.42rem;
  background: rgba(132, 99, 163, 0.1);
}

.tc-photo-confirm .tc-photo-confidence-fill {
  background: linear-gradient(90deg, #8463a3 0%, #90c63f 100%);
}

.tc-photo-confirm .tc-photo-insight {
  border-radius: 1.15rem;
  padding: 0.8rem 0.85rem;
  background:
    linear-gradient(145deg, #ffffff, #fffaf3);
  border: 1px solid rgba(242, 198, 120, 0.4);
  box-shadow: 0 8px 18px rgba(160, 110, 40, 0.06);
}

.tc-photo-confirm .tc-photo-insight-icon {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #ffe8b8, #fff4df);
  color: #9a5b0f;
  font-size: 0.92rem;
  box-shadow: 0 4px 10px rgba(180, 120, 40, 0.12);
}

.tc-photo-confirm .tc-photo-insight-text {
  font-size: 0.86rem;
  line-height: 1.5;
}

.tc-photo-confirm .tc-photo-care-hints {
  border-radius: 1.15rem;
  padding: 0.8rem 0.8rem 0.75rem;
  background:
    linear-gradient(165deg, rgba(196, 230, 120, 0.2), rgba(255, 255, 255, 0.94) 55%);
  border: 1px solid rgba(144, 198, 63, 0.32);
  box-shadow: 0 8px 18px rgba(90, 140, 40, 0.06);
}

.tc-photo-confirm .tc-photo-care-title {
  font-size: 0.84rem;
  margin-bottom: 0.55rem;
}

.tc-photo-confirm .tc-photo-care-grid {
  gap: 0.45rem;
}

.tc-photo-confirm .tc-photo-care-pill {
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(144, 198, 63, 0.24);
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(90, 140, 40, 0.05);
}

.tc-photo-confirm .tc-photo-fields-title {
  font-size: 0.88rem;
  color: #4a3560;
  font-weight: 800;
}

.tc-photo-confirm .tc-photo-fields-grid {
  gap: 0.6rem;
}

.tc-photo-confirm .tc-photo-field {
  border-radius: 1.05rem;
  padding: 0.7rem 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(234, 223, 241, 0.95);
  box-shadow: 0 6px 16px rgba(106, 79, 130, 0.06);
}

.tc-photo-confirm .tc-photo-chip {
  padding: 0.42rem 0.72rem;
  font-size: 0.76rem;
  border-radius: 999px;
  background: #faf7fd;
  border: 1.5px solid #eadff1;
}

.tc-photo-confirm .tc-photo-chip.is-selected {
  background: linear-gradient(135deg, #8a6aad, #6a4f82);
  box-shadow: 0 8px 16px rgba(106, 79, 130, 0.24);
  transform: translateY(-1px);
}

.tc-photo-confirm .tc-photo-disclaimer {
  font-size: 0.72rem;
  color: #8a7d98;
  opacity: 0.9;
}

.tc-photo-review-hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(242, 162, 58, 0.14), rgba(255, 244, 223, 0.9));
  border: 1px solid rgba(242, 162, 58, 0.35);
  color: #8b560f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: start;
}

.tc-photo-review-hint[hidden] {
  display: none !important;
}

.tc-photo-review-hint i {
  color: #c98a2e;
  flex-shrink: 0;
}

.tc-photo-edit-drawer {
  width: 100%;
  border-radius: 1.05rem;
  border: 1px solid rgba(234, 223, 241, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(106, 79, 130, 0.05);
  /* visible so open content contributes to body scroll (hidden collapsed the height) */
  overflow: visible;
}

/* .tc-photo-fields { display:flex } overrides UA hide for closed <details> */
.tc-photo-edit-drawer:not([open]) > .tc-photo-fields {
  display: none !important;
}

.tc-photo-edit-drawer.is-needs-attention {
  border-color: rgba(242, 162, 58, 0.45);
  box-shadow: 0 0 0 1px rgba(242, 162, 58, 0.12), 0 6px 16px rgba(106, 79, 130, 0.05);
}

.tc-photo-edit-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  user-select: none;
}

.tc-photo-edit-summary::-webkit-details-marker {
  display: none;
}

.tc-photo-edit-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4a3560;
  font-size: 0.88rem;
  font-weight: 800;
}

.tc-photo-edit-summary-main i {
  color: #8463a3;
}

.tc-photo-edit-summary-hint {
  color: #8a7d98;
  font-size: 0.72rem;
  font-weight: 600;
  padding-inline-start: 1.35rem;
}

.tc-photo-edit-drawer[open] .tc-photo-edit-summary {
  border-bottom: 1px solid rgba(234, 223, 241, 0.9);
}

.tc-photo-edit-drawer .tc-photo-fields {
  padding: 0.7rem 0.75rem 0.85rem;
}

.tc-photo-field.is-needs-review {
  border-color: rgba(242, 162, 58, 0.5);
  box-shadow: 0 0 0 1px rgba(242, 162, 58, 0.18), 0 6px 16px rgba(106, 79, 130, 0.06);
}

.tc-photo-result-pop {
  animation: tc-photo-field-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tc-result-delay, 0ms);
}

.tc-photo-actions--dock {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(251, 247, 255, 0.15), #fbf7ff 34%);
  border-top: 1px solid rgba(234, 223, 241, 0.95);
  box-shadow: 0 -10px 28px rgba(106, 79, 130, 0.07);
  z-index: 5;
}

.tc-photo-confirm .tc-photo-actions--dock .tc-btn-primary {
  min-height: 2.7rem;
  border-radius: 1.05rem;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(106, 79, 130, 0.24);
}

.tc-photo-confirm .tc-photo-actions-row .tc-btn-ghost {
  min-height: 2.35rem;
  border-radius: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(234, 223, 241, 0.95);
}

.tc-photo-top-block.tc-photo-top-pop {
  animation: tc-photo-hero-pop 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tc-onboarding.is-photo-reveal .tc-photo-banner-badge {
  animation: tc-photo-badge-wiggle 760ms ease both;
}

.tc-onboarding.is-photo-reveal .tc-photo-banner-paw {
  animation: tc-photo-paw-pop 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 180ms;
}

.tc-onboarding.is-photo-reveal .tc-photo-title-mark {
  animation: tc-photo-mark-pop 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 90ms;
}

@keyframes tc-photo-paw-pop {
  0% { transform: scale(0.5) rotate(-18deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-12deg); opacity: 1; }
}

@keyframes tc-photo-mark-pop {
  0% { transform: scale(0.55) rotate(-10deg); opacity: 0; }
  65% { transform: scale(1.1) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@media (max-width: 420px) {
  .tc-photo-banner {
    height: 10.25rem;
    min-height: 10.25rem;
  }

  .tc-photo-confirm-topbar,
  .tc-photo-confirm .tc-photo-body.tc-photo-body--confirm {
    padding-inline: 0.8rem !important;
  }

  .tc-photo-confirm .tc-photo-confirm-title {
    font-size: 1.05rem !important;
  }

  .tc-photo-top-block {
    padding: 0.45rem;
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-photo-top-block.tc-photo-top-pop,
  .tc-onboarding.is-photo-reveal .tc-photo-banner-badge,
  .tc-onboarding.is-photo-reveal .tc-photo-banner-paw,
  .tc-onboarding.is-photo-reveal .tc-photo-title-mark {
    animation: none;
  }
}
