:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-disabled: #c4b5fd;
  --primary-soft: #f3edff;
  --primary-soft-2: #ede4ff;
  --accent: #6b21a8;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --header-bg: #f9f8fc;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: 80px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 56px;
  display: flex; align-items: center; gap: 56px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; color: #12163a; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; }
.logo span em { font-style: normal; color: var(--primary); }
.nav { display: flex; gap: 40px; }
.nav a { display: flex; align-items: center; gap: 10px; color: #4b5563; font-size: 17px; }
.nav a svg { width: 22px; height: 22px; }
.nav a.active { color: var(--primary); }
.nav a:hover { color: var(--primary); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.lang {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 15px; font-weight: 600;
}
.lang .flag { width: 20px; height: 14px; border-radius: 2px; overflow: hidden; display: inline-block; }
.lang svg.chev { width: 14px; height: 14px; }
.profile { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--text-2); }
.profile svg { width: 24px; height: 24px; }

/* ---------- Layout ---------- */
.container { max-width: 1440px; margin: 0 auto; padding: 40px 56px 60px; }
.layout { display: grid; grid-template-columns: minmax(0, 864px) 432px; gap: 32px; align-items: start; }
.layout--wide { grid-template-columns: 1fr; }
.sidebar { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; }

.page-title { font-size: 25px; font-weight: 600; margin: 0 0 16px; }
.section-title { font-size: 21px; font-weight: 600; margin: 36px 0 16px; }
.section-sub { color: var(--text-2); font-size: 15px; margin: -8px 0 16px; }
.back { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; margin: 8px 0 30px 8px; }
.back svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.card-pad { padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 6px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 15px;
  transition: background .15s;
}
.btn:hover { background: var(--primary-hover); }
.btn--block { width: 100%; }
.btn--sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { background: var(--primary-disabled); cursor: default; }

/* ---------- Tabs / pills ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.tab {
  height: 30px; padding: 0 14px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
}
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.acc__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 16px; text-align: left; }
.acc__head .ic { width: 26px; height: 26px; flex: none; }
.acc__title { font-weight: 600; font-size: 17px; }
.acc__date { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.acc__chev { margin-left: auto; width: 18px; height: 18px; flex: none; transition: transform .2s; }
.acc.open .acc__chev { transform: rotate(180deg); }
.acc__body { display: none; padding: 0 16px 18px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.acc.open .acc__body { display: block; }
.acc__body p + p { margin-top: 10px; }

/* ---------- Lunar ---------- */
.moon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.moon { width: 46px; height: 46px; border-radius: 50%; flex: none; background: #f1f0f7; display: grid; place-items: center; }
.moon-name { color: var(--primary); font-weight: 600; font-size: 17px; }
.moon-ill { color: var(--text-2); font-size: 15px; }
.text-2 { color: var(--text-2); }

/* ---------- Rituals ---------- */
.ritual { text-align: center; padding: 22px 16px 16px; }
.ritual h3 { font-size: 21px; font-weight: 600; }
.tarot-stage { position: relative; height: 380px; width: 320px; margin: 16px auto 22px; }
.tarot-back {
  position: absolute; top: 50px; width: 110px; height: 285px; border-radius: 8px;
  background: linear-gradient(160deg, #5b3fa0, #46307f);
  border: 2px solid #3c2a6d;
}
.tarot-back::after { content: ""; position: absolute; inset: 22px 14px; border: 2px solid #e6c34a; border-radius: 40px 40px 6px 6px; opacity: .85; }
.tarot-back.l { left: 0; transform: rotate(-4deg); }
.tarot-back.r { right: 0; transform: rotate(4deg); }
.tarot-front {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 214px; height: 370px; background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 12px; box-shadow: 0 6px 24px rgba(17, 24, 39, .08);
}
.tarot-front svg { width: 100%; height: 100%; display: block; }
.tarot-front.reversed svg { transform: rotate(180deg); }
.ritual h4 { font-size: 21px; font-weight: 600; margin-bottom: 18px; }
.meaning { text-align: left; }
.meaning h5 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; margin: 14px 0 12px; }
.meaning h5 svg { width: 20px; height: 20px; color: #a855f7; }
.meaning p { color: var(--text-2); line-height: 1.55; }
.ritual .btn { width: 352px; max-width: 100%; margin-top: 18px; }

.cookie { position: relative; width: 260px; height: 200px; margin: 26px auto 12px; }
.cookie svg { width: 100%; height: 100%; }
.cookie__msg {
  position: absolute; left: -20px; right: -20px; top: 56px;
  background: #f5f3ff; padding: 8px 14px; font-size: 14px; line-height: 1.25;
  border: 1px solid #ece7fb;
}

/* ---------- Product cards (recommended / insights) ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.pcard__img { height: 128px; background: var(--primary-soft); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.pcard__img svg { height: 100%; width: auto; }
.pcard__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.pcard__body p { color: var(--text-2); font-size: 15px; line-height: 1.4; margin-bottom: 18px; }
.pcard__body .btn { margin-top: auto; }
.insights-grid .pcard__img { height: 128px; }
.insights-grid .pcard__body h3 { font-size: 16px; }
.insights-grid .pcard__body p { font-size: 13.5px; margin-bottom: 14px; }
.insights-grid .btn { height: 38px; font-size: 14px; }

/* ---------- Sidebar promos ---------- */
.promo { position: relative; padding: 24px; overflow: hidden; }
.promo h3 { font-size: 21px; font-weight: 600; line-height: 1.3; margin-bottom: 14px; max-width: 220px; }
.promo p { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 260px; margin-bottom: 22px; }
.promo .art { position: absolute; right: 0; top: 0; width: 140px; height: 130px; }
.promo--chat .art { width: 120px; height: 120px; top: 10px; right: 12px; }

/* ---------- Astrologers ---------- */
.astro { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 16px 24px 16px 16px; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 22px; overflow: hidden;
}
.astro__top { display: flex; align-items: center; gap: 10px; }
.astro__name { font-size: 17px; font-weight: 500; }
.badges { display: flex; gap: 8px; margin-left: auto; }
.badge { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #eef0fb; color: #3f3d8f; }
.badge--p { background: #f7ecfb; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tag { font-size: 12px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; }
.astro__bio { color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.svc { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.svc svg { width: 18px; height: 18px; color: var(--muted); }
.svc .hl { color: var(--accent); }
.svc s { color: var(--muted); }
.astro .btn { width: 290px; height: 48px; margin-top: 12px; }

/* Astrologer compact (horoscope page) */
.astro-mini { padding: 16px; display: flex; flex-direction: column; }
.astro-mini__top { display: flex; gap: 12px; }
.astro-mini__top .avatar { width: 60px; height: 60px; }
.astro-mini__name { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.astro-mini .badges { margin-left: 0; }
.astro-mini .tags { margin: 14px 0; }
.astro-mini .astro__bio { margin-bottom: 16px; }
.astro-mini .btn { margin-top: auto; }

/* Astrologer detail */
.ad { display: flex; gap: 24px; padding: 24px; }
.ad__photo { width: 168px; flex: none; }
.ad__photo .avatar { width: 168px; height: 168px; border-radius: 10px; font-size: 54px; }
.ad__video { margin-top: 12px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary-soft); color: var(--primary); border-radius: 6px; font-size: 15px; width: 100%; }
.ad__video svg { width: 20px; height: 20px; }
.ad h2 { font-size: 21px; font-weight: 600; margin-bottom: 14px; }
.ad .tags { margin: 0 0 16px; }
.ad .tag { font-size: 13px; padding: 6px 12px; }
.ad p { color: var(--text-2); line-height: 1.55; }
.stats { display: flex; justify-content: center; margin: 48px 0; }
.stat { text-align: center; padding: 0 64px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat span { display: block; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.stat b { font-size: 19px; font-weight: 600; }
.offer { text-align: center; padding: 24px; }
.offer .pill { display: inline-block; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #f7ecfb; color: var(--accent); margin-bottom: 8px; }
.offer svg.big { display: block; margin: 0 auto 6px; width: 32px; height: 32px; color: var(--primary); }
.offer h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.offer p { color: var(--text-2); margin-bottom: 18px; }
.offer .hl { color: var(--accent); }
.offer s { color: var(--muted); }

/* ---------- Courses ---------- */
.ccard__banner { position: relative; height: 182px; background: linear-gradient(135deg, #f1ebff, #faf8ff); overflow: hidden; padding: 20px 16px; }
.ccard__brand { font-weight: 800; font-size: 18px; letter-spacing: -0.03em; color: #12163a; margin-bottom: 18px; }
.ccard__btitle { font-weight: 600; font-size: 17px; color: #1f2937; max-width: 190px; line-height: 1.2; position: relative; z-index: 1; }
.ccard__circle { position: absolute; right: -20px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: #9b6cf3; }
.ccard__person { position: absolute; right: 10px; bottom: 0; width: 160px; height: 180px; }
.ccard__star { position: absolute; right: 120px; bottom: 50px; width: 34px; height: 34px; color: #c4a8fb; }
.ccard__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.ccard__body h3 { font-size: 19px; font-weight: 600; line-height: 1.45; color: #1f2937; margin-bottom: 14px; }
.meta { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.meta svg { width: 16px; height: 16px; color: var(--muted); }
.meta .gap { width: 6px; }
.ccard__body p { color: var(--text-2); line-height: 1.55; margin: 12px 0 18px; }
.ccard__body .btn { margin-top: auto; }

.chead { padding: 24px; }
.chead h1 { font-size: 21px; font-weight: 600; margin-bottom: 14px; }
.chead p { color: var(--text-2); margin-bottom: 12px; }
.chead .btn { width: 280px; margin-top: 14px; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 32px 0 14px; }
.prose p { color: var(--text-2); line-height: 1.6; margin-bottom: 18px; }
.prose ul { list-style: disc; padding-left: 32px; color: var(--text-2); }
.prose li { margin-bottom: 10px; font-size: 15px; letter-spacing: -0.01em; }
.progress { padding: 24px; }
.progress__row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 12px; }
.progress__row span { font-weight: 500; color: var(--muted); }
.progress__bar { height: 6px; border-radius: 99px; background: #eceef1; overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--primary); }
.lesson-count { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; margin-top: 6px; }
.lesson-count svg { width: 18px; height: 18px; color: var(--muted); }
.lesson-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-2); font-size: 14px; border-top: 1px solid var(--border); }
.lesson-list li svg { width: 16px; height: 16px; color: var(--primary); }

/* ---------- Soulmate ---------- */
.sm-hero { display: grid; grid-template-columns: 1fr 280px; overflow: hidden; }
.sm-hero__left { display: flex; align-items: center; gap: 24px; padding: 24px; }
.ring { position: relative; width: 130px; height: 130px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__txt small { font-size: 12px; color: var(--muted); }
.ring__txt b { font-size: 19px; color: var(--accent); font-weight: 600; }
.sm-hero h2 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.sm-hero__right { background: #f4efff; padding: 20px 24px; }
.sm-hero__right h3 { font-size: 17px; font-weight: 600; line-height: 1.6; }
.sm-hero__right .price { font-size: 13px; margin: 2px 0 14px; }
.sm-hero__right .price b { color: var(--accent); font-weight: 500; }
.sm-hero__right .price s { color: var(--muted); }
.sm-sec { padding: 24px; }
.sm-sec h3 { font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.sm-sec h3:not(:first-child) { margin-top: 22px; }
.sm-sec p { color: var(--text-2); line-height: 1.6; }
.sm-sec p + p { margin-top: 14px; }
.unlock { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.unlock .btn { width: 320px; font-weight: 500; }
.unlock span { font-size: 14px; color: var(--text-2); }
.fab { position: fixed; right: 24px; bottom: 24px; width: 72px; height: 72px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; box-shadow: 0 0 0 8px #ede4ff; z-index: 40; }
.fab svg { width: 34px; height: 34px; color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 24px 56px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header__inner { padding: 0 16px; gap: 16px; }
  .nav { gap: 16px; }
  .nav a span { display: none; }
  .profile span, .lang span { display: none; }
  .container { padding: 24px 16px 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .astro .btn, .chead .btn, .unlock .btn { width: 100%; }
  .unlock { flex-direction: column; align-items: stretch; }
  .badges { margin-left: 0; }
  .astro__top { flex-wrap: wrap; }
  .ad { flex-direction: column; }
  .stat { padding: 0 28px; }
  .sm-hero { grid-template-columns: 1fr; }
  .tarot-stage { transform: scale(.85); transform-origin: top center; margin-bottom: -30px; }
}

/* ---------- Área protegida ---------- */
body[data-protected] main, body[data-protected] .footer, body[data-protected] .fab { visibility: hidden; }

/* ---------- Menu do perfil ---------- */
.profile-wrap { position: relative; }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .1); padding: 8px;
}
.profile-menu__email { font-size: 13px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; word-break: break-all; }
.profile-menu button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; font-size: 15px; }
.profile-menu button:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------- Páginas de acesso (login, confirmação, checkout) ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #f6f1ff 0%, #fff 60%); }
.auth-top { padding: 24px; display: flex; justify-content: center; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 64px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: 0 12px 40px rgba(76, 29, 149, .08); }
.auth-card--wide { max-width: 520px; }
.auth-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 18px; }
.auth-icon svg { width: 28px; height: 28px; }
.auth-icon--ok { background: #e8f8ef; color: #16a34a; }
.auth-card h1 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 10px; letter-spacing: -0.01em; }
.auth-card .lead { color: var(--text-2); text-align: center; margin-bottom: 24px; line-height: 1.55; }
.field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; height: 48px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 16px; }
.input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.auth-card .btn { width: 100%; margin-top: 14px; }
.auth-msg { font-size: 14px; margin-top: 10px; min-height: 1px; }
.auth-msg.error { color: #dc2626; }
.auth-sent { margin-top: 20px; padding: 14px 16px; background: var(--primary-soft); border-radius: 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.auth-sent b { color: var(--text); }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.auth-foot a { color: var(--primary); font-weight: 600; }
.sim-banner { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 20px; line-height: 1.45; }
.order { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 4px 0 20px; }
.order__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 15px; }
.order__row s { color: var(--muted); margin-right: 6px; }
.order__row b { color: var(--accent); }
.order__total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-weight: 700; }
.order__terms { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--primary-soft-2); border-top-color: var(--primary); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
