:root {
    --accent: #F2546B;
    --accent-2: #FF8A5B;
    --grad: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    --bg: #F4F4F6;
    --card: #FFFFFF;
    --text: #17171C;
    --muted: #8A8A96;
    --line: #ECECF0;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex; justify-content: center;
  }
  .app { width: 100%; max-width: 440px; min-height: 100dvh; background: var(--bg); position: relative; }
  button { font-family: inherit; }

  /* ---------- PERFIL ---------- */
  .cover {
    height: 150px;
    background: var(--grad);
    background-size: cover; background-position: center;
    position: relative;
  }
  .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .profile-card { background: var(--card); padding: 0 16px 16px; position: relative; }
  .avatar-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -44px; }
  .avatar {
    width: 92px; height: 92px; border-radius: 50%;
    border: 4px solid var(--card); object-fit: cover; background: #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
  }
  .online-dot {
    position: absolute; left: 86px; top: 32px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #2ECC71; border: 3px solid var(--card);
  }
  .icon-btns { display: flex; gap: 8px; padding-bottom: 6px; }
  .icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--card);
    display: grid; place-items: center; cursor: pointer;
  }
  .icon-btn svg { width: 20px; height: 20px; stroke: var(--text); }
  .name { font-size: 20px; font-weight: 700; margin-top: 10px; }
  .handle { color: var(--muted); font-size: 14px; margin-top: 2px; }
  .bio { font-size: 14px; line-height: 1.45; margin-top: 10px; color: #3A3A44; }
  .stats { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
  .stats strong { color: var(--text); font-weight: 700; }

  /* ---------- ASSINATURA ---------- */
  .section { background: var(--card); margin-top: 8px; padding: 16px; }
  .section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
  .plan-btn {
    width: 100%; border: none; cursor: pointer;
    background: var(--grad); color: #fff;
    border-radius: 999px; padding: 15px 20px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: 700;
    box-shadow: 0 6px 18px rgba(242, 84, 107, .28);
  }
  .plan-btn .price { font-size: 16px; }
  .plan-btn.secondary {
    background: #fff; color: var(--accent);
    border: 1.5px solid var(--accent); box-shadow: none;
  }
  .plan-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

  /* ---------- BOTÃO PRINCIPAL: FALAR COM ELA ---------- */
  .chat-cta {
    width: 100%; border: none; cursor: pointer;
    background: var(--grad); color: #fff;
    border-radius: 18px; padding: 18px 20px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 18px; font-weight: 800; letter-spacing: .1px;
    box-shadow: 0 8px 24px rgba(242, 84, 107, .38);
    animation: pulse 2.2s ease-in-out infinite;
  }
  .chat-cta svg { width: 26px; height: 26px; stroke: #fff; flex-shrink: 0; }
  .chat-cta .sub { display: block; font-size: 12px; font-weight: 600; opacity: .9; margin-top: 2px; }
  .chat-cta .txt { text-align: left; line-height: 1.15; }
  .chat-cta .live {
    width: 10px; height: 10px; border-radius: 50%; background: #3BFF8A;
    box-shadow: 0 0 0 3px rgba(255,255,255,.35); flex-shrink: 0;
  }
  .profile-card .chat-cta { margin-top: 16px; }
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
  }
  .perks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; justify-content: center; }
  .perk {
    font-size: 12px; color: #4A4A55;
    background: #F6F6F8; border-radius: 999px; padding: 6px 10px;
  }

  /* ---------- ABAS ---------- */
  .tabs { display: flex; background: var(--card); margin-top: 8px; border-bottom: 1px solid var(--line); }
  .tab {
    flex: 1; text-align: center; padding: 14px 0 12px;
    font-size: 14px; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
  }
  .tab.active { color: var(--text); border-bottom-color: var(--accent); }

  /* ---------- POST FIXADO (VSL) ---------- */
  .post { background: var(--card); padding: 14px 16px 12px; }
  .post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .post-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
  .post-head .n { font-size: 14px; font-weight: 700; }
  .post-head .d { font-size: 12px; color: var(--muted); }
  .pin { margin-left: auto; font-size: 11px; color: var(--accent); font-weight: 700; }
  .post-text { font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
  .post video { width: 100%; border-radius: 12px; background: #000; max-height: 70vh; display: block; }
  .post-actions { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
  .post-actions span { display: flex; align-items: center; gap: 6px; }
  .post-actions svg { width: 18px; height: 18px; stroke: var(--muted); }

  /* ---------- GRADE BLOQUEADA ---------- */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--card); padding-top: 2px; }
  .tile { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: #222; }
  .tile img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.85); transform: scale(1.2); }
  .tile .lock {
    position: absolute; inset: 0; display: grid; place-items: center;
  }
  .tile .lock div {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.22); backdrop-filter: blur(4px);
    display: grid; place-items: center;
  }
  .tile .lock svg { width: 18px; height: 18px; stroke: #fff; }
  .tile .badge {
    position: absolute; right: 6px; bottom: 6px;
    font-size: 11px; color: #fff; font-weight: 600;
    display: flex; align-items: center; gap: 3px;
  }
  .locked-cta {
    background: var(--card); text-align: center; padding: 20px 16px 110px;
    font-size: 13px; color: var(--muted);
  }

  /* ---------- BARRA FIXA ---------- */
  .sticky {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 440px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    display: flex; gap: 10px; z-index: 5;
  }
  .sticky .chat-cta { flex: 1; padding: 16px 18px; }
  .buy-mini {
    flex-shrink: 0; cursor: pointer;
    background: #fff; color: var(--accent);
    border: 1.5px solid var(--accent); border-radius: 18px;
    padding: 0 14px; font-size: 14px; font-weight: 700;
  }

  /* ---------- CHAT (DM) ---------- */
  .dm {
    position: fixed; inset: 0; z-index: 20;
    display: none; justify-content: center;
    background: rgba(0,0,0,.35);
  }
  .dm.open { display: flex; }
  .dm-inner {
    width: 100%; max-width: 440px; height: 100dvh;
    background: #fff; display: flex; flex-direction: column;
    animation: slideUp .25s ease-out;
  }
  @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
  .dm-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0;
  }
  .dm-head .back { background: none; border: none; cursor: pointer; padding: 4px; display: grid; place-items: center; }
  .dm-head .back svg { width: 22px; height: 22px; stroke: var(--text); }
  .dm-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
  .dm-head .n { font-size: 15px; font-weight: 700; }
  .dm-head .s { font-size: 12px; color: #2ECC71; }
  .chat {
    flex: 1; overflow-y: auto; padding: 16px 14px;
    display: flex; flex-direction: column; gap: 6px;
    background: #FAFAFB;
  }
  .bubble {
    max-width: 78%; padding: 9px 13px 5px; border-radius: 18px;
    font-size: 15px; line-height: 1.4; animation: pop .18s ease-out;
  }
  .bubble.them { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
  .bubble.me { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
  .bubble img { width: 100%; border-radius: 12px; margin: 2px 0 4px; display: block; }
  .bubble .t { font-size: 10px; opacity: .6; text-align: right; margin-top: 2px; }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  .typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: none; gap: 4px; }
  .typing span { width: 7px; height: 7px; border-radius: 50%; background: #B8B8C2; animation: blink 1.2s infinite; }
  .typing span:nth-child(2) { animation-delay: .2s; }
  .typing span:nth-child(3) { animation-delay: .4s; }
  @keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

  .replies {
    display: none; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: #fff; flex-shrink: 0;
  }
  .reply-btn {
    background: #fff; color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 10px 16px; border-radius: 999px;
    font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .dm-checkout {
    display: none; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: #fff; flex-shrink: 0;
    animation: pop .25s ease-out;
  }
  .dm-checkout .plan-note { margin-top: 8px; }

/* ---------- engrenagem e carregamento ---------- */
.gear {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.22); display: grid; place-items: center;
  opacity: .6; transition: opacity .2s;
}
.gear:hover { opacity: 1; }
.gear svg { width: 18px; height: 18px; stroke: #fff; }
.app.loading { opacity: 0; }
.app { transition: opacity .25s; }

/* =========================================================
   CHECKOUT PIX
   ========================================================= */
.co { position: fixed; inset: 0; z-index: 40; background: #F1F1F3; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.co.open { display: block; }
.co-wrap { max-width: 440px; margin: 0 auto; padding: 12px 12px calc(28px + env(safe-area-inset-bottom)); animation: slideUp .25s ease-out; }
.co-bar {
  background: #0B0B0D; color: #fff; border-radius: 12px; padding: 11px 44px 11px 14px;
  font-size: 13px; font-weight: 600; text-align: center; position: relative; margin-bottom: 12px;
}
.co-bar .x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: transparent; color: #fff; font-size: 22px; cursor: pointer; line-height: 1;
}
.co-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); border: 1px solid #ECECF0; }
.co-seller { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; }
.co-seller img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: #eee; }
.co-seller b { font-size: 15px; }
.co-seller span { margin-left: auto; font-size: 12px; color: var(--muted); }
.co-item { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid #EFEFF2; }
.co-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #eee; flex-shrink: 0; }
.co-item .t { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.co-item .p { text-align: right; white-space: nowrap; }
.co-item .p s { display: block; font-size: 12px; color: #9A9AA5; }
.co-item .p b { font-size: 15px; }
.co-line { display: flex; justify-content: space-between; font-size: 14px; color: #4A4A55; padding: 12px 0; border-bottom: 1px solid #EFEFF2; }
.co-line.total { border: none; font-size: 17px; font-weight: 800; color: var(--text); padding-bottom: 2px; }

.co-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.co-h h3 { font-size: 18px; }
.co-h span { font-size: 12px; color: #6A6A75; display: flex; align-items: center; gap: 4px; }
.co-step { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.co-step i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; background: #0B0B0D; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.co-step span { font-size: 14px; font-weight: 600; color: #3A3A44; }
.co input[type=email] {
  width: 100%; padding: 14px; border: 1px solid #DCDCE2; border-radius: 12px; font: inherit; font-size: 16px; margin-bottom: 12px;
}
.co input[type=email]:focus { outline: 2px solid #0B0B0D; border-color: transparent; }
.co-info { background: #F7F7F9; border: 1px solid #EFEFF2; border-radius: 12px; padding: 12px; font-size: 12.5px; color: #4A4A55; line-height: 1.7; margin-bottom: 16px; }
.co-method { border: 1.5px solid #0B0B0D; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.co-area { border: 1.5px dashed #DCDCE2; border-radius: 12px; padding: 14px; font-size: 13px; color: #6A6A75; line-height: 1.5; margin-bottom: 14px; text-align: center; }
.co-area img.qr { width: 190px; height: 190px; display: block; margin: 4px auto 10px; image-rendering: pixelated; }
.co-code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #4A4A55; background: #F7F7F9; border-radius: 8px; padding: 8px; word-break: break-all; max-height: 58px; overflow: hidden; text-align: left; }
.co-wait { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: #3A3A44; margin-bottom: 10px; }
.co-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #DCDCE2; border-top-color: #0B0B0D; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-howto { text-align: left; font-size: 12.5px; color: #6A6A75; margin: 10px 0 0 18px; line-height: 1.7; }
.co-btn {
  display: block; width: 100%; border: none; border-radius: 14px; padding: 17px;
  background: #0B0B0D; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; font-family: inherit;
}
.co-btn:disabled { opacity: .55; }
.co-btn.green { background: #1FAF5A; }
.co-link { display: block; width: 100%; background: none; border: none; color: #6A6A75; font-size: 14px; font-weight: 600; padding: 14px; cursor: pointer; font-family: inherit; }
.co-err { color: #B3261E; font-size: 13px; margin-top: 10px; text-align: center; display: none; }
.co-err a { color: inherit; font-weight: 700; }
.co-done { text-align: center; padding: 10px 0 4px; }
.co-done .ok { width: 58px; height: 58px; border-radius: 50%; background: #E8F8EE; color: #1FAF5A; font-size: 30px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; }
.co-done h3 { font-size: 19px; margin-bottom: 6px; }
.co-done p { font-size: 14px; color: #6A6A75; margin-bottom: 16px; }
.co-rev h4 { font-size: 15px; margin-bottom: 8px; }
.co-rev .r { padding: 10px 0; border-bottom: 1px solid #EFEFF2; }
.co-rev .r:last-child { border: none; }
.co-rev .stars { color: #F5A623; font-size: 13px; letter-spacing: 1px; }
.co-rev .q { font-size: 14px; margin: 4px 0 2px; }
.co-rev .a { font-size: 12px; color: var(--muted); }
.plan-btn .price s { font-size: 12px; font-weight: 600; opacity: .6; margin-right: 6px; }
.co [hidden] { display: none !important; }
