/* =========================================================
   爱悦 AiYue — product layer
   Shared components for the landing page, account and paywall.
   ========================================================= */

[hidden] { display: none !important; }

body:not(.is-authed) [data-auth-only] { display: none !important; }
body.is-authed [data-guest-only] { display: none !important; }

/* Header account state ------------------------------------- */
.header-inner { position: relative; }

.header-guest { padding-inline: 10px; color: var(--coral-dark); font-size: 10px; }
.header-guest:hover { color: var(--coral); }

.header-chat {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.header-chat:hover { background: rgba(24, 20, 16, 0.055); color: var(--coral); }
.header-chat .icon { width: 17px; height: 17px; }
.nav-badge {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff8ee;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}
.nav-badge[hidden] { display: none; }

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 8px 0 5px;
  border: 1px solid rgba(24, 20, 16, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.55);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}
.account-trigger:hover { background: var(--paper); border-color: rgba(24, 20, 16, 0.24); }
.account-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #ef7769, #c64138);
  color: #fff8ee;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.account-avatar-lg { width: 41px; height: 41px; font-size: 13px; }
.account-name { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { width: 12px; height: 12px; color: var(--muted); transform: rotate(90deg); transition: transform 0.2s; }
.account-trigger[aria-expanded="true"] .account-chevron { transform: rotate(-90deg); }

.account-menu {
  position: absolute;
  z-index: 80;
  top: 64px;
  right: 30px;
  width: 304px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.99);
  box-shadow: 0 28px 60px -24px rgba(24, 20, 16, 0.36);
  animation: accountIn 0.25s var(--ease) both;
}
@keyframes accountIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
.account-menu-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 12px; }
.account-menu-head div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.account-menu-head strong { overflow: hidden; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-head span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-plan {
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(230, 84, 75, 0.14);
  border-radius: 9px;
  background: rgba(230, 84, 75, 0.065);
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}
.account-menu-links { display: flex; flex-direction: column; padding: 4px 0; }
.account-menu-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}
.account-menu-links a:hover { background: rgba(24, 20, 16, 0.045); }
.account-menu-links .icon { width: 15px; height: 15px; color: var(--muted); }
.account-menu-links a span { margin-left: auto; color: var(--coral); font-weight: 800; }
.account-guest-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 33px;
  margin: 1px 0 5px;
  padding: 0 9px;
  border: 1px solid rgba(230, 84, 75, 0.17);
  border-radius: 8px;
  background: rgba(230, 84, 75, 0.06);
  color: var(--coral-dark);
  font-size: 8.5px;
  font-weight: 800;
}
.account-guest-save:hover { background: rgba(230, 84, 75, 0.11); }
.account-guest-save .icon { width: 12px; height: 12px; }

.account-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  margin-top: 5px;
  padding: 0 8px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}
.account-logout:hover { color: var(--coral-dark); }
.account-logout .icon { width: 14px; height: 14px; }

/* Hero refinements ----------------------------------------- */
.proof-line {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 10.5px;
}
.proof-line .icon { color: var(--coral); width: 13px; height: 13px; }
.proof-copy p { margin-top: 2px; color: var(--muted); font-size: 9.5px; }

.btn-sm { height: 36px; padding: 0 14px; font-size: 10px; }

/* Distance additions --------------------------------------- */
.distance-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 249, 240, 0.8);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.distance-go .icon { width: 13px; height: 13px; transition: transform 0.2s; }
.distance-go:hover { color: var(--cream); }
.distance-go:hover .icon { transform: translateY(2px); }

/* Discover ------------------------------------------------- */
.discover-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.discover-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a06c5f;
  font-size: 8.5px;
  font-weight: 600;
}
.discover-hint .icon { width: 12px; height: 12px; }

.discover-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 16px 12px 13px;
  border: 1px solid rgba(230, 84, 75, 0.15);
  border-radius: 15px;
  background:
    radial-gradient(circle at 0% 0%, rgba(230, 84, 75, 0.1), transparent 37%),
    rgba(255, 253, 249, 0.6);
}
.discover-banner-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 50%;
  background: var(--coral);
  color: #fff8ee;
}
.discover-banner-icon .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.discover-banner p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.discover-banner strong { color: var(--ink); }
.discover-banner .btn { margin-left: auto; flex: none; }
.discover-banner.is-member { border-color: rgba(92, 107, 87, 0.18); background: rgba(238, 243, 235, 0.65); }
.discover-banner.is-member .discover-banner-icon { background: var(--sage); }

.filter-tools { display: flex; align-items: center; gap: 13px; }
.gender-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--coral);
}
.gender-filter .icon { width: 12px; height: 12px; }
.gender-filter select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  outline: none;
  padding: 2px 16px 2px 0;
  text-transform: uppercase;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 7px) 52%, calc(100% - 3px) 52%;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}
.distance-filter-note { color: var(--muted); font-size: 9px; font-weight: 600; white-space: nowrap; }
.distance-filter-note strong { color: var(--ink); font-weight: 800; }

.profile-skeleton {
  aspect-ratio: 0.72;
  border: 1px solid rgba(24, 20, 16, 0.05);
  border-radius: var(--r-lg);
  background: linear-gradient(110deg, rgba(239, 229, 216, 0.45) 25%, rgba(255, 253, 249, 0.9) 42%, rgba(239, 229, 216, 0.45) 60%);
  background-size: 220% 100%;
  animation: skeleton 1.5s linear infinite;
}
@keyframes skeleton { to { background-position: -220% 0; } }

/* Profile card additions ----------------------------------- */
.profile-card { color: inherit; }
.profile-card.is-loading { pointer-events: none; opacity: 0.62; }
.profile-card.is-loading .profile-media::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  background: rgba(255, 253, 249, 0.28);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}
.profile-ai-badge {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(24, 20, 16, 0.42);
  color: rgba(255, 248, 238, 0.93);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.profile-ai-badge .icon { width: 9px; height: 9px; }
.profile-chat-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--coral-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.profile-chat-hint .icon { width: 11px; height: 11px; }
.profile-card:hover .profile-chat-hint { color: var(--coral); }
.profile-card .card-like { pointer-events: none; }
.profile-card.is-matched::after {
  content: "In your chats";
  position: absolute;
  left: 11px;
  bottom: 11px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.92);
  color: var(--coral-dark);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.profile-card.is-matched .profile-ai-badge { display: none; }

/* Auth modal ------------------------------------------------ */
.auth-panel { width: min(100%, 492px); }
.auth-panel h2 { max-width: 100%; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 19px 0 17px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(239, 229, 216, 0.45);
}
.auth-tab {
  height: 33px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: 0.2s;
}
.auth-tab.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 4px 12px -8px rgba(24, 20, 16, 0.5); }
.auth-join-only[hidden] { display: none; }
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-google .btn-spinner { border-color: rgba(24, 20, 16, 0.16); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.social-auth { margin-top: 2px; }
.btn-google {
  height: 46px;
  border: 1px solid rgba(24, 20, 16, 0.16);
  background: #fffdf9;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 6px 16px -15px rgba(24, 20, 16, 0.55);
}
.btn-google:hover { border-color: rgba(24, 20, 16, 0.3); background: #fff; transform: translateY(-1px); }
.google-mark { width: 17px; height: 17px; flex: none; }
.social-demo-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(183, 134, 79, 0.12);
  color: #8b663e;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.social-note { margin-top: 7px; color: #a1978c; font-size: 7.5px; line-height: 1.45; text-align: center; }
.social-note.is-demo { color: #92755a; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 15px 0 14px; color: #b0a69b; font-size: 7.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.btn-guest {
  height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(230, 84, 75, 0.18);
  background: rgba(230, 84, 75, 0.045);
  color: var(--coral-dark);
  font-size: 10px;
}
.btn-guest:hover { background: rgba(230, 84, 75, 0.09); }
.btn-guest .icon { width: 13px; height: 13px; }
.guest-mini-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 2px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(230, 84, 75, 0.09);
  color: #a56558;
  font-size: 6.5px;
  font-weight: 700;
}
.btn-demo {
  height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(24, 20, 16, 0.13);
  background: transparent;
  color: var(--ink-soft);
  font-size: 10.5px;
}
.btn-demo:hover { background: rgba(24, 20, 16, 0.045); }
.btn-demo .icon { color: var(--coral); width: 14px; height: 14px; }
.form-error {
  margin: 2px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(183, 53, 47, 0.18);
  border-radius: 8px;
  background: #fff6f3;
  color: #a52d27;
  font-size: 9.5px;
  line-height: 1.45;
}
.form-fineprint a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.auth-panel .form-fineprint { margin-top: 13px; }

/* Guest preview -------------------------------------------- */
.guest-start-panel, .guest-upgrade-panel { width: min(100%, 500px); }
.guest-seal, .guest-upgrade-seal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border: 1px solid rgba(230, 84, 75, 0.15);
  border-radius: 50%;
  background: var(--coral);
  color: #fff8ee;
  box-shadow: 0 0 0 8px rgba(230, 84, 75, 0.065);
}
.guest-upgrade-seal { background: var(--ink); box-shadow: 0 0 0 8px rgba(24, 20, 16, 0.045); }
.guest-seal .icon, .guest-upgrade-seal .icon { width: 22px; height: 22px; }
.guest-start-panel h2, .guest-upgrade-panel h2 { margin-top: 5px; }
.guest-start-panel h2 em, .guest-upgrade-panel h2 em { color: var(--coral); font-style: italic; }
.guest-perks { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; padding: 13px 14px; border: 1px solid rgba(24, 20, 16, 0.08); border-radius: 11px; background: rgba(248, 242, 233, 0.4); }
.guest-perks li { display: flex; align-items: flex-start; gap: 9px; }
.guest-perks .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--coral); }
.guest-perks span { display: flex; flex-direction: column; gap: 1px; }
.guest-perks strong { font-size: 9px; font-weight: 800; line-height: 1.3; }
.guest-perks small { color: var(--muted); font-size: 7.5px; line-height: 1.4; }
.guest-consent { margin-top: 1px; margin-bottom: 11px; font-size: 8px; }
.guest-progress {
  margin: 14px 0 13px;
  padding: 9px 11px;
  border: 1px solid rgba(230, 84, 75, 0.14);
  border-radius: 8px;
  background: rgba(230, 84, 75, 0.055);
  color: #9b6a5e;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}
.guest-upgrade-panel .field { margin-bottom: 9px; }
.guest-upgrade-panel .btn-lg { margin-top: 4px; }
.mobile-guest-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 5px;
  border: 0;
  border-bottom: 1px solid rgba(24, 20, 16, 0.07);
  background: transparent;
  color: var(--coral-dark);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
  text-align: left;
}
.mobile-guest-link span { color: var(--muted); font-family: var(--sans); font-size: 8px; letter-spacing: 0.01em; }

/* Social onboarding ---------------------------------------- */
.onboarding-panel {
  width: min(100%, 500px);
  padding-top: 32px;
  background:
    radial-gradient(circle at 50% -12%, rgba(66, 133, 244, 0.07), transparent 42%),
    var(--paper);
}
.onboarding-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border: 1px solid rgba(230, 84, 75, 0.15);
  border-radius: 50%;
  background: var(--coral);
  color: #fff8ee;
  box-shadow: 0 0 0 8px rgba(230, 84, 75, 0.065);
}
.onboarding-seal .icon { width: 21px; height: 21px; }
.onboarding-panel h2 { margin-top: 5px; }
.onboarding-panel h2 em { color: var(--coral); font-style: italic; }
.google-connected {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 17px;
  padding: 9px 11px;
  border: 1px solid rgba(66, 133, 244, 0.13);
  border-radius: 10px;
  background: rgba(66, 133, 244, 0.045);
}
.google-mark-wrap { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 8px; background: #fff; }
.google-connected > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; }
.google-connected strong { color: #4d5663; font-size: 8.5px; font-weight: 800; }
.google-connected small { overflow: hidden; color: #8a94a0; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.google-connected .icon-check { width: 14px; height: 14px; color: #4f8b64; }
.onboarding-panel .field { margin-bottom: 11px; }
.onboarding-terms {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 10px;
  color: #7f7469;
  font-size: 8.5px;
  line-height: 1.5;
  cursor: pointer;
}
.onboarding-terms input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.onboarding-terms .checkbox-box {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  border: 1px solid rgba(24, 20, 16, 0.24);
  border-radius: 4px;
  background: #fffcf7;
  color: transparent;
  transition: 0.2s;
}
.onboarding-terms .checkbox-box .icon { width: 9px; height: 9px; stroke-width: 2.6; }
.onboarding-terms input:checked + .checkbox-box { border-color: var(--coral); background: var(--coral); color: #fff8ee; }
.onboarding-terms input:focus-visible + .checkbox-box { outline: 2px solid var(--coral); outline-offset: 2px; }
.onboarding-terms a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.onboarding-later { height: 38px; margin-top: 7px; color: var(--muted); font-size: 9px; }
.onboarding-panel .form-fineprint { margin-top: 10px; }

/* Paywall --------------------------------------------------- */
.paywall-panel {
  width: min(100%, 476px);
  padding: 34px 35px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(230, 84, 75, 0.11), transparent 42%),
    var(--paper);
}
.paywall-crown {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border: 1px solid rgba(230, 84, 75, 0.16);
  border-radius: 50%;
  background: var(--coral);
  color: #fff8ee;
  box-shadow: 0 0 0 9px rgba(230, 84, 75, 0.07);
}
.paywall-crown .icon { width: 26px; height: 26px; }
.paywall-panel .eyebrow { justify-content: center; }
.paywall-panel h2 {
  margin: 8px 0 9px;
  font-family: var(--serif);
  font-size: 2.55rem;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.paywall-copy { max-width: 350px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.65; }
.paywall-meter {
  margin: 19px 0 18px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(248, 242, 233, 0.5);
}
.paywall-meter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8.5px; font-weight: 700; }
.paywall-meter-row strong { color: var(--ink); font-size: 9px; }
.paywall-bar { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(24, 20, 16, 0.09); }
.paywall-bar span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--coral); transition: width 0.4s var(--ease); }
.paywall-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 0 0 20px; text-align: left; }
.paywall-perks li { display: flex; align-items: flex-start; gap: 6px; color: #51483f; font-size: 9px; line-height: 1.4; }
.paywall-perks .icon { width: 12px; height: 12px; flex: none; color: var(--coral); margin-top: 1px; }
.paywall-panel .btn-lg { margin-top: 0; }
.paywall-panel .btn-text { height: 40px; margin-top: 5px; color: var(--muted); font-size: 9.5px; }
.paywall-fine { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 9px; color: #9a9187; font-size: 7.5px; }
.paywall-fine .icon { width: 10px; height: 10px; }

/* AI feature ------------------------------------------------ */
.ai-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin-top: 20px;
  margin-bottom: 88px;
  padding-top: 78px;
  border-top: 1px solid var(--line);
}
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(230, 84, 75, 0.15);
  border-radius: 999px;
  background: rgba(230, 84, 75, 0.065);
  color: var(--coral-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ai-chip .icon { width: 12px; height: 12px; }
.ai-feature-copy h2 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.ai-feature-copy p { max-width: 420px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.ai-feature-chat {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(24, 20, 16, 0.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(230, 84, 75, 0.09), transparent 40%),
    linear-gradient(135deg, #f1ddd2, #f9f0e5 73%);
  box-shadow: 0 28px 60px -44px rgba(90, 48, 36, 0.5);
}
.ai-bubble {
  max-width: 86%;
  margin-bottom: 9px;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 10.5px;
  line-height: 1.55;
  box-shadow: 0 6px 14px -12px rgba(24, 20, 16, 0.5);
}
.ai-bubble-in { border-bottom-left-radius: 4px; background: #fffdf9; color: #3c332b; }
.ai-bubble-out { margin-left: auto; border-bottom-right-radius: 4px; background: var(--ink); color: #fff8ee; }
.ai-typing { display: flex; align-items: center; gap: 6px; margin-top: 13px; color: #9b786c; font-size: 8px; font-weight: 700; letter-spacing: 0.04em; }
.ai-typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); animation: typingDot 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: 0.16s; }
.ai-typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Match result refined -------------------------------------- */
.match-actions .btn-chat { background: #fff8ee; color: var(--coral-dark); }
.match-info .match-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  color: rgba(255, 248, 238, 0.58);
  font-size: 8px;
  font-weight: 600;
}
.match-info .match-ai .icon { width: 10px; height: 10px; }

/* Toast icon spacing --------------------------------------- */
.toast span { display: block; }

/* Responsive ------------------------------------------------ */
@media (max-width: 1180px) {
  .header-guest { display: none !important; }
  .header-chat { padding: 0 8px; }
  .header-chat-label { display: none; }
  .account-name { display: none; }
  .account-trigger { padding-right: 6px; }
  .ai-feature { gap: 34px; }
}

@media (max-width: 1000px) {
  .header-signin { display: none !important; }
  .account-menu { right: 24px; top: 60px; }
  .discover-banner { margin-top: 22px; }
  .ai-feature { padding-top: 60px; margin-bottom: 65px; }
}

@media (max-width: 780px) {
  .header-chat { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .header-chat .icon { width: 18px; height: 18px; }
  .header-chat .nav-badge {
    position: absolute;
    top: 1px;
    right: -1px;
    border: 2px solid var(--cream);
  }
  .account-trigger { border: 0; background: transparent; padding: 0; width: 38px; height: 38px; justify-content: center; }
  .account-avatar { width: 34px; height: 34px; }
  .account-chevron { display: none; }
  .account-menu { top: 60px; right: 18px; left: 18px; width: auto; }
  .discover-aside { align-items: flex-start; }
  .discover-banner { flex-wrap: wrap; padding: 13px 14px; }
  .discover-banner p { flex: 1 1 calc(100% - 50px); }
  .discover-banner .btn { margin-left: 45px; }
  .filter-tools { width: 100%; justify-content: space-between; }
  .shuffle-btn { align-self: center; }
  .ai-feature { grid-template-columns: 1fr; gap: 25px; }
  .ai-feature-copy p { max-width: 560px; }
  .ai-feature-chat { max-width: 540px; }
  .profile-card.is-matched::after { left: 9px; bottom: 9px; font-size: 6.5px; padding: 3px 6px; }
  .profile-ai-badge { right: 9px; bottom: 9px; }
}

@media (max-width: 560px) {
  .header-actions { gap: 4px; }
  .btn-join { height: 38px; padding: 0 13px; font-size: 10.5px; }
  .account-menu { right: 12px; left: 12px; }
  .social-proof { margin-top: 21px; }
  .proof-line { font-size: 9.5px; }
  .proof-copy p { font-size: 8.5px; }
  .discover-banner p { font-size: 9px; }
  .discover-banner .btn { margin-left: 45px; }
  .distance-go { margin-top: 12px; font-size: 9px; }
  .ai-feature-copy h2 { font-size: 2.8rem; }
  .ai-feature-chat { padding: 16px; border-radius: 22px; }
  .ai-bubble { max-width: 92%; font-size: 9.5px; }
  .paywall-panel { padding: 31px 21px 23px; }
  .paywall-panel h2 { font-size: 2.1rem; }
  .paywall-perks { grid-template-columns: 1fr; gap: 7px; }
  .paywall-meter { margin: 16px 0; }
  .auth-panel { padding: 29px 22px; }
  .auth-tabs { margin-top: 16px; }
  .onboarding-panel { padding: 27px 20px 22px; }
  .onboarding-panel h2 { font-size: 2.25rem; }
  .profile-skeleton { border-radius: 17px; }
}

/* Home profile detail view */
.profile-view {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.profile-view.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.profile-view-backdrop { position: absolute; inset: 0; background: rgba(16, 11, 8, 0.56); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.profile-view-card {
  position: relative;
  width: min(470px, 100%);
  max-height: min(90vh, 840px);
  overflow: auto;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(16, 11, 8, 0.28);
  transform: translateY(16px) scale(0.985);
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
  scrollbar-width: thin;
}
.profile-view.is-open .profile-view-card { transform: none; }
.profile-view-close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.9);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.profile-view-media { position: relative; height: 315px; background: var(--cream-deep); }
.profile-view-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 11, 8, 0.04), transparent 45%, rgba(16, 11, 8, 0.28)); pointer-events: none; }
.profile-view-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.profile-view-score {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--coral-dark);
  font-size: 8.5px;
  font-weight: 800;
}
.profile-view-body { padding: 18px 24px 24px; }
.profile-view-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.profile-view-gallery button {
  width: 53px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--cream-deep);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.profile-view-gallery button:hover { opacity: 1; transform: translateY(-1px); }
.profile-view-gallery button.is-active { border-color: var(--coral); opacity: 1; }
.profile-view-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.profile-view-name { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.profile-view-name h2 { font-family: var(--serif); font-size: 2.7rem; font-weight: 400; line-height: 0.96; letter-spacing: -0.045em; }
.profile-view-name .icon-verified { width: 19px; height: 19px; }
.profile-view-job { margin-top: 5px; color: var(--muted); font-size: 10.5px; }
.profile-view-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 9px; }
.profile-view-meta span { display: inline-flex; align-items: center; gap: 4px; }
.profile-view-meta .icon { width: 12px; height: 12px; color: var(--coral); }
.profile-view-bio { margin-top: 15px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.profile-view-prompt { margin-top: 15px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.profile-view-prompt span { color: var(--coral-dark); font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-view-prompt p { margin-top: 5px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.profile-view-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.profile-view-tags span { padding: 5px 8px; border-radius: 999px; background: var(--cream-deep); color: var(--ink-soft); font-size: 8.5px; }
.profile-view-actions { display: grid; gap: 5px; margin-top: 19px; }
body.profile-view-open { overflow: hidden; }

@media (max-width: 640px) {
  .profile-view { align-items: flex-end; padding: 0; }
  .profile-view-card { width: 100%; max-height: 93vh; border-radius: 24px 24px 0 0; }
  .profile-view-media { height: 245px; }
  .profile-view-body { padding: 16px 20px 22px; }
  .profile-view-name h2 { font-size: 2.35rem; }
}
