/*
Theme Name: Musa Chat
Theme URI: https://example.com/
Author: OpenAI
Description: Tema editorial de relacionamento com personagens virtuais, conversa guiada e artigos sobre apps de namoro.
Version: 1.5.0
Text Domain: musa-chat
*/
:root{--bg:#fff8fb;--card:#fff;--ink:#241b22;--muted:#766a72;--rose:#d94f79;--rose2:#ff7c9f;--line:#f1dfe6;--dark:#191217;--green:#2a9d68}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink)}
a{text-decoration:none;color:inherit}.wrap{width:min(1120px,calc(100% - 32px));margin:auto}
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.header-in{height:72px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:900;font-size:24px;letter-spacing:-.8px}.brand b{color:var(--rose)}
.nav a{margin-left:20px;color:#5d5159;font-weight:700;font-size:14px}.hero{padding:54px 0 28px}
.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:36px;align-items:center}.eyebrow{display:inline-flex;padding:8px 12px;border-radius:999px;background:#ffe8ef;color:#9f3153;font-weight:800;font-size:13px}
h1{font-size:clamp(38px,6vw,70px);line-height:.98;letter-spacing:-2.5px;margin:18px 0}.lead{font-size:19px;line-height:1.65;color:var(--muted);max-width:640px}
.hero-card{background:linear-gradient(145deg,#2a1720,#6d2940);padding:24px;border-radius:30px;color:white;box-shadow:0 25px 70px rgba(80,27,47,.18)}
.faces{display:flex}.faces img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:4px solid #fff;margin-right:-12px}
.hero-card h3{font-size:26px;margin:20px 0 8px}.hero-card p{color:#f4dce5;line-height:1.6}
.section{padding:36px 0 64px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.section-head h2{font-size:32px;margin:0}.section-head p{color:var(--muted);margin:0}
.profile-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.profile{background:var(--card);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 10px 30px rgba(80,27,47,.05);transition:.2s}
.profile:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(80,27,47,.10)}.profile-photo{position:relative;aspect-ratio:1/1;overflow:hidden}.profile-photo img{width:100%;height:100%;object-fit:cover}
.online{position:absolute;right:12px;bottom:12px;width:14px;height:14px;border-radius:50%;background:#39c27f;border:3px solid white}.profile-body{padding:16px}.profile-name{font-size:18px;font-weight:900}.profile-meta{font-size:13px;color:var(--muted);margin-top:4px}.profile-msg{font-size:14px;line-height:1.45;margin-top:12px;color:#4d4249}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;padding:13px 18px;background:var(--rose);color:white;font-weight:900;cursor:pointer}.btn.alt{background:#fff;color:var(--rose);border:1px solid #f2c9d6}.profile .btn{width:100%;margin-top:14px}
.ad-slot{min-height:92px;border:1px dashed #d9bcc7;background:#fff;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#9a7f89;font-size:12px;text-align:center;padding:12px;margin:24px auto}
.chat-shell{width:min(760px,calc(100% - 28px));margin:36px auto 70px;background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:0 22px 70px rgba(80,27,47,.11)}
.chat-top{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.chat-top img{width:48px;height:48px;border-radius:50%;object-fit:cover}.chat-top strong{display:block}.chat-top small{color:var(--green)}
.chat-body{padding:22px;min-height:440px;background:linear-gradient(#fff,#fff9fb)}.bubble{max-width:78%;padding:12px 15px;border-radius:18px;margin:10px 0;line-height:1.48;font-size:15px}.them{background:#f4edf0;border-bottom-left-radius:5px}.me{background:var(--rose);color:#fff;margin-left:auto;border-bottom-right-radius:5px}
.typing{color:#8a7a83;font-size:13px;margin:12px 4px}.choices{display:grid;gap:10px;margin-top:20px}.choice{border:1px solid #efcad6;background:#fff;color:#7f2947;padding:13px 15px;border-radius:14px;font-weight:800;cursor:pointer;text-align:left}.choice:hover{background:#fff1f5}
.chat-note{padding:12px 18px;background:#fff5f8;border-top:1px solid var(--line);font-size:12px;color:#7b6872;text-align:center}
.article{width:min(820px,calc(100% - 32px));margin:40px auto 80px;background:#fff;padding:clamp(24px,5vw,56px);border-radius:28px;border:1px solid var(--line)}.article h1{font-size:clamp(36px,5vw,58px)}.article h2{margin-top:34px}.article p,.article li{font-size:17px;line-height:1.75;color:#50454b}.article .notice{background:#fff1f5;border-left:4px solid var(--rose);padding:16px 18px;border-radius:12px}
.site-footer{background:var(--dark);color:#eee;padding:34px 0}.footer-in{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.site-footer small{color:#bfaeb7}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.profile-grid{grid-template-columns:repeat(2,1fr)}.nav{display:none}}
@media(max-width:520px){.profile-grid{grid-template-columns:1fr 1fr;gap:10px}.profile-body{padding:12px}.profile-msg{display:none}.hero{padding-top:34px}h1{letter-spacing:-1.6px}.bubble{max-width:88%}}

/* V4 — bate-papo e CTA de aplicativo */
.live-chat-shell{max-width:720px}.live-body{min-height:520px;max-height:62vh;overflow-y:auto;padding-bottom:24px}.chat-compose{display:flex;gap:10px;padding:14px;background:#fff;border-top:1px solid var(--line)}.chat-compose input{flex:1;min-width:0;border:1px solid #e5cfd8;border-radius:16px;padding:14px 15px;font:inherit;outline:none;background:#fff}.chat-compose input:focus{border-color:var(--rose);box-shadow:0 0 0 3px rgba(217,79,121,.10)}.send-btn{border:0;border-radius:16px;padding:0 18px;background:var(--rose);color:#fff;font-weight:900;cursor:pointer}.send-btn:disabled{opacity:.55;cursor:default}.live-typing{font-style:italic;margin:12px 4px}.status-dot{display:inline-block;width:8px;height:8px;background:#39c27f;border-radius:50%;margin-right:5px}.chat-transition{margin:18px auto 4px;padding:11px 14px;max-width:90%;border-radius:14px;background:#fff3f7;color:#8a3856;text-align:center;font-size:13px;font-weight:700}.app-cta-card{margin:36px 0;padding:24px;border:1px solid #f0ccd8;border-radius:22px;background:linear-gradient(145deg,#fff8fb,#fff);box-shadow:0 12px 34px rgba(80,27,47,.07)}.app-cta-card h2{margin:5px 0 8px}.app-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#9f3153;font-weight:900}.pulse-app-btn{display:inline-flex;align-items:center;justify-content:center;margin-top:8px;padding:15px 20px;border-radius:16px;background:var(--rose);color:#fff;font-weight:900;box-shadow:0 0 0 0 rgba(217,79,121,.45);animation:musaPulse 1.8s infinite}.pulse-app-btn:hover{transform:translateY(-1px)}@keyframes musaPulse{0%{box-shadow:0 0 0 0 rgba(217,79,121,.40)}70%{box-shadow:0 0 0 14px rgba(217,79,121,0)}100%{box-shadow:0 0 0 0 rgba(217,79,121,0)}}
@media(max-width:520px){.live-body{min-height:58vh}.chat-compose{position:sticky;bottom:0}.send-btn{padding:0 14px}}

.auto-redirect-note{font-size:13px;color:var(--muted);text-align:center;margin:6px 0 10px}
.virtual-note{font-size:12px;line-height:1.5;color:#7b6872;text-align:center;margin-top:-8px;margin-bottom:28px}
.quiz-shell + .ad-slot{margin-top:-34px;margin-bottom:42px}
.live-chat-shell .chat-top small{display:flex;align-items:center;gap:6px}


.ad-slot{
  width:min(100%,970px);
  margin:28px auto;
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  text-align:center;
  overflow:hidden
}
.ad-label{
  font-size:10px;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9a8d95;
  margin-bottom:8px
}
.ad-placeholder{
  min-height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#9a8d95;
  font-size:12px
}
.chat-inline-ad{
  margin:14px 0 18px;
}
.chat-inline-ad .ad-slot{
  margin:0;
  border-radius:12px;
}
.app-cta-separator{
  height:28px;
}
.app-cta-card{
  margin-top:10px;
}
@media (max-width:640px){
  .ad-slot{margin:20px auto;padding:10px;border-radius:12px}
  .chat-inline-ad{margin:10px 0 14px}
}


/* V10 — status Online e banner temporário */
.chat-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chat-online{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:800;color:#169454}
.chat-online::before{content:"";width:8px;height:8px;border-radius:50%;background:#22b86a;box-shadow:0 0 0 3px rgba(34,184,106,.12)}

.musa-temp-banner{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:9999;
  width:min(760px,calc(100% - 24px));
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 16px 50px rgba(36,27,34,.22);
  padding:12px 44px 12px 12px;
  opacity:1;
  transition:opacity .22s ease,transform .22s ease;
}
.musa-temp-banner.is-hiding{
  opacity:0;
  transform:translateX(-50%) translateY(12px);
  pointer-events:none;
}
.musa-temp-label{
  font-size:10px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#9a8d95;
  margin:0 0 7px;
}
.musa-temp-content{min-height:40px;overflow:hidden}
.musa-temp-content img,.musa-temp-content iframe{max-width:100%;height:auto}
.musa-temp-close{
  position:absolute;
  top:8px;
  right:8px;
  width:32px;
  height:32px;
  border:0;
  border-radius:50%;
  background:#f5eef1;
  color:#54474e;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.musa-temp-close:hover{background:#eadde2}
@media(max-width:520px){
  .musa-temp-banner{bottom:10px;width:calc(100% - 16px);border-radius:14px}
}
@media(prefers-reduced-motion:reduce){
  .musa-temp-banner{transition:none}
}


/* V11 — página individual do perfil antes do quiz */
.profile-detail-wrap{width:min(980px,calc(100% - 28px));margin:42px auto 74px}
.profile-detail-card{
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(320px,1.1fr);
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:0 22px 70px rgba(80,27,47,.11)
}
.profile-detail-photo{position:relative;min-height:520px;background:#f5e9ee}
.profile-detail-photo img{width:100%;height:100%;object-fit:cover;display:block}
.profile-detail-online{
  position:absolute;left:18px;bottom:18px;
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.94);
  color:#169454;font-size:13px;font-weight:900
}
.profile-detail-online::before{content:"";width:9px;height:9px;border-radius:50%;background:#22b86a}
.profile-detail-content{padding:clamp(28px,5vw,54px);display:flex;flex-direction:column;justify-content:center}
.profile-detail-content h1{font-size:clamp(42px,6vw,66px);margin:14px 0 6px}
.profile-detail-meta{color:var(--muted);font-size:14px;font-weight:700;margin-bottom:24px}
.profile-story{font-size:18px;line-height:1.75;color:#50454b;margin:0 0 28px}
.profile-chat-btn{
  align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;
  min-width:190px;padding:16px 28px;border-radius:16px;background:var(--rose);color:#fff;
  font-weight:900;font-size:17px
}
.pulse-profile-btn{box-shadow:0 0 0 0 rgba(217,79,121,.42);animation:musaProfilePulse 1.8s infinite}
@keyframes musaProfilePulse{
  0%{box-shadow:0 0 0 0 rgba(217,79,121,.42)}
  70%{box-shadow:0 0 0 14px rgba(217,79,121,0)}
  100%{box-shadow:0 0 0 0 rgba(217,79,121,0)}
}
.profile-flow-note{display:block;color:#83747d;line-height:1.5;margin-top:15px;max-width:430px}
@media(max-width:720px){
  .profile-detail-card{grid-template-columns:1fr}
  .profile-detail-photo{min-height:0;aspect-ratio:4/5}
  .profile-detail-content{padding:26px 22px 30px}
  .profile-chat-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){.pulse-profile-btn{animation:none}}


/* V12 — banner fixo dentro do quiz */
.quiz-shell{position:relative}
.quiz-fixed-ad{
  position:sticky;
  bottom:0;
  z-index:8;
  padding:8px 12px 12px;
  background:linear-gradient(to top,#fff 82%,rgba(255,255,255,.92));
  border-top:1px solid var(--line)
}
.quiz-fixed-ad .ad-slot{
  margin:0 auto;
  min-height:82px;
  border-radius:14px
}

/* V12 — tela de carregamento visual de 3 segundos */
.musa-site-loader{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#080608;
  color:#fff;
  opacity:1;
  visibility:visible;
  transition:opacity .35s ease,visibility .35s ease
}
.musa-site-loader.is-done{
  opacity:0;
  visibility:hidden;
  pointer-events:none
}
.musa-loader-inner{text-align:center;padding:28px}
.musa-loader-brand{
  font-size:clamp(30px,8vw,54px);
  line-height:1;
  font-weight:900;
  letter-spacing:-1.5px;
  margin:14px 0 14px
}
.musa-loader-text{font-size:14px;color:#d8cbd1;letter-spacing:.03em}
.musa-loader-hearts{
  display:flex;
  justify-content:center;
  gap:13px;
  font-size:28px
}
.musa-loader-hearts span{
  display:inline-block;
  animation:musaHeartBeat 1s ease-in-out infinite
}
.musa-loader-hearts span:nth-child(2){animation-delay:.16s}
.musa-loader-hearts span:nth-child(3){animation-delay:.32s}
.musa-loader-count{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-top:18px;
  color:#9e8f96;
  font-size:13px;
  font-weight:800
}
.musa-loader-count span{animation:musaCountPulse 3s linear both}
.musa-loader-count span:nth-child(2){animation-delay:1s}
.musa-loader-count span:nth-child(3){animation-delay:2s}
@keyframes musaHeartBeat{
  0%,100%{transform:scale(.9);opacity:.45}
  50%{transform:scale(1.18);opacity:1}
}
@keyframes musaCountPulse{
  0%,32%{color:#fff;transform:scale(1.15)}
  33%,100%{color:#9e8f96;transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .musa-site-loader{transition:none}
  .musa-loader-hearts span,.musa-loader-count span{animation:none}
}

.footer-ai-notice{margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.1)}.footer-ai-notice small{color:#bfaeb7;line-height:1.55}


/* V14 — botão flutuante de conversa */
.musa-floating-chat{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9000;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:13px 17px;
  border-radius:999px;
  background:#fff;
  color:#8f2f50;
  border:1px solid #efcad6;
  box-shadow:0 12px 34px rgba(80,27,47,.18);
  font-weight:900;
  font-size:14px;
  animation:musaFloatPulse 2.2s ease-in-out infinite
}
.musa-floating-chat:hover{transform:translateY(-2px)}
@keyframes musaFloatPulse{
  0%,100%{box-shadow:0 12px 34px rgba(80,27,47,.18),0 0 0 0 rgba(217,79,121,.20)}
  50%{box-shadow:0 12px 34px rgba(80,27,47,.18),0 0 0 8px rgba(217,79,121,0)}
}
@media(max-width:520px){
  .musa-floating-chat{right:12px;bottom:12px;padding:11px 14px}
}
@media(prefers-reduced-motion:reduce){.musa-floating-chat{animation:none}}


/* V15 — três rostos no botão flutuante */
.musa-floating-faces{
  display:flex;
  align-items:center;
  min-width:54px;
  padding-left:2px
}
.musa-floating-faces img{
  width:30px;
  height:30px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #fff;
  box-shadow:0 2px 8px rgba(36,27,34,.12);
  margin-left:-9px
}
.musa-floating-faces img:first-child{margin-left:0}
