/* ── Fontes (hospedadas localmente — performance e LGPD) ──── */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-var.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-var.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-var-italic.woff2') format('woff2-variations');
}

/* ============================================================
   AstroProfile — Design System "Indole"
   Tokens oficiais (base: knowledge/Indole-Design-System-UX.md)
   Grid 8px · 3 níveis de elevação · dourado < 5% da UI
   ============================================================ */

:root {
    /* Cores */
    --ap-azul-noite: #0F1B2D;
    --ap-azul-petroleo: #16495B;
    --ap-dourado: #C6A15B;
    --ap-branco: #FFFFFF;
    --ap-cinza-superficie: #F5F6F8;
    --ap-cinza-borda: #E2E4E9;
    --ap-cinza-texto: #6B7280;
    --ap-tinta: #10131A;
    --ap-sucesso: #3E8E63;
    --ap-atencao: #B98900;
    --ap-erro: #B24B4B;

    /* Composição de 3 tons (azul-gelo) */
    --ap-tone-1: #DFEBF0;   /* mais profundo: hero, sidebar, rodapés */
    --ap-tone-2: #F1F6F8;   /* base das páginas */
    --ap-tone-3: #FFFFFF;   /* cards e superfícies elevadas */

    /* Semânticos (modo claro) */
    --ap-bg: var(--ap-tone-2);
    --ap-surface: var(--ap-tone-3);
    --ap-border: #D8E3E8;
    --ap-text: var(--ap-tinta);
    --ap-text-muted: var(--ap-cinza-texto);
    --ap-primary: var(--ap-azul-noite);
    --ap-accent: var(--ap-azul-petroleo);

    /* Tipografia */
    --ap-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ap-font-serif: 'Fraunces', Georgia, serif;

    /* Espaçamento (escala fechada de 8px) */
    --ap-xs: 4px;  --ap-sm: 8px;   --ap-md: 16px; --ap-lg: 24px;
    --ap-xl: 32px; --ap-2xl: 48px; --ap-3xl: 64px;

    /* Raios */
    --ap-radius-input: 10px;
    --ap-radius-btn: 12px;
    --ap-radius-card: 16px;
    --ap-radius-modal: 20px;

    /* Elevação (máx. 24px blur / 8% opacidade) */
    --ap-shadow-1: 0 1px 3px rgba(15, 27, 45, 0.05);
    --ap-shadow-2: 0 4px 12px rgba(15, 27, 45, 0.07);
    --ap-shadow-3: 0 8px 24px rgba(15, 27, 45, 0.08);

    /* Transições */
    --ap-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo escuro */
[data-theme="dark"] {
    --ap-tone-1: #0B1524;
    --ap-tone-2: var(--ap-azul-noite);
    --ap-tone-3: #16233A;
    --ap-bg: var(--ap-tone-2);
    --ap-surface: var(--ap-tone-3);
    --ap-border: #24344E;
    --ap-text: #EDF0F4;
    --ap-text-muted: #93A0B4;
    --ap-primary: #EDF0F4;
    --ap-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.2);
    --ap-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.25);
    --ap-shadow-3: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── Base ──────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
    margin: 0;
    font-family: var(--ap-font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ap-text);
    background: var(--ap-bg);
    transition: background var(--ap-transition), color var(--ap-transition);
}

h1 { font-size: 32px; line-height: 40px; font-weight: 600; margin: 0 0 var(--ap-md); }
h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 0 0 var(--ap-md); }
h3 { font-size: 19px; line-height: 28px; font-weight: 600; margin: 0 0 var(--ap-sm); }

.ap-serif { font-family: var(--ap-font-serif); font-weight: 400; }

.ap-muted { color: var(--ap-text-muted); }

.ap-caption {
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ap-text-muted);
}

/* ── Componentes base ──────────────────────────────────────── */

.ap-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-card);
    padding: var(--ap-lg);
    box-shadow: var(--ap-shadow-1);
    transition: box-shadow var(--ap-transition), transform var(--ap-transition);
}

.ap-card:hover { box-shadow: var(--ap-shadow-2); }

.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ap-sm);
    padding: 12px 24px;
    border-radius: var(--ap-radius-btn);
    border: 1px solid transparent;
    font: 500 16px/1 var(--ap-font-sans);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ap-transition);
}

.ap-btn-primary { background: var(--ap-azul-petroleo); color: #fff; }
.ap-btn-primary:hover { background: var(--ap-azul-noite); color: #fff; }

.ap-btn-ghost { background: transparent; color: var(--ap-text); border-color: var(--ap-border); }
.ap-btn-ghost:hover { border-color: var(--ap-azul-petroleo); color: var(--ap-azul-petroleo); }

.ap-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    color: var(--ap-text);
}

.ap-badge-premium {
    background: rgba(198, 161, 91, 0.12);
    border-color: rgba(198, 161, 91, 0.4);
    color: var(--ap-dourado);
}

.ap-badge-ok { background: rgba(62, 142, 99, 0.1); border-color: rgba(62, 142, 99, 0.35); color: var(--ap-sucesso); }
.ap-badge-warn { background: rgba(185, 137, 0, 0.1); border-color: rgba(185, 137, 0, 0.35); color: var(--ap-atencao); }
.ap-badge-err { background: rgba(178, 75, 75, 0.1); border-color: rgba(178, 75, 75, 0.35); color: var(--ap-erro); }

.ap-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-input);
    font: 400 16px/1.5 var(--ap-font-sans);
    color: var(--ap-text);
    background: var(--ap-surface);
    transition: border-color var(--ap-transition), box-shadow var(--ap-transition);
}

.ap-input:focus {
    outline: none;
    border-color: var(--ap-azul-petroleo);
    box-shadow: 0 0 0 2px rgba(22, 73, 91, 0.15);
}

/* ── Utilidades de layout ──────────────────────────────────── */

.ap-container { max-width: 1200px; margin: 0 auto; padding: 0 var(--ap-lg); }

.ap-center-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ap-lg);
}

/* ── Autenticação ──────────────────────────────────────────── */

.ap-auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-modal);
    padding: var(--ap-2xl) var(--ap-xl);
    box-shadow: var(--ap-shadow-3);
}

.ap-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin: var(--ap-md) 0 var(--ap-xs);
    color: var(--ap-text);
}

.ap-btn-block { width: 100%; justify-content: center; }

.ap-link { color: var(--ap-azul-petroleo); text-decoration: none; font-size: 14px; }
.ap-link:hover { text-decoration: underline; }

.ap-field-error { color: var(--ap-erro); font-size: 13px; margin: 4px 0 0; }

.ap-social-buttons { display: flex; flex-direction: column; gap: var(--ap-sm); }

.ap-divider {
    display: flex;
    align-items: center;
    gap: var(--ap-md);
    margin: var(--ap-lg) 0;
    color: var(--ap-text-muted);
    font-size: 13px;
}
.ap-divider::before, .ap-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ap-border);
}

.ap-alert {
    padding: 12px 16px;
    border-radius: var(--ap-radius-input);
    font-size: 14px;
    margin-bottom: var(--ap-md);
    border: 1px solid;
}
.ap-alert-ok   { background: rgba(62,142,99,.08);  border-color: rgba(62,142,99,.3);  color: var(--ap-sucesso); }
.ap-alert-err  { background: rgba(178,75,75,.08);  border-color: rgba(178,75,75,.3);  color: var(--ap-erro); }
.ap-alert-info { background: rgba(22,73,91,.08);   border-color: rgba(22,73,91,.3);   color: var(--ap-azul-petroleo); }

/* Toggle de visibilidade de senha */
.ap-pass-wrap { position: relative; }
.ap-pass-wrap .ap-input { padding-right: 48px; }
.ap-pass-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    color: var(--ap-text-muted);
    opacity: .55;
    border-radius: 8px;
    transition: opacity var(--ap-transition);
}
.ap-pass-toggle:hover, .ap-pass-toggle.is-on { opacity: 1; }

/* ── Shell do app (sidebar + topbar) ───────────────────────── */

.ap-app { display: flex; min-height: 100vh; }

.ap-sidebar {
    width: 248px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--ap-tone-1);
    border-right: 1px solid var(--ap-border);
    padding: var(--ap-lg) var(--ap-md);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.ap-sidebar-brand {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 var(--ap-sm) var(--ap-lg);
    color: var(--ap-text);
}

.ap-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.ap-nav-group {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ap-text-muted);
    padding: var(--ap-md) var(--ap-sm) var(--ap-xs);
}

.ap-nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--ap-text);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--ap-font-sans);
    transition: background var(--ap-transition), color var(--ap-transition);
}

.ap-nav-item:hover { background: rgba(22, 73, 91, 0.07); }
.ap-nav-item.is-active { background: var(--ap-azul-petroleo); color: #fff; font-weight: 500; }

.ap-nav-item.is-soon { color: var(--ap-text-muted); cursor: default; }
.ap-nav-item.is-soon:hover { background: none; }
.ap-nav-item.is-soon em {
    font-style: normal;
    font-size: 11px;
    color: var(--ap-dourado);
    margin-left: 6px;
}

.ap-nav-logout { color: var(--ap-erro); }
.ap-sidebar-footer { padding-top: var(--ap-md); border-top: 1px solid var(--ap-border); }

.ap-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.ap-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ap-md) var(--ap-xl);
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--ap-bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ap-border);
    z-index: 10;
}

.ap-topbar-right { display: flex; align-items: center; gap: var(--ap-md); margin-left: auto; }

.ap-menu-btn, .ap-theme-btn {
    border: 1px solid var(--ap-border);
    background: var(--ap-bg);
    color: var(--ap-text);
    width: 36px; height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.ap-menu-btn { display: none; }

.ap-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--ap-azul-petroleo);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
}
.ap-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ap-content {
    padding: var(--ap-xl);
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
}

.ap-page-head { margin-bottom: var(--ap-xl); }
.ap-page-head h1 { margin-bottom: 4px; }

/* ── Grid do Dashboard ─────────────────────────────────────── */

.ap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ap-lg);
}
.ap-span-2 { grid-column: span 2; }
.ap-span-3 { grid-column: span 3; }

.ap-sign-card { text-align: left; }
.ap-sign-symbol { font-size: 40px; line-height: 1; margin-bottom: var(--ap-sm); }
.ap-sign-meta { display: flex; flex-direction: column; gap: 6px; margin: var(--ap-md) 0; }
.ap-sign-meta div { display: flex; justify-content: space-between; font-size: 14px; }

.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--ap-md); }

.ap-editorial {
    font-family: var(--ap-font-serif);
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--ap-text);
}

.ap-list { font-size: 14.5px; line-height: 1.7; }

.ap-area-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ap-lg);
}
.ap-area-card { text-decoration: none; color: var(--ap-text); display: block; }
.ap-area-card h3 { margin-bottom: 4px; }
.ap-area-card p { margin: 0 0 var(--ap-md); font-size: 14px; }
.ap-area-card:hover { transform: translateY(-2px); box-shadow: var(--ap-shadow-2); }

/* ── Páginas de leitura ────────────────────────────────────── */

.ap-reading { max-width: 720px; }
.ap-reading-block { margin-bottom: var(--ap-2xl); }
.ap-reading-block h2 {
    font-family: var(--ap-font-serif);
    font-weight: 400;
    font-size: 26px;
    margin-bottom: var(--ap-md);
}

/* ── Responsivo ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .ap-grid { grid-template-columns: 1fr; }
    .ap-span-2, .ap-span-3 { grid-column: span 1; }
    .ap-area-grid { grid-template-columns: 1fr; }

    .ap-sidebar {
        position: fixed;
        left: -260px;
        z-index: 40;
        transition: left var(--ap-transition);
        box-shadow: var(--ap-shadow-3);
    }
    .ap-sidebar.is-open { left: 0; }
    .ap-menu-btn { display: block; }
    .ap-content { padding: var(--ap-lg); }
}

/* ── Chat IA ───────────────────────────────────────────────── */

.ap-chat {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--ap-lg);
    height: calc(100vh - 140px);
    min-height: 480px;
}

.ap-chat-list { overflow-y: auto; padding-right: 4px; }

.ap-chat-list-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ap-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.ap-chat-list-item:hover { background: var(--ap-surface); }
.ap-chat-list-item.is-active { background: var(--ap-surface); font-weight: 600; }

.ap-chat-thread {
    display: flex;
    flex-direction: column;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-card);
    padding: var(--ap-lg);
    box-shadow: var(--ap-shadow-3);
    min-width: 0;
}

.ap-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--ap-md);
    padding-bottom: var(--ap-md);
}

.ap-chat-empty { margin: auto; text-align: center; max-width: 380px; }

.ap-msg {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ap-msg-user {
    align-self: flex-end;
    background: var(--ap-azul-petroleo);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.ap-msg-assistant {
    align-self: flex-start;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-bottom-left-radius: 6px;
}

.ap-msg.is-typing { color: var(--ap-text-muted); letter-spacing: 3px; }
.ap-msg.is-error { color: var(--ap-erro); border-color: rgba(178,75,75,.35); }

.ap-chat-form { display: flex; gap: var(--ap-sm); align-items: flex-end; }
.ap-chat-form textarea { resize: none; }

.ap-chat-quota { font-size: 12.5px; margin: 8px 4px 0; }

@media (max-width: 900px) {
    .ap-chat { grid-template-columns: 1fr; height: calc(100vh - 160px); }
    .ap-chat-list { display: none; }
}

/* ── Premium ───────────────────────────────────────────────── */

.ap-pack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ap-lg);
}

@media (max-width: 900px) {
    .ap-pack-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Compatibilidade ───────────────────────────────────────── */

.ap-compat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ap-md);
    padding: 12px 4px;
    border-bottom: 1px solid var(--ap-border);
    color: var(--ap-text);
    text-decoration: none;
    font-size: 14.5px;
}
.ap-compat-item:hover span:first-child { color: var(--ap-azul-petroleo); }
.ap-compat-item:last-child { border-bottom: none; }

@media (max-width: 900px) {
    .ap-grid[style] { grid-template-columns: 1fr !important; }
}

/* ── Polimento (Módulo 09) ─────────────────────────────────── */

/* Ícones da sidebar */
.ap-icon { flex-shrink: 0; opacity: .75; vertical-align: -3px; margin-right: 10px; }
.ap-nav-item { display: flex; align-items: center; }
.ap-nav-item.is-active .ap-icon { opacity: 1; }
.ap-nav-logout { display: flex; align-items: center; }

/* Listas do conteúdo oficial */
.ap-ul { margin: 0; padding-left: 2px; list-style: none; }
.ap-ul li {
    position: relative;
    padding: 5px 0 5px 22px;
    line-height: 1.55;
}
.ap-ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ap-azul-petroleo);
    opacity: .55;
}
.ap-editorial p { margin: 0 0 1em; }
.ap-editorial p:last-child { margin-bottom: 0; }
.ap-list p { margin: 0 0 .6em; }

/* Animações de entrada (sutis, como manda o Design System) */
@keyframes ap-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ap-content .ap-page-head { animation: ap-rise .35s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.ap-content .ap-card { animation: ap-rise .4s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.ap-content .ap-card:nth-child(2) { animation-delay: .05s; }
.ap-content .ap-card:nth-child(3) { animation-delay: .1s; }
.ap-content .ap-card:nth-child(4) { animation-delay: .15s; }
.ap-grid > .ap-card:nth-child(2) { animation-delay: .05s; }
.ap-grid > .ap-card:nth-child(3) { animation-delay: .1s; }
.ap-grid > .ap-card:nth-child(4) { animation-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Landing Page ──────────────────────────────────────────── */

.lp { background: #F1F6F8; color: var(--ap-tinta); }

.lp-container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.lp-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 14px 0;
    transition: background var(--ap-transition), box-shadow var(--ap-transition);
}
.lp-topbar.is-scrolled {
    background: rgba(241, 246, 248, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--ap-cinza-borda);
}
.lp-topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.lp-logo { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; }
.lp-nav { display: flex; align-items: center; gap: 22px; }
.lp-nav-link { color: var(--ap-cinza-texto); text-decoration: none; font-size: 14.5px; }
.lp-nav-link:hover { color: var(--ap-azul-petroleo); }
.lp-nav-cta { padding: 9px 18px; font-size: 14.5px; }

.lp-hero {
    padding: 168px 0 72px;
    text-align: center;
    background:
        radial-gradient(900px 420px at 50% -80px, rgba(22, 73, 91, 0.16), transparent 70%),
        linear-gradient(180deg, #DFEBF0 0%, #F1F6F8 100%);
}
.lp-hero-title {
    font-family: var(--ap-font-serif);
    font-weight: 400;
    font-size: clamp(38px, 7vw, 64px);
    line-height: 1.12;
    margin: 0 0 20px;
}
.lp-hero-sub {
    font-size: 18.5px;
    line-height: 1.6;
    color: var(--ap-cinza-texto);
    max-width: 560px;
    margin: 0 auto 32px;
}
.lp-hero-cta { font-size: 17px; padding: 15px 32px; }
.lp-hero-note { font-size: 13.5px; color: var(--ap-cinza-texto); margin-top: 14px; }

.lp-proof { padding: 24px 0 72px; }
.lp-proof-card {
    max-width: 620px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid rgba(22, 73, 91, 0.10);
    border-radius: var(--ap-radius-card);
    padding: 32px;
    box-shadow: var(--ap-shadow-2);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}
.lp-proof-card.is-visible { opacity: 1; transform: translateY(0); }
.lp-proof-text {
    font-family: var(--ap-font-serif);
    font-size: 19px;
    line-height: 1.65;
    margin: 0 0 14px;
}
.lp-proof-source { font-size: 13px; color: var(--ap-cinza-texto); margin: 0; }

.lp-section { padding: 72px 0; }
.lp-section-alt { background: #E7F0F4; }
.lp-section-title {
    font-family: var(--ap-font-serif);
    font-weight: 400;
    font-size: clamp(26px, 4vw, 36px);
    text-align: center;
    margin: 0 0 48px;
}

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.lp-step { text-align: left; }
.lp-step-number {
    display: inline-flex;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--ap-azul-petroleo);
    color: #fff;
    font-weight: 600;
    margin-bottom: 14px;
}
.lp-step h3 { font-size: 18px; margin: 0 0 8px; }
.lp-step p { color: var(--ap-cinza-texto); font-size: 15px; line-height: 1.6; margin: 0; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-feature {
    background: #FFFFFF;
    border: 1px solid rgba(22, 73, 91, 0.10);
    border-radius: var(--ap-radius-card);
    padding: 24px;
}
.lp-feature h3 { font-size: 17px; margin: 0 0 6px; }
.lp-feature p { color: var(--ap-cinza-texto); font-size: 14.5px; line-height: 1.55; margin: 0; }

.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.lp-plan {
    border: 1px solid rgba(22, 73, 91, 0.10);
    border-radius: var(--ap-radius-card);
    padding: 28px;
    background: #FFFFFF;
    box-shadow: var(--ap-shadow-1);
}
.lp-plan-featured { border-color: rgba(198, 161, 91, 0.5); box-shadow: var(--ap-shadow-2); }
.lp-plan h3 { margin: 8px 0 4px; }
.lp-plan-price { font-size: 30px; font-weight: 600; margin: 0 0 16px; }
.lp-plan-price span { font-size: 14px; font-weight: 400; color: var(--ap-cinza-texto); }
.lp-plan .ap-ul { margin-bottom: 20px; }
.lp-plan .ap-ul li { font-size: 14.5px; }

.lp-final {
    padding: 88px 0 96px;
    background: linear-gradient(180deg, #F1F6F8 0%, #DFEBF0 100%);
}

.lp-footer { border-top: 1px solid rgba(22, 73, 91, 0.12); padding: 28px 0; background: #DFEBF0; }
.lp-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--ap-cinza-texto);
}

html { scroll-behavior: smooth; }

@media (max-width: 900px) {
    .lp-steps, .lp-features, .lp-plans { grid-template-columns: 1fr; }
    .lp-nav-link:not(:last-of-type) { display: none; }
    .lp-hero { padding-top: 128px; }
}

/* ══════════════════════════════════════════════════════════════
   RELEVO 3D + ÍCONES COLORIDOS (v1.0.3)
   Sobrescreve os componentes com percepção de profundidade.
   ══════════════════════════════════════════════════════════════ */

/* ── Cards em alto-relevo ──────────────────────────────────── */

.ap-card,
.lp-feature,
.lp-plan,
.lp-proof-card,
.ap-auth-box,
.ap-chat-thread {
    background: linear-gradient(180deg, var(--ap-surface) 0%, color-mix(in srgb, var(--ap-surface) 90%, var(--ap-tone-1)) 100%);
    border: 1px solid color-mix(in srgb, var(--ap-azul-petroleo) 16%, transparent);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        0 10px 24px rgba(15, 27, 45, 0.12),
        0 3px 8px rgba(15, 27, 45, 0.07);
}

[data-theme="dark"] .ap-card,
[data-theme="dark"] .ap-auth-box,
[data-theme="dark"] .ap-chat-thread {
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.45),
        0 3px 8px rgba(0, 0, 0, 0.3);
}

.ap-card:hover,
.lp-feature:hover,
.lp-plan:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        0 16px 34px rgba(15, 27, 45, 0.16),
        0 4px 10px rgba(15, 27, 45, 0.08);
}

.lp-feature, .lp-plan { transition: transform var(--ap-transition), box-shadow var(--ap-transition); }

/* ── Botões 3D ─────────────────────────────────────────────── */

.ap-btn-primary {
    background: linear-gradient(180deg, #23708C 0%, #16495B 60%, #103744 100%);
    border: 1px solid #0E3340;
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
        0 7px 16px rgba(22, 73, 91, 0.38),
        0 2px 5px rgba(15, 27, 45, 0.22);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.ap-btn-primary:hover {
    background: linear-gradient(180deg, #2A7FA0 0%, #1A5468 60%, #123E4E 100%);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.3),
        0 10px 22px rgba(22, 73, 91, 0.42),
        0 3px 7px rgba(15, 27, 45, 0.24);
}
.ap-btn-primary:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.25),
        0 2px 5px rgba(22, 73, 91, 0.3);
}

.ap-btn-ghost {
    background: linear-gradient(180deg, var(--ap-surface) 0%, color-mix(in srgb, var(--ap-surface) 88%, var(--ap-tone-1)) 100%);
    border: 1px solid color-mix(in srgb, var(--ap-azul-petroleo) 22%, transparent);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.8),
        0 4px 10px rgba(15, 27, 45, 0.10);
}
.ap-btn-ghost:hover { transform: translateY(-1px); color: var(--ap-azul-petroleo); }
.ap-btn-ghost:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(15, 27, 45, 0.12); }

/* ── Chips de ícones coloridos (um tom por módulo) ─────────── */

.ap-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.65),
        0 3px 7px rgba(15, 27, 45, 0.16);
}
.ap-chip .ap-icon { margin: 0; opacity: 1; }

.ap-chip-home     { background: linear-gradient(180deg, #E3F0F6, #C9E2ED); color: #16495B; }
.ap-chip-user     { background: linear-gradient(180deg, #EDE9FC, #D8D0F5); color: #5B48C2; }
.ap-chip-heart    { background: linear-gradient(180deg, #FCE8EF, #F6CBDA); color: #C0507A; }
.ap-chip-work     { background: linear-gradient(180deg, #FCF2DC, #F3DFAF); color: #A97F17; }
.ap-chip-message  { background: linear-gradient(180deg, #E4F5EC, #C4E8D4); color: #2F7D54; }
.ap-chip-chat     { background: linear-gradient(180deg, #E8ECFC, #CDD6F6); color: #4356C0; }
.ap-chip-users    { background: linear-gradient(180deg, #FCEAE3, #F5CFC0); color: #C05E3A; }
.ap-chip-clock    { background: linear-gradient(180deg, #E2F1F8, #C3E1EF); color: #2E7DA6; }
.ap-chip-settings { background: linear-gradient(180deg, #EAEFF3, #D3DDE5); color: #55677A; }
.ap-chip-logout   { background: linear-gradient(180deg, #FBE9E9, #F3CFCF); color: #B24B4B; }

/* Premium: destaque dourado */
.ap-chip-star {
    background: linear-gradient(180deg, #F7E7C3, #E4C475);
    color: #7A5A14;
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.8),
        0 3px 9px rgba(198, 161, 91, 0.45);
}

/* Sidebar: acomoda os chips */
.ap-nav-item { gap: 10px; padding: 7px 10px; }
.ap-nav-item .ap-chip { width: 28px; height: 28px; border-radius: 9px; }
.ap-nav-item.is-active { background: linear-gradient(180deg, #23708C, #16495B); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), 0 5px 12px rgba(22,73,91,.35); }

/* ── Títulos com destaque (barra de acento em relevo) ─────── */

.ap-page-head h1,
.lp-section-title {
    position: relative;
    padding-bottom: 14px;
}
.ap-page-head h1::after,
.lp-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--ap-azul-petroleo), var(--ap-dourado));
    box-shadow: 0 2px 5px rgba(22, 73, 91, 0.35);
}
.lp-section-title::after { left: 50%; transform: translateX(-50%); }
.lp-hero-title { text-shadow: 0 2px 2px rgba(255, 255, 255, 0.9), 0 4px 14px rgba(15, 27, 45, 0.10); }

/* Landing: cards de recurso com ícone no topo */
.lp-feature .ap-chip { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; }
.lp-feature h3 { margin-top: 0; }

/* Dashboard: cards das áreas com ícone */
.ap-area-card .ap-chip { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px; }

/* Passos da landing: números em relevo */
.lp-step-number {
    background: linear-gradient(180deg, #23708C, #113947);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,.3), 0 5px 12px rgba(22,73,91,.4);
}

/* Plano anual: moldura premium dourada */
.lp-plan-featured {
    border: 1px solid rgba(198, 161, 91, 0.65);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        0 0 0 3px rgba(198, 161, 91, 0.16),
        0 12px 28px rgba(15, 27, 45, 0.14);
}

/* Badge premium com relevo dourado */
.ap-badge-premium {
    background: linear-gradient(180deg, #F7E7C3, #EBD08F);
    border: 1px solid rgba(169, 129, 47, 0.5);
    color: #7A5A14;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 5px rgba(198,161,91,.3);
}

/* Sino do signo no dashboard: símbolo em chip grande */
.ap-sign-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(180deg, #EDE9FC, #D3C9F2);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 6px 14px rgba(91, 72, 194, 0.28);
    font-size: 32px;
}

/* ── Fundo cósmico discreto (roda do zodíaco vetorial) ─────── */

.lp-hero { position: relative; overflow: hidden; }
.lp-hero::before {
    content: '';
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 1050px;
    height: 1050px;
    background: url('../img/zodiac-bg.svg') no-repeat center / contain;
    opacity: 0.9;
    pointer-events: none;
    animation: ap-zodiac-drift 240s linear infinite;
}
.lp-hero > .lp-container { position: relative; z-index: 1; }

@keyframes ap-zodiac-drift {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}

/* CTA final da landing: roda no rodapé, ainda mais sutil */
.lp-final { position: relative; overflow: hidden; }
.lp-final::before {
    content: '';
    position: absolute;
    bottom: -560px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: url('../img/zodiac-bg.svg') no-repeat center / contain;
    opacity: 0.7;
    pointer-events: none;
}
.lp-final > .lp-container { position: relative; z-index: 1; }

/* App: roda fixa e sutil no canto superior direito do conteúdo */
.ap-main { position: relative; }
.ap-main::before {
    content: '';
    position: fixed;
    top: -220px;
    right: -260px;
    width: 820px;
    height: 820px;
    background: url('../img/zodiac-bg.svg') no-repeat center / contain;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.ap-topbar, .ap-content { position: relative; z-index: 1; }

/* Telas de autenticação/onboarding: roda centralizada ao fundo */
.ap-center-screen { position: relative; overflow: hidden; }
.ap-center-screen::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: url('../img/zodiac-bg.svg') no-repeat center / contain;
    opacity: 0.6;
    pointer-events: none;
}
.ap-center-screen > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .lp-hero::before { animation: none; }
}
@media (max-width: 900px) {
    .lp-hero::before { width: 720px; height: 720px; top: -80px; }
    .ap-main::before { display: none; }
}

/* ── Perfil Social (v1.1.0) ────────────────────────────────── */

/* Menu da landing em negrito */
.lp-nav-link { font-weight: 600; color: var(--ap-tinta); }
.lp-nav-link:hover { color: var(--ap-azul-petroleo); }

/* Avatar de perfil (páginas pública e configurações) */
.ap-pp-avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #23708C, #113947);
    color: #fff;
    font-size: 40px;
    font-weight: 600;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        0 8px 20px rgba(22, 73, 91, 0.35);
    flex-shrink: 0;
}
.ap-pp-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ap-public-profile { width: 100%; max-width: 460px; }

/* Grade de avatares prontos */
.ap-avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.ap-avatar-grid form { display: contents; }
.ap-avatar-option {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: transform var(--ap-transition), border-color var(--ap-transition), box-shadow var(--ap-transition);
    line-height: 0;
}
.ap-avatar-option img { width: 100%; border-radius: 50%; }
.ap-avatar-option:hover {
    transform: translateY(-3px) scale(1.06);
    border-color: var(--ap-dourado);
    box-shadow: 0 6px 14px rgba(15, 27, 45, 0.25);
}

textarea.ap-input { resize: vertical; min-height: 74px; }

@media (max-width: 900px) {
    .ap-avatar-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Energia do Dia ────────────────────────────────────────── */

.ap-daily {
    border: 1px solid rgba(198, 161, 91, 0.45);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        0 0 0 3px rgba(198, 161, 91, 0.10),
        0 10px 24px rgba(15, 27, 45, 0.12);
}
.ap-daily-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}
.ap-daily-text { font-size: 17px; }

/* ══════════════════════════════════════════════════════════════
   DARK PADRÃO + LANDING ESCURA (v1.3.0)
   ══════════════════════════════════════════════════════════════ */

/* ── Landing Page escura (cosmos premium) ──────────────────── */

.lp { background: #0F1B2D; color: #EDF0F4; }

.lp-nav-link { color: #B9C6D4; }
.lp-nav-link:hover { color: #7FB6CC; }
.lp-logo { color: #EDF0F4; }

.lp-topbar.is-scrolled {
    background: rgba(15, 27, 45, 0.82);
    box-shadow: 0 1px 0 #24344E;
}

.lp-hero {
    background:
        radial-gradient(900px 460px at 50% -80px, rgba(35, 112, 140, 0.30), transparent 70%),
        linear-gradient(180deg, #0B1524 0%, #0F1B2D 100%);
}
.lp-hero-title { text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }
.lp-hero-sub { color: #93A0B4; }
.lp-hero-note { color: #93A0B4; }

.lp-hero::before, .lp-final::before {
    background-image: url('../img/zodiac-bg-light.svg');
}

.lp-proof-card {
    background: linear-gradient(180deg, #16233A 0%, #101B2E 100%);
    border: 1px solid rgba(168, 203, 217, 0.15);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.45);
}
.lp-proof-source { color: #93A0B4; }

.lp-section-alt { background: #0B1524; }

.lp-feature {
    background: linear-gradient(180deg, #16233A 0%, #101B2E 100%);
    border: 1px solid rgba(168, 203, 217, 0.14);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.4);
}
.lp-feature p, .lp-step p { color: #93A0B4; }

.lp-plan {
    background: linear-gradient(180deg, #16233A 0%, #101B2E 100%);
    border: 1px solid rgba(168, 203, 217, 0.14);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.4);
}
.lp-plan-price span { color: #93A0B4; }
.lp-plan-featured {
    border-color: rgba(198, 161, 91, 0.6);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(198, 161, 91, 0.14),
        0 14px 30px rgba(0, 0, 0, 0.5);
}

.lp-final { background: linear-gradient(180deg, #0F1B2D 0%, #0B1524 100%); }
.lp-footer { background: #0B1524; border-top-color: #24344E; }
.lp-footer-inner { color: #93A0B4; }

/* Botão ghost na landing escura */
.lp .ap-btn-ghost {
    background: linear-gradient(180deg, #1A2A44, #131F33);
    border-color: rgba(168, 203, 217, 0.22);
    color: #EDF0F4;
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,.07), 0 4px 10px rgba(0,0,0,.35);
}
.lp .ap-btn-ghost:hover { color: #7FB6CC; }
.lp .ap-ul li { color: #C6D1DD; }

/* ── App em dark: roda clara no fundo ──────────────────────── */

[data-theme="dark"] .ap-main::before,
[data-theme="dark"] .ap-center-screen::before {
    background-image: url('../img/zodiac-bg-light.svg');
}

/* Chips de ícones em dark: fundos profundos, cores vivas */
[data-theme="dark"] .ap-chip { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.12), 0 3px 8px rgba(0,0,0,.4); }
[data-theme="dark"] .ap-chip-home     { background: linear-gradient(180deg, #1B3A4A, #12293A); color: #7FB6CC; }
[data-theme="dark"] .ap-chip-user     { background: linear-gradient(180deg, #2A2450, #1D1A3A); color: #A79BF0; }
[data-theme="dark"] .ap-chip-heart    { background: linear-gradient(180deg, #462030, #331624); color: #E88BAC; }
[data-theme="dark"] .ap-chip-work     { background: linear-gradient(180deg, #3E3113, #2C230E); color: #E5C061; }
[data-theme="dark"] .ap-chip-message  { background: linear-gradient(180deg, #16382A, #0F281E); color: #6FCB9A; }
[data-theme="dark"] .ap-chip-chat     { background: linear-gradient(180deg, #212A52, #171E3C); color: #93A5F2; }
[data-theme="dark"] .ap-chip-users    { background: linear-gradient(180deg, #42261A, #2F1B12); color: #E89B79; }
[data-theme="dark"] .ap-chip-clock    { background: linear-gradient(180deg, #16324A, #0F2436); color: #6FB4DC; }
[data-theme="dark"] .ap-chip-settings { background: linear-gradient(180deg, #26303A, #1A222B); color: #A9BAC9; }
[data-theme="dark"] .ap-chip-logout   { background: linear-gradient(180deg, #3F2222, #2D1818); color: #E08B8B; }
[data-theme="dark"] .ap-chip-star     { background: linear-gradient(180deg, #4A3A18, #352A11); color: #EBCB84; }

/* ── Força em foco hoje ────────────────────────────────────── */

.ap-day-strength {
    border: 1px solid rgba(198, 161, 91, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: rgba(198, 161, 91, 0.07);
}
.ap-day-strength p { margin: 8px 0 0; font-weight: 500; line-height: 1.5; }

/* Destaques diários por bloco */
.ap-day-attention {
    border-color: rgba(185, 137, 0, 0.45);
    background: rgba(185, 137, 0, 0.07);
}
.ap-day-suggestion {
    border-color: rgba(62, 142, 99, 0.45);
    background: rgba(62, 142, 99, 0.07);
}

/* ── Módulo 14: Lua nos Signos ─────────────────────────────────────── */
.ap-chip-moon { background: linear-gradient(180deg, #E6E4F5, #CFCBEC); color: #5B54A8; }
[data-theme="dark"] .ap-chip-moon { background: linear-gradient(180deg, #2E2A52, #211E3C); color: #A9A3E8; }

.ap-note {
    padding: 16px 20px;
    border-left: 3px solid var(--ap-accent, #C9A24B);
}

.ap-lock-card {
    margin-top: 32px;
    padding: 32px;
    text-align: left;
}

.ap-lock-card h2 {
    margin: 12px 0 8px;
}

.ap-lock-card .ap-ul {
    margin-top: 12px;
}

/* Landing: apoio da seção de planos (modelo compra única) */
.lp-section-sub {
    max-width: 560px;
    margin: -8px auto 32px;
    text-align: center;
    color: var(--ap-text-muted, #8FA3B8);
    font-size: 15.5px;
    line-height: 1.6;
}

.lp-plans-note {
    margin-top: 24px;
    text-align: center;
    color: var(--ap-text-muted, #8FA3B8);
    font-size: 14px;
}

/* Módulo 16: Ascendente */
.ap-chip-rise { background: linear-gradient(180deg, #FBE7D4, #F3D2AE); color: #B06A1F; }
[data-theme="dark"] .ap-chip-rise { background: linear-gradient(180deg, #4A3520, #362614); color: #E8B577; }

/* Avatar clicável (leva às Configurações) */
a.ap-avatar { text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
a.ap-avatar:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--ap-accent, #C9A24B); }

/* Módulo 18: FAQ da landing */
.lp-faq { display: flex; flex-direction: column; gap: 12px; }
.lp-faq-item {
    background: var(--ap-tone2, #0F1B2D);
    border: 1px solid var(--ap-border, rgba(255,255,255,.08));
    border-radius: 14px;
    padding: 4px 20px;
}
.lp-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    list-style: none;
    position: relative;
    padding-right: 28px;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
    content: '+';
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    color: var(--ap-accent, #C9A24B);
    font-size: 20px;
}
.lp-faq-item[open] summary::after { content: '·'; }
.lp-faq-item p { padding: 0 0 16px; color: var(--ap-text-muted, #8FA3B8); font-size: 15px; line-height: 1.65; }

/* ── Planos: medalhas bronze, prata e ouro ─────────────────────────── */
.ap-chip-bronze { background: linear-gradient(180deg, #F0D9C0, #DDB183); color: #9C6321; }
.ap-chip-prata  { background: linear-gradient(180deg, #EAEFF3, #C4CFD9); color: #5E7186; }
.ap-chip-ouro   { background: linear-gradient(180deg, #F4E3B8, #E2C374); color: #96721E; }

[data-theme="dark"] .ap-chip-bronze { background: linear-gradient(180deg, #4A3016, #33210F); color: #DDA05C; }
[data-theme="dark"] .ap-chip-prata  { background: linear-gradient(180deg, #333F4C, #232D38); color: #B9C9D8; }
[data-theme="dark"] .ap-chip-ouro   { background: linear-gradient(180deg, #4A3A18, #352A11); color: #EBCB84; }

.ap-tier-bronze { border-color: rgba(176, 121, 63, .45); }
.ap-tier-prata  { border-color: rgba(140, 155, 168, .55); }
.ap-tier-ouro   { border-color: rgba(201, 162, 75, .6); box-shadow: 0 0 24px rgba(201, 162, 75, .12), var(--ap-card-shadow, 0 10px 30px rgba(0,0,0,.35)); }

.ap-tier-bronze h3 { color: #C08A4A; }
.ap-tier-prata h3  { color: #9FB2C4; }
.ap-tier-ouro h3   { color: #D9B45F; }

[data-theme="dark"] .ap-tier-bronze h3 { color: #DDA05C; }
[data-theme="dark"] .ap-tier-prata h3  { color: #C3D2E0; }
[data-theme="dark"] .ap-tier-ouro h3   { color: #EBCB84; }

/* Chips premium dos planos e pacotes (maiores, relevo 3D acentuado) */
.ap-plan-chip { display: flex; justify-content: center; margin-bottom: 10px; }
.ap-plan-chip .ap-chip {
    width: 48px; height: 48px;
    border-radius: 15px;
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, .4),
        inset 0 -2px 4px rgba(0, 0, 0, .15),
        0 6px 16px rgba(0, 0, 0, .28);
}
[data-theme="dark"] .ap-plan-chip .ap-chip {
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, .14),
        inset 0 -2px 5px rgba(0, 0, 0, .4),
        0 8px 18px rgba(0, 0, 0, .45);
}

/* Módulo 15B: Consultas */
.ap-chip-consult { background: linear-gradient(180deg, #D8E9E0, #B5D6C4); color: #2E7D57; }
[data-theme="dark"] .ap-chip-consult { background: linear-gradient(180deg, #1D3B2D, #142A20); color: #7CC9A3; }

/* Módulo 20: voz (microfone e ouvir respostas) */
.ap-mic-btn { font-size: 17px; padding: 10px 14px; line-height: 1; }
.ap-mic-btn.ap-mic-on {
    background: linear-gradient(180deg, #B2534E, #8F3E3A);
    color: #fff;
    animation: ap-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes ap-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(178, 83, 78, .45); }
    50% { box-shadow: 0 0 0 8px rgba(178, 83, 78, 0); }
}
.ap-listen-btn {
    display: inline-block;
    margin-left: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    opacity: .55;
    transition: opacity .15s ease;
    vertical-align: middle;
}
.ap-listen-btn:hover { opacity: 1; }

/* Módulo 20.1: formulário de mensagem confortável no celular */
@media (max-width: 640px) {
    .ap-chat-form { flex-wrap: wrap; }
    .ap-chat-form .ap-input { flex: 1 1 100%; width: 100%; }
    .ap-chat-form .ap-mic-btn { flex: 0 0 auto; }
    .ap-chat-form .ap-btn-primary { flex: 1 1 auto; }

    .ap-consult-form { flex-wrap: wrap; }
    .ap-consult-form .ap-input { flex: 1 1 100% !important; width: 100%; }
    .ap-consult-form .ap-btn-primary { flex: 1 1 auto; }
}

/* ── Módulo 21: Céu do momento ─────────────────────────────────────── */
.ap-sky-head { margin-bottom: 16px; }
.ap-sky-moon {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; margin-bottom: 18px;
    border-radius: 14px;
    background: var(--ap-tone3, #16233A);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.ap-sky-moon-emoji { font-size: 30px; line-height: 1; }
.ap-sky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}
.ap-sky-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--ap-tone3, #16233A);
    border: 1px solid var(--ap-border, rgba(255,255,255,.07));
}
.ap-sky-symbol {
    font-size: 19px;
    color: var(--ap-accent, #C9A24B);
    width: 24px; text-align: center;
}
.ap-sky-info { display: flex; flex-direction: column; line-height: 1.35; }
.ap-sky-body { font-size: 12.5px; color: var(--ap-text-muted, #8FA3B8); }
.ap-sky-pos { font-size: 14.5px; font-weight: 600; }
.ap-sky-retro {
    font-style: normal; font-size: 11px; font-weight: 700;
    color: #C25B5B; margin-left: 4px;
}

/* ── Módulo 22: Mapa Astral Completo ───────────────────────────────── */
.ap-sign-illus { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 8px; display: block; }

.ap-wheel { width: 100%; height: auto; display: block; }
.ap-chart-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.ap-chart-wheel { background: var(--ap-tone2,#0F1B2D); border:1px solid var(--ap-border,rgba(255,255,255,.07)); border-radius: 18px; padding: 16px; }
.ap-chart-legend { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-top:12px; font-size:12.5px; color:var(--ap-text-muted,#8FA3B8); }
.ap-dot { display:inline-block; width:10px; height:10px; border-radius:50%; vertical-align:middle; margin-right:4px; }
.ap-dot-harm { background:#5FA8D3; } .ap-dot-tenso { background:#C25B5B; } .ap-dot-conj { background:#C9A24B; }

.ap-chart-table { width:100%; border-collapse:collapse; font-size:14px; }
.ap-chart-table th { text-align:left; color:var(--ap-text-muted,#8FA3B8); font-weight:600; font-size:12px; padding:6px 4px; border-bottom:1px solid var(--ap-border); }
.ap-chart-table td { padding:8px 4px; border-bottom:1px solid var(--ap-border); }
.ap-chart-sym { color:var(--ap-accent,#C9A24B); }
.ap-retro { color:#C25B5B; font-style:normal; font-weight:700; font-size:11px; }

.ap-aspect-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:8px; margin-top:12px; }
.ap-aspect { display:flex; justify-content:space-between; gap:8px; padding:9px 12px; border-radius:10px; background:var(--ap-tone3,#16233A); border-left:3px solid var(--ap-accent); font-size:13.5px; }
.ap-aspect-harmonico { border-left-color:#5FA8D3; }
.ap-aspect-tenso { border-left-color:#C25B5B; }
.ap-aspect-neutro { border-left-color:#C9A24B; }
.ap-aspect-name { color:var(--ap-text-muted,#8FA3B8); font-size:12.5px; white-space:nowrap; }

@media (max-width: 820px) {
    .ap-chart-layout { grid-template-columns: 1fr; }
    .ap-wheel-aspects { display: none; }
}

/* Módulo 22.1: roda clicável e tela cheia */
.ap-wheel-open { display:block; width:100%; padding:0; margin:0; border:none; background:none; cursor:zoom-in; position:relative; border-radius:14px; }
.ap-wheel-hint {
    position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
    font-size:12px; color:var(--ap-text-muted,#8FA3B8);
    background:rgba(11,21,36,.7); padding:4px 12px; border-radius:20px;
    opacity:0; transition:opacity .2s ease; pointer-events:none;
}
.ap-wheel-open:hover .ap-wheel-hint { opacity:1; }

.ap-wheel-modal {
    position:fixed; inset:0; z-index:9999;
    background:rgba(5,10,18,.92); backdrop-filter:blur(6px);
    display:none; flex-direction:column; padding:16px;
}
.ap-wheel-modal.is-open { display:flex; }
.ap-wheel-modal-bar { display:flex; justify-content:flex-end; gap:10px; margin-bottom:8px; }
.ap-wheel-modal-stage { flex:1; display:flex; align-items:center; justify-content:center; min-height:0; }
.ap-wheel-modal-stage svg { max-width:min(92vw,92vh); max-height:88vh; height:auto; filter:drop-shadow(0 20px 60px rgba(0,0,0,.6)); }

/* Módulo 23: eixos da página de planos */
.ap-eixo { margin-bottom: 44px; }
.ap-eixo-title { font-size: 15px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--ap-border, rgba(255,255,255,.08)); }
.ap-eixo-title .ap-muted { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── Módulo 24: banners de página e previsões ──────────────────────── */
.ap-banner {
    border-radius: 18px; overflow: hidden; margin-bottom: 8px;
    background-size: cover; background-position: center;
    border: 1px solid var(--ap-border, rgba(255,255,255,.08));
}
.ap-banner-veil {
    padding: 40px 32px;
    background: linear-gradient(90deg, rgba(7,14,25,.86) 0%, rgba(7,14,25,.62) 55%, rgba(7,14,25,.20) 100%);
}
.ap-banner-veil h1 { margin: 4px 0; }
@media (max-width:640px){ .ap-banner-veil { padding: 28px 20px; background: linear-gradient(180deg, rgba(7,14,25,.55), rgba(7,14,25,.9)); } }

.ap-forecast-list { display: flex; flex-direction: column; gap: 12px; }
.ap-forecast {
    display: flex; gap: 16px; padding: 16px 18px;
    background: var(--ap-tone2, #0F1B2D);
    border: 1px solid var(--ap-border, rgba(255,255,255,.07));
    border-left: 4px solid var(--ap-accent, #C9A24B);
    border-radius: 14px;
}
.ap-forecast-harmonico { border-left-color: #5FA8D3; }
.ap-forecast-tenso     { border-left-color: #C25B5B; }
.ap-forecast-intenso   { border-left-color: #C9A24B; }
.ap-forecast-date {
    flex: 0 0 auto; font-weight: 700; font-size: 14px;
    color: var(--ap-accent, #C9A24B); min-width: 46px;
}
.ap-forecast-body h3 { margin: 0 0 4px; font-size: 15.5px; }
.ap-forecast-body p { margin: 0; font-size: 14px; color: var(--ap-text-muted, #8FA3B8); line-height: 1.6; }

/* Módulo 25: bônus de relacionamento */
.ap-love { border-left: 4px solid #E58BA6; }
.ap-love .ap-ul li { margin-bottom: 6px; }

/* Módulo 27: Vá mais fundo (amostra das camadas do mapa) */
.ap-deeper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ap-deeper h3 { font-size: 16px; margin: 0 0 8px; }
.ap-deeper p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.ap-deeper-lock { color: var(--ap-accent, #C9A24B); }
.ap-deeper-cta { border: 1px dashed var(--ap-accent, #C9A24B); background: linear-gradient(180deg, rgba(201,162,75,.06), transparent); }

/* Módulo 28: Previsão Inteligente - chips de seleção */
.ap-radio-chip { position: relative; cursor: pointer; }
.ap-radio-chip input { position: absolute; opacity: 0; }
.ap-radio-chip span {
    display: inline-block; padding: 8px 16px; border-radius: 20px;
    background: var(--ap-tone3, #16233A);
    border: 1px solid var(--ap-border, rgba(255,255,255,.1));
    font-size: 14px; transition: all .15s ease;
}
.ap-radio-chip input:checked + span {
    background: var(--ap-accent, #C9A24B); color: #0B1524; font-weight: 600;
    border-color: var(--ap-accent, #C9A24B);
}
.ap-chip-sparkles { background: linear-gradient(180deg, #E6E0F5, #CFC4EC); color: #6B54A8; }
[data-theme="dark"] .ap-chip-sparkles { background: linear-gradient(180deg, #2E2852, #211C3C); color: #B9A9E8; }

/* Módulo 29: modos de compatibilidade */
.ap-mode-card { display:block; cursor:pointer; }
.ap-mode-card input { position:absolute; opacity:0; }
.ap-mode-card span {
    display:block; padding:12px 14px; border-radius:12px;
    background: var(--ap-tone3,#16233A); border:1px solid var(--ap-border,rgba(255,255,255,.1));
    transition: all .15s ease;
}
.ap-mode-card span strong { display:block; font-size:14.5px; }
.ap-mode-card span em { display:block; font-style:normal; font-size:12.5px; color:var(--ap-text-muted,#8FA3B8); margin-top:3px; }
.ap-mode-card input:checked + span { border-color: var(--ap-accent,#C9A24B); background: linear-gradient(180deg, rgba(201,162,75,.08), transparent); }
.ap-mode-card input:disabled + span { opacity:.55; }

/* Selo de creditos uniforme (Modulo 34+) */
.ap-banner { position: relative; }
.ap-page-head { position: relative; }
.ap-credit-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 14px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(212,175,105,.16), rgba(212,175,105,.06));
    border: 1px solid rgba(212,175,105,.55);
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    line-height: 1.05;
}
.ap-credit-badge-ico { color: #F5CC5B; font-size: 15px; }
.ap-credit-badge-num { color: #F5CC5B; font-weight: 800; font-size: 26px; text-shadow: 0 0 12px rgba(245,204,91,.45); }
.ap-credit-badge-txt { color: #E8DFcf; font-size: 12px; font-weight: 600; text-transform: none; }
.ap-credit-badge-txt small { color: rgba(232,223,207,.7); font-weight: 400; font-size: 11px; }
/* Posicionado no canto superior direito do cabecalho/banner */
.ap-credit-badge.is-corner {
    position: absolute; top: 18px; right: 18px; z-index: 3;
    background: rgba(7, 14, 25, .82);
    backdrop-filter: blur(3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
@media (max-width:640px){
    .ap-credit-badge.is-corner { position: static; margin-top: 12px; }
    .ap-credit-badge-num { font-size: 22px; }
}
