/* ==========================================================================
   Meu Gestor — design system
   Linguagem visual inspirada na referência analisada (meuassessor.com):
   hero preto, tipografia Poppins leve, cabeçalho em pílula translúcida,
   seções claras em tons neutros e acentos verdes de mensageria.
   ========================================================================== */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../../fonts/poppins-300-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../fonts/poppins-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../../fonts/poppins-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../fonts/poppins-600-latin.woff2') format('woff2'); }

:root {
    /* Neutros */
    --black: #000000;
    --ink: #0c0c0d;
    --ink-2: #6a6a70;
    --ink-3: #86868b;
    --ink-4: #9aa3ad;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-3: #f2f2f4;
    --dark-1: #0c0c0d;
    --dark-2: #16161a;
    --line: rgba(12, 12, 13, 0.10);
    --line-strong: rgba(12, 12, 13, 0.16);
    --line-dark: rgba(255, 255, 255, 0.08);
    --line-dark-strong: rgba(255, 255, 255, 0.16);

    /* Acentos */
    --green: #12a05a;
    --green-deep: #0f7a52;
    --green-bright: #4fd48a;
    --green-soft: #e6f6ed;
    --bubble-out: #d8fdd2;
    --wa-dark: #111b21;
    --wa-panel: #0b141a;
    --tick: #53bdeb;
    --blue: #2f6fed;
    --blue-soft: #eaf0fe;
    --amber: #b26a00;
    --amber-soft: #fff4e0;
    --red: #c62828;
    --red-soft: #fdecec;

    /* Tipografia e forma */
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 980px;
    --shadow-sm: 0 1px 2px rgba(12, 12, 13, 0.06);
    --shadow: 0 8px 30px rgba(12, 12, 13, 0.08);
    --shadow-lg: 0 24px 60px rgba(12, 12, 13, 0.14);
    --container: 1200px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -120px; z-index: 200;
    background: var(--surface); color: var(--ink); padding: 10px 18px; border-radius: var(--radius-pill);
    text-decoration: none; font-weight: 500; box-shadow: var(--shadow);
    transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 820px; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 24px; border-radius: var(--radius-pill);
    border: 1px solid transparent; background: transparent;
    font-size: 0.95rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform 0.25s var(--ease), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 8px 24px rgba(18, 160, 90, 0.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262b; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ececf0; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-ghost { color: var(--ink-2); padding-inline: 12px; }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a31f1f; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading::after {
    content: ''; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Cabeçalho (pílula translúcida)
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed; z-index: 100; left: 0; right: 0; top: 16px;
    width: calc(100% - 24px); max-width: 1240px; margin-inline: auto;
    height: 60px; padding: 0 10px 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    border-radius: var(--radius-pill);
    background: rgba(30, 30, 30, 0.35);
    border: 1px solid var(--line-dark);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    color: #fff;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
    animation: header-in 0.9s var(--ease) both;
}
.site-header.is-light, .theme-light .site-header {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--line);
    color: var(--ink);
    box-shadow: 0 4px 24px rgba(12, 12, 13, 0.06);
}

@keyframes header-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* Logo (marca/novos): traços em currentColor; o ponto do "i" é verde neon em fundo escuro e
   acompanha a cor do texto em fundo claro, como na versão monocromática do kit. */
:root { --brand-neon: #39ff88; }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand-logo { display: block; height: 24px; width: auto; flex: none; }
.brand-dot { fill: var(--brand-dot, var(--brand-neon)); }
.site-header.is-light, .theme-light .site-header, body.menu-open .site-header, .app-topbar, .mobile-menu { --brand-dot: currentColor; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
    text-decoration: none; font-size: 0.88rem; font-weight: 400; opacity: 0.78;
    position: relative; padding: 6px 0; transition: opacity 0.2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; }
.main-nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions .btn { min-height: 40px; padding: 0 18px; font-size: 0.86rem; }
.header-login { text-decoration: none; font-size: 0.88rem; padding: 8px 14px; opacity: 0.85; }
.header-login:hover { opacity: 1; }

.menu-toggle {
    display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
    align-items: center; justify-content: center;
}
.menu-toggle-bars { position: relative; width: 18px; height: 12px; }
.menu-toggle-bars span {
    position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s ease, top 0.3s var(--ease);
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 5px; }
.menu-toggle-bars span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; z-index: 99; inset: 0; padding: 104px 28px max(28px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98); color: var(--ink);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.35s var(--ease); }
.mobile-menu-nav, .mobile-menu-secondary { display: flex; flex-direction: column; align-items: flex-start; }
.mobile-menu-nav a {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
    padding: 10px 0; color: var(--ink-3); transition: color 0.2s ease;
}
.mobile-menu-nav a:hover, .mobile-menu-nav a:focus-visible, .mobile-menu-nav a[aria-current="page"] { color: var(--ink); }
.mobile-menu-nav a[aria-current="page"]::after {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
.mobile-menu-secondary { gap: 2px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
.mobile-menu-secondary a { text-decoration: none; font-size: 0.95rem; color: var(--ink-2); padding: 8px 0; }
.mobile-menu-secondary a:hover, .mobile-menu-secondary a[aria-current="page"] { color: var(--ink); }
.mobile-menu-actions { margin-top: auto; padding-top: 32px; }
.mobile-menu.is-open .mobile-menu-nav a { animation: menu-item-in 0.45s var(--ease) both; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(4) { animation-delay: 0.12s; }
@keyframes menu-item-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: rgba(255, 255, 255, 0.9); color: var(--ink); border-color: var(--line); }

/* --------------------------------------------------------------------------
   Aviso de lançamento
   -------------------------------------------------------------------------- */
.launch-notice {
    position: relative; z-index: 3;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 10px; border-radius: var(--radius-pill);
    border: 1px solid var(--line-dark-strong); background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; line-height: 1.4; text-align: left;
}
.launch-notice-dot {
    flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright);
    box-shadow: 0 0 0 0 rgba(79, 212, 138, 0.6); animation: pulse-dot 2.4s ease-out infinite;
}
.launch-notice.on-light { border-color: var(--line); background: var(--surface-2); color: var(--ink-2); }

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(79, 212, 138, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(79, 212, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 212, 138, 0); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--black); color: #fff;
    padding: 148px 0 0;
}
.hero::before {
    content: ''; position: absolute; inset: -20% -10% auto; height: 120%;
    background:
        radial-gradient(40% 35% at 50% 30%, rgba(18, 160, 90, 0.22), transparent 70%),
        radial-gradient(30% 30% at 80% 60%, rgba(47, 111, 237, 0.12), transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title {
    font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.08;
    max-width: 900px; margin-top: 28px;
}
.hero-title strong { font-weight: 500; background: linear-gradient(90deg, #fff, var(--green-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { margin-top: 22px; max-width: 640px; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 300; color: var(--ink-3); line-height: 1.6; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-stage {
    position: relative; z-index: 2; margin-top: 64px;
    display: grid; grid-template-columns: 1fr minmax(300px, 360px) 1fr; gap: 28px; align-items: center;
    padding-bottom: 0;
}
.hero-cards { display: flex; flex-direction: column; gap: 16px; }
.hero-cards-left { align-items: flex-end; }
.hero-cards-right { align-items: flex-start; }

/* Entrada do hero (CSS puro, sem depender de JS) */
.hero-enter { opacity: 0; transform: translateY(28px); animation: rise 1.2s var(--ease) forwards; }
.hero-enter-1 { animation-delay: 0.1s; }
.hero-enter-2 { animation-delay: 0.25s; }
.hero-enter-3 { animation-delay: 0.4s; }
.hero-enter-4 { animation-delay: 0.6s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Cartões flutuantes (agenda, tarefas, lembretes, finanças)
   -------------------------------------------------------------------------- */
.float-card {
    width: 100%; max-width: 270px; text-align: left;
    padding: 16px 18px; border-radius: 20px;
    background: rgba(22, 22, 26, 0.82); border: 1px solid var(--line-dark);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    color: #fff; font-size: 0.85rem;
    animation: drift 7s ease-in-out infinite;
}
.float-card:nth-child(2) { animation-delay: -2.5s; animation-duration: 8s; }
.float-card.alt { animation-delay: -4s; }
.float-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.float-card-icon {
    width: 32px; height: 32px; border-radius: 10px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.float-card-icon svg { width: 18px; height: 18px; }
.icon-green { background: rgba(18, 160, 90, 0.18); color: var(--green-bright); }
.icon-blue { background: rgba(47, 111, 237, 0.2); color: #8fb0ff; }
.icon-amber { background: rgba(255, 181, 71, 0.18); color: #ffc46b; }
.icon-pink { background: rgba(233, 30, 99, 0.18); color: #ff8ab3; }
.float-card-title { font-weight: 500; font-size: 0.88rem; }
.float-card-meta { color: var(--ink-3); font-size: 0.75rem; }
.float-card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-dark); }
.float-card-row:first-of-type { border-top: 0; }
.float-card-amount { font-weight: 500; }
.amount-out { color: #ff9b9b; }
.amount-in { color: var(--green-bright); }

.task-check {
    width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.task-check.done { background: var(--green); border-color: var(--green); }
.task-check.done svg { width: 10px; height: 10px; color: #fff; }
.task-label { flex: 1; }
.task-label.done { color: var(--ink-3); text-decoration: line-through; }

.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin-top: 8px; }
.mini-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: rgba(79, 212, 138, 0.35); transform-origin: bottom; animation: bar-rise 1.4s var(--ease) both; }
.mini-bars span:nth-child(1) { height: 40%; animation-delay: 0.8s; }
.mini-bars span:nth-child(2) { height: 65%; animation-delay: 0.9s; }
.mini-bars span:nth-child(3) { height: 50%; animation-delay: 1s; }
.mini-bars span:nth-child(4) { height: 85%; animation-delay: 1.1s; background: var(--green-bright); }
.mini-bars span:nth-child(5) { height: 60%; animation-delay: 1.2s; }

@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* --------------------------------------------------------------------------
   Simulação de conversa (estilo WhatsApp) — ilustrativa
   -------------------------------------------------------------------------- */
.phone {
    position: relative; width: 100%; max-width: 360px; margin-inline: auto;
    border-radius: 44px; padding: 10px;
    background: linear-gradient(160deg, #2a2a30, #0c0c0d);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-screen { border-radius: 36px; overflow: hidden; background: #efeae2; display: flex; flex-direction: column; height: 560px; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 34px 14px 12px; background: var(--wa-dark); color: #fff; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chat-avatar { overflow: hidden; }
.chat-avatar svg { width: 100%; height: 100%; }
.chat-name { font-size: 0.92rem; font-weight: 500; line-height: 1.2; }
.chat-status { font-size: 0.72rem; color: #8696a0; }
.chat-demo-label {
    margin-left: auto; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 4px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.1); color: #d1d7db;
}
.chat-body {
    flex: 1; overflow: hidden; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end;
    background-color: #efeae2;
    background-image: radial-gradient(rgba(12, 12, 13, 0.05) 1px, transparent 1px);
    background-size: 14px 14px;
}
.chat-day { align-self: center; font-size: 0.68rem; color: #54656f; background: #fff; padding: 3px 10px; border-radius: 8px; box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.msg {
    position: relative; max-width: 82%; padding: 7px 10px 18px; border-radius: 10px;
    font-size: 0.84rem; line-height: 1.4; color: #111b21; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    animation: msg-in 0.45s var(--ease) both;
}
.msg-in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.msg-out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 2px; }
.msg-time { position: absolute; right: 8px; bottom: 3px; font-size: 0.62rem; color: #667781; display: inline-flex; align-items: center; gap: 3px; }
.msg-time svg { width: 14px; height: 10px; color: var(--tick); }
.msg-audio { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.msg-audio-play { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.msg-audio-play svg { width: 10px; height: 10px; }
.msg-audio-wave { flex: 1; height: 18px; display: flex; align-items: center; gap: 2px; }
.msg-audio-wave span { flex: 1; background: #8fa5ae; border-radius: 2px; }
.msg-card { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(12, 12, 13, 0.04); border-left: 3px solid var(--green); font-size: 0.78rem; }
.msg-card strong { font-weight: 600; }

.typing { align-self: flex-start; background: #fff; border-radius: 10px; border-top-left-radius: 2px; padding: 10px 14px; display: inline-flex; gap: 4px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); animation: msg-in 0.3s var(--ease) both; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: typing-blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes typing-blink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: #f0f2f5; }
.chat-input-field { flex: 1; height: 38px; border-radius: 20px; background: #fff; color: #8696a0; font-size: 0.8rem; display: flex; align-items: center; padding: 0 14px; }
.chat-input-mic { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.chat-input-mic svg { width: 16px; height: 16px; }

.demo-disclaimer { margin-top: 14px; font-size: 0.75rem; color: var(--ink-3); text-align: center; }

.demo-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); }
.demo-tab {
    border: 0; background: transparent; cursor: pointer; padding: 8px 16px; border-radius: var(--radius-pill);
    font-size: 0.85rem; color: var(--ink-2); transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.demo-tab:hover { color: var(--ink); }
.demo-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 500; }
.demo-controls { margin-top: 20px; text-align: center; padding-bottom: 72px; }
.demo-tabs.on-dark { background: rgba(255, 255, 255, 0.06); border-color: var(--line-dark); }
.demo-tabs.on-dark .demo-tab { color: rgba(255, 255, 255, 0.7); padding: 7px 14px; }
.demo-tabs.on-dark .demo-tab:hover { color: #fff; }
.demo-tabs.on-dark .demo-tab[aria-selected="true"] { background: #fff; color: var(--ink); }
/* As abas só fazem sentido com JavaScript; sem ele, a primeira conversa aparece estática. */
.demo-tabs.on-dark { display: none; }
.js .demo-tabs.on-dark { display: inline-flex; }
.msg-audio-wave span:nth-child(3n+1) { height: 40%; }
.msg-audio-wave span:nth-child(3n+2) { height: 85%; }
.msg-audio-wave span:nth-child(3n) { height: 60%; }
.msg-audio-wave span:nth-child(5) { height: 100%; }

/* Cartões com conversa de exemplo em cima e texto embaixo (página inicial) */
.chat-cards { display: grid; gap: 20px; }
.chat-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.chat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.section-alt .chat-card { border-color: transparent; }
.chat-card-stage {
    flex: 1; display: flex; align-items: center; min-height: 250px; padding: 28px 24px;
    background-color: #efeae2;
    background-image: radial-gradient(rgba(12, 12, 13, 0.05) 1px, transparent 1px);
    background-size: 14px 14px;
}
.chat-card-thread { width: 100%; max-width: 420px; margin-inline: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-card-stage .msg { animation: none; max-width: 88%; }
/* Conversa animada (app.js, initChatCards): mensagens surgem de baixo, como no WhatsApp. */
.chat-card-thread.is-playing { justify-content: flex-end; }
.chat-card-thread.is-playing .msg { animation: msg-in 0.45s var(--ease) both; }
.rec {
    align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
    background: var(--bubble-out); border-top-right-radius: 2px; font-size: 0.8rem; color: #54656f;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); animation: msg-in 0.3s var(--ease) both;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #e53935; animation: rec-pulse 1s ease-in-out infinite; }
.rec-time { font-variant-numeric: tabular-nums; color: #111b21; }
@keyframes rec-pulse { 50% { opacity: 0.25; } }
.msg-audio.is-playing .msg-audio-wave span { animation: wave-fill 0.15s linear forwards; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(2) { animation-delay: 0.11s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(3) { animation-delay: 0.22s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(4) { animation-delay: 0.33s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(5) { animation-delay: 0.44s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(6) { animation-delay: 0.55s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(7) { animation-delay: 0.66s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(8) { animation-delay: 0.77s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(9) { animation-delay: 0.88s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(10) { animation-delay: 0.99s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(11) { animation-delay: 1.1s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(12) { animation-delay: 1.21s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(13) { animation-delay: 1.32s; }
.msg-audio.is-playing .msg-audio-wave span:nth-child(14) { animation-delay: 1.43s; }
@keyframes wave-fill { to { background: var(--green); } }
.msg-from { display: block; margin-bottom: 2px; font-size: 0.7rem; font-weight: 600; color: var(--green-deep); }
.msg-photo {
    width: 150px; height: 96px; margin-bottom: 6px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #c9d4c5, #a7b6a3); color: rgba(255, 255, 255, 0.92);
}
.msg-photo svg { width: 32px; height: 32px; }
.chat-card-body { padding: 24px 28px 28px; }
.chat-card-body .card-text + .card-text { margin-top: 10px; }
.chat-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chat-card-meta .feature-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }
.chat-card-meta .feature-icon svg { width: 20px; height: 20px; }
.chat-card-title { font-size: 1.12rem; font-weight: 500; margin-bottom: 8px; }
/* Lado a lado, a conversa e o texto de cada cartão ocupam as mesmas linhas: os títulos ficam alinhados. */
.chat-cards.grid-2 > .chat-card:not(.chat-card-wide) { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
.chat-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.chat-card-wide .chat-card-body { order: -1; align-self: center; padding: 40px; }
.chat-card-wide .chat-card-title { font-size: 1.35rem; }
@media (max-width: 860px) {
    .chat-cards.grid-2, .chat-card-wide { grid-template-columns: 1fr; }
    .chat-card-wide .chat-card-body { order: 0; padding: 24px 28px 28px; }
}
@media (max-width: 640px) {
    .chat-card-stage { min-height: 0; padding: 22px 14px; }
    .chat-card-body, .chat-card-wide .chat-card-body { padding: 20px; }
}

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--black); color: #fff; }
.section-dark .section-lead { color: var(--ink-3); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep);
}
.section-dark .eyebrow { color: var(--green-bright); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 300; letter-spacing: -0.03em; }
.section-title strong { font-weight: 500; }
.section-lead { margin-top: 16px; font-size: 1.05rem; color: var(--ink-2); font-weight: 300; }

.page-hero { padding: 150px 0 64px; background: var(--surface-2); text-align: center; }
.page-hero .section-title { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero .section-lead { max-width: 640px; margin-inline: auto; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Cartões
   -------------------------------------------------------------------------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.section-alt .card { border-color: transparent; }
.card-dark { background: var(--dark-2); border-color: var(--line-dark); color: #fff; }
.card-title { font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
.card-text { color: var(--ink-2); font-size: 0.95rem; }
.card-dark .card-text { color: var(--ink-3); }

.feature-icon {
    width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green-soft); color: var(--green-deep);
    transition: transform 0.35s var(--ease);
}
.feature-icon svg { width: 24px; height: 24px; }
.card-hover:hover .feature-icon { transform: scale(1.06) rotate(-3deg); }
.feature-icon.blue { background: var(--blue-soft); color: var(--blue); }
.feature-icon.amber { background: var(--amber-soft); color: var(--amber); }
.feature-icon.pink { background: #fde8f0; color: #c2185b; }
.feature-icon.violet { background: #f1eafe; color: #6b3fd4; }
.feature-icon.teal { background: #e3f4f6; color: #1b8094; }

.check-list { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-2); }
.check-list li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--green); }
.section-dark .check-list li { color: rgba(255, 255, 255, 0.78); }

.status-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
}
.status-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-planned { background: var(--amber-soft); color: var(--amber); }
.chip-available { background: var(--green-soft); color: var(--green-deep); }
.chip-info { background: var(--blue-soft); color: var(--blue); }
.chip-danger { background: var(--red-soft); color: var(--red); }
.chip-neutral { background: var(--surface-3); color: var(--ink-2); }

/* Bloco de funcionalidade detalhada (página de funcionalidades) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; }
.feature-row.reverse .feature-row-media { order: -1; }
.feature-row-media {
    border-radius: var(--radius-lg); background: var(--surface-2); padding: 32px; min-height: 280px;
    display: flex; align-items: center; justify-content: center;
}
.feature-row-media .float-card { animation: none; max-width: 340px; background: var(--dark-2); }

/* Passos (como funciona) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.section-dark .step { background: var(--dark-2); border-color: var(--line-dark); }
.step-number {
    width: 44px; height: 44px; border-radius: 50%; margin-bottom: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; font-weight: 500;
}
.section-dark .step-number { background: #fff; color: var(--ink); }
.step-title { font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
.step-text { color: var(--ink-2); font-size: 0.95rem; }
.section-dark .step-text { color: var(--ink-3); }
.step-connector { position: absolute; top: 54px; right: -14px; width: 28px; height: 2px; background: linear-gradient(90deg, var(--green), transparent); z-index: 1; }

/* Preço */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
    width: 100%; max-width: 480px; border-radius: 28px; padding: 40px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.price-card::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-bright));
}
.price-name { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.price-value { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.price-currency { font-size: 1.3rem; font-weight: 400; }
.price-amount { font-size: 3.6rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.price-period { color: var(--ink-3); font-size: 1rem; }
.price-note { font-size: 0.85rem; color: var(--ink-3); }
.price-card .btn { margin-top: 28px; }
.price-fineprint { margin-top: 18px; font-size: 0.78rem; color: var(--ink-3); line-height: 1.5; }

/* FAQ (details/summary — funciona sem JavaScript) */
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow 0.3s ease; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
    font-weight: 500; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
    transform: rotate(45deg); transition: transform 0.3s var(--ease), margin-top 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer { padding: 0 24px 22px; color: var(--ink-2); font-size: 0.95rem; }
.faq-answer p + p { margin-top: 10px; }

/* CTA final */
.cta-band { border-radius: 32px; padding: 72px 40px; text-align: center; background: var(--black); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(18, 160, 90, 0.3), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band .section-lead { color: var(--ink-3); max-width: 560px; margin-inline: auto; }
.cta-band .hero-actions { margin-top: 28px; }

/* Rodapé */
.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.72); padding: 72px 0 36px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand { color: #fff; }
.footer-about { margin-top: 14px; max-width: 320px; color: var(--ink-3); }
.footer-title { color: #fff; font-weight: 500; font-size: 0.9rem; margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, 0.66); transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 0.8rem; }
.footer-legal { color: var(--ink-3); font-size: 0.8rem; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Revelação ao rolar (ativada por JS; sem JS tudo aparece normalmente)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: 0.08s; }
.js .reveal-delay-2 { transition-delay: 0.16s; }
.js .reveal-delay-3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Formulários
   -------------------------------------------------------------------------- */
/* Telas de entrada: fundo preto com o brilho verde do hero e o formulário num cartão de vidro fosco */
.auth-page {
    position: relative; overflow: hidden; isolation: isolate; min-height: 100vh;
    background: var(--black); color: #fff;
}
.auth-page::before, .auth-page::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.auth-page::before {
    inset: -20% -10% auto; height: 120%;
    background:
        radial-gradient(40% 35% at 50% 30%, rgba(18, 160, 90, 0.26), transparent 70%),
        radial-gradient(30% 30% at 80% 60%, rgba(47, 111, 237, 0.14), transparent 70%);
}
/* Manchas atrás do cartão: é o que o vidro desfoca. */
.auth-page::after {
    left: 50%; top: 50%; width: min(760px, 120vw); height: 520px; transform: translate(-50%, -46%);
    background:
        radial-gradient(28% 34% at 30% 40%, rgba(79, 212, 138, 0.35), transparent 70%),
        radial-gradient(24% 30% at 72% 66%, rgba(18, 160, 90, 0.4), transparent 70%);
    filter: blur(20px);
}
.auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px 20px; }
.auth-top { width: 100%; max-width: 460px; display: flex; justify-content: space-between; align-items: center; }
.auth-top .brand-logo { height: 26px; }
.auth-box {
    width: 100%; max-width: 460px; padding: 40px; border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
}
.auth-copy { font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); }
.auth-title { font-size: 1.8rem; font-weight: 400; letter-spacing: -0.03em; }
.auth-subtitle { color: rgba(255, 255, 255, 0.62); margin-top: 8px; margin-bottom: 28px; font-size: 0.95rem; }
.auth-footer { margin-top: 24px; text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); }
.auth-footer a { color: var(--green-bright); font-weight: 500; }

/* Contratação em etapas (layouts/checkout): painel escuro com as etapas e formulário claro */
.checkout-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: #fafafb; }
.checkout-aside {
    position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 40px; padding: 48px 56px 36px;
    background: var(--black); color: #fff;
}
.checkout-aside::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none; inset: -20% -20% auto; height: 120%;
    background:
        radial-gradient(40% 32% at 30% 30%, rgba(18, 160, 90, 0.26), transparent 70%),
        radial-gradient(30% 30% at 80% 75%, rgba(47, 111, 237, 0.12), transparent 70%);
}
.checkout-aside .brand-logo { height: 26px; }
.checkout-aside-intro { margin-top: auto; }
.checkout-aside-title { font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; max-width: 440px; }
.checkout-aside-title strong { font-weight: 500; background: linear-gradient(90deg, #fff, var(--green-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.checkout-aside-note { margin-top: 14px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }
.checkout-steps { list-style: none; display: grid; gap: 18px; margin-top: auto; }
.checkout-steps li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255, 255, 255, 0.4); }
.checkout-step-num {
    flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.78rem;
}
.checkout-step-num svg { width: 14px; height: 14px; }
.checkout-step-title { display: block; font-size: 0.92rem; font-weight: 500; }
.checkout-step-text { display: block; font-size: 0.8rem; margin-top: 1px; }
.checkout-steps li.is-done { color: rgba(255, 255, 255, 0.7); }
.checkout-steps li.is-done .checkout-step-num { background: var(--green); border-color: var(--green); color: #fff; }
.checkout-steps li.is-current { color: #fff; }
.checkout-steps li.is-current .checkout-step-num { border-color: var(--green-bright); color: var(--green-bright); box-shadow: 0 0 0 4px rgba(79, 212, 138, 0.15); }
.checkout-steps li.is-current .checkout-step-text { color: rgba(255, 255, 255, 0.65); }
.checkout-trust { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.45); }
.checkout-main { display: flex; justify-content: center; padding: 56px 32px; }
.checkout-box { width: 100%; max-width: 440px; }
.checkout-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 40px; }
.checkout-progress span { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); }
.checkout-progress span.is-on { background: var(--green); }
.checkout-progress small { flex: none; margin-left: 8px; font-size: 0.75rem; color: var(--ink-3); }
.checkout-title { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; }
.checkout-lead { margin: 8px 0 24px; color: var(--ink-2); font-size: 0.95rem; }
.checkout-lead strong { color: var(--ink); font-weight: 500; }
.checkout-plan {
    position: relative; overflow: hidden; padding: 24px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.checkout-plan::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-bright)); }
.checkout-plan-name { font-size: 1.05rem; font-weight: 500; }
.checkout-plan-desc { font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
.checkout-plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 16px; }
.checkout-plan-price span { font-size: 0.95rem; color: var(--ink-2); }
.checkout-plan-price strong { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.checkout-plan-billing { font-size: 0.82rem; font-weight: 500; margin-top: 6px; }
.checkout-plan .check-list li { font-size: 0.88rem; }
.checkout-plan-note { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 0.78rem; color: var(--ink-3); }
.checkout-plan-note svg { flex: none; color: var(--green-deep); }
.checkout-back { display: block; margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--ink-2); text-decoration: none; }
.checkout-back:hover { color: var(--ink); }
.checkout-back a { color: var(--green-deep); font-weight: 500; }
.checkout-notice { display: flex; gap: 8px; align-items: flex-start; margin: -8px 0 20px; font-size: 0.82rem; color: var(--green-deep); }
.checkout-notice svg { flex: none; margin-top: 2px; }
.checkout-summary {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px;
    padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem;
}
.checkout-summary strong { font-weight: 500; }
.checkout-summary a { margin-left: 6px; font-size: 0.82rem; color: var(--green-deep); }
.checkout-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout-method .badge { position: absolute; top: -10px; right: 12px; }
.checkout-methods legend { margin-bottom: 10px; }
.checkout-method {
    position: relative; display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line-strong);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.checkout-method:hover { border-color: var(--ink-3); }
.checkout-method input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-method:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 160, 90, 0.14); }
.checkout-method:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.checkout-method-title { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.95rem; }
.checkout-method-title svg { color: var(--green-deep); }
.checkout-method-text { font-size: 0.78rem; color: var(--ink-3); padding-left: 26px; }
@media (max-width: 960px) {
    .checkout-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .checkout-aside { position: relative; height: auto; gap: 20px; padding: 24px 20px; }
    .checkout-aside-intro, .checkout-steps, .checkout-trust { display: none; }
    .checkout-main { padding: 28px 16px 40px; }
    .checkout-progress { margin-bottom: 28px; }
}

/* Formulário sobre o vidro escuro */
.auth-page .field-label { color: rgba(255, 255, 255, 0.86); }
.auth-page .field-hint, .auth-page .field-optional { color: rgba(255, 255, 255, 0.5); }
.auth-page .input, .auth-page .select, .auth-page .textarea {
    background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff;
}
.auth-page .input::placeholder { color: rgba(255, 255, 255, 0.4); }
.auth-page .input:hover { border-color: rgba(255, 255, 255, 0.32); }
.auth-page .input:focus { border-color: var(--green-bright); box-shadow: 0 0 0 4px rgba(79, 212, 138, 0.18); background: rgba(255, 255, 255, 0.09); }
.auth-page .input:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 1000px #17201b inset; }
.auth-page .input[aria-invalid="true"] { border-color: #ff8a80; }
.auth-page .field-error { color: #ff8a80; }
.auth-page .password-toggle { color: rgba(255, 255, 255, 0.7); }
.auth-page .password-toggle:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.auth-page .checkbox { color: rgba(255, 255, 255, 0.75); }
.auth-page .checkbox a { color: #fff; }
.auth-page .link-subtle { color: rgba(255, 255, 255, 0.7); }
.auth-page .link-subtle:hover { color: #fff; }
.auth-page .check-list li, .auth-page .steps-compact { color: rgba(255, 255, 255, 0.78); }
.auth-page .muted { color: rgba(255, 255, 255, 0.6); }
.auth-page .qr-box, .auth-page .recovery-codes li { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
.auth-page .btn-outline { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.auth-page .btn-outline:hover { border-color: #fff; }
.auth-page .alert-success { background: rgba(79, 212, 138, 0.12); color: #b4f2cf; border-color: rgba(79, 212, 138, 0.3); }
.auth-page .alert-error { background: rgba(229, 57, 53, 0.14); color: #ffb4ab; border-color: rgba(255, 138, 128, 0.3); }
.auth-page .alert-warning { background: rgba(255, 179, 0, 0.12); color: #ffd78a; border-color: rgba(255, 179, 0, 0.3); }
.auth-page .alert-info { background: rgba(47, 111, 237, 0.16); color: #b9cdff; border-color: rgba(120, 160, 255, 0.3); }
@media (max-width: 640px) {
    .auth-main { justify-content: flex-start; padding-top: 28px; }
    .auth-box { padding: 28px 22px; border-radius: 24px; }
}

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 0.85rem; font-weight: 500; }
.field-optional { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
    width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--surface);
    font-size: 0.95rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(18, 160, 90, 0.15); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12); }
.field-hint { font-size: 0.78rem; color: var(--ink-3); }
.field-error { font-size: 0.8rem; color: var(--red); display: flex; gap: 6px; align-items: flex-start; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.checkbox a { color: var(--ink); }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.link-subtle { font-size: 0.88rem; color: var(--ink-2); }
.link-subtle:hover { color: var(--ink); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 84px; }
.password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; cursor: pointer; padding: 8px 12px; border-radius: 8px;
    font-size: 0.78rem; color: var(--ink-2);
}
.password-toggle:hover { background: var(--surface-2); color: var(--ink); }

.radio-cards { display: grid; gap: 12px; }
.radio-card { position: relative; display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.radio-card:hover { border-color: var(--ink-3); }
.radio-card input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.radio-card:has(input:checked) { border-color: var(--green); background: #f6fcf8; box-shadow: 0 0 0 3px rgba(18, 160, 90, 0.12); }
.radio-card-title { font-weight: 500; }
.radio-card-text { font-size: 0.85rem; color: var(--ink-2); margin-top: 2px; }

/* Alertas */
.alert { display: flex; gap: 12px; padding: 14px 18px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; border: 1px solid transparent; animation: alert-in 0.4s var(--ease) both; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.alert-success { background: var(--green-soft); color: #0b5e3b; border-color: rgba(18, 160, 90, 0.2); }
.alert-error { background: var(--red-soft); color: #8e1c1c; border-color: rgba(198, 40, 40, 0.18); }
.alert-warning { background: var(--amber-soft); color: #7a4800; border-color: rgba(178, 106, 0, 0.2); }
.alert-info { background: var(--blue-soft); color: #1c3f8f; border-color: rgba(47, 111, 237, 0.18); }
.alert ul { padding-left: 18px; }

@keyframes alert-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Área autenticada (cliente e admin)
   -------------------------------------------------------------------------- */
.app-body { background: var(--surface-2); min-height: 100vh; }
.app-topbar {
    position: sticky; top: 0; z-index: 50; height: 68px;
    background: rgba(255, 255, 255, 0.85); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.app-topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-topbar .brand, .admin-sidebar .brand, .admin-mobilebar .brand { flex: none; }
.app-nav { display: flex; align-items: center; gap: 4px; }
.app-nav a {
    text-decoration: none; font-size: 0.88rem; padding: 8px 14px; border-radius: var(--radius-pill); color: var(--ink-2);
    transition: background 0.2s ease, color 0.2s ease;
}
.app-nav a:hover { color: var(--ink); background: var(--surface-2); }
.app-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-3); font-weight: 500; }
.app-user { display: flex; align-items: center; gap: 8px; }
.app-user form { margin: 0; }
.admin-badge { font-size: 0.66rem; padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(79, 212, 138, 0.14); color: var(--green-bright); border: 1px solid rgba(79, 212, 138, 0.3); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

/* Painel administrativo: menu lateral escuro + conteúdo claro */
.admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
    position: sticky; top: 0; height: 100vh; overflow-x: hidden; overflow-y: auto; isolation: isolate;
    display: flex; flex-direction: column; padding: 22px 14px 18px;
    background: var(--dark-1); color: #fff; border-right: 1px solid var(--line-dark);
}
.admin-sidebar::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none; left: -40%; right: -40%; top: -140px; height: 340px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(18, 160, 90, 0.24), transparent 70%);
}
.admin-sidebar-head { display: flex; align-items: center; gap: 10px; padding: 6px 12px 18px; }
.admin-sidebar .brand-logo { height: 22px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-group { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.38); padding: 18px 12px 8px; }
.admin-nav a, .admin-nav-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: rgba(255, 255, 255, 0.68); text-decoration: none; font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-nav a svg, .admin-nav-link svg { width: 18px; height: 18px; flex: none; }
.admin-nav a:hover, .admin-nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 500; box-shadow: inset 3px 0 0 var(--green-bright); }
.admin-nav a[aria-current="page"] svg { color: var(--green-bright); }
.admin-sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-dark); display: grid; gap: 6px; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px 2px 10px; }
.admin-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green-bright), var(--green-deep)); color: #04240f; font-weight: 600; font-size: 0.9rem;
}
.admin-user-text { display: grid; min-width: 0; flex: 1; }
.admin-user-name { font-size: 0.86rem; font-weight: 500; }
.admin-user-mail { font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user form { margin: 0; }
.admin-logout {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-dark-strong); background: transparent; color: rgba(255, 255, 255, 0.7);
    display: grid; place-items: center; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.admin-logout svg { width: 17px; height: 17px; }
.admin-logout:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.admin-content { min-width: 0; background: var(--surface-2); }
.admin-content .container { max-width: 1180px; }
.admin-mobilebar { display: none; }

/* Painel: indicadores */
.stat { position: relative; }
.stat-icon {
    position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep);
}
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon.is-neutral { background: var(--surface-3); color: var(--ink-2); }
.stat-icon.is-alert { background: var(--red-soft); color: var(--red); }
.stat-label { padding-right: 44px; }
.health-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 4px var(--green-soft); }
.health-dot.is-alert { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.list-rows { display: grid; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.list-row:first-child { border-top: 0; padding-top: 4px; }
.list-row-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-weight: 500; font-size: 0.85rem; }
.list-row-main { min-width: 0; flex: 1; display: grid; }
.list-row-title { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row-sub { font-size: 0.76rem; color: var(--ink-3); }
.list-row-end { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.app-nav-toggle { display: none; }
.app-main { padding: 40px 0 80px; }
.app-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.app-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -0.03em; }
.app-subtitle { color: var(--ink-2); margin-top: 4px; font-size: 0.95rem; }
.app-section { margin-top: 28px; }
.app-section-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 14px; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 24px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-title { font-size: 1.02rem; font-weight: 500; }
.panel-danger { border-color: rgba(198, 40, 40, 0.25); }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.stat-label { font-size: 0.8rem; color: var(--ink-2); }
.stat-value { font-size: 1.7rem; font-weight: 500; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.1; }
.stat-hint { font-size: 0.75rem; color: var(--ink-3); margin-top: 6px; }
.stat-alert .stat-value { color: var(--red); }

.dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px 20px; font-size: 0.92rem; }
.dl dt { color: var(--ink-2); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.badge-success { background: var(--green-soft); color: var(--green-deep); }
.badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-neutral { background: var(--surface-3); color: var(--ink-2); }
.badge-info { background: var(--blue-soft); color: var(--blue); }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 0.78rem; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table td.mono { overflow-wrap: normal; }
/* Textos longos (motivos, erros, metadados) quebram linha; o resto da tabela rola na horizontal se precisar. */
.table td.small, .table td.wrap { white-space: normal; min-width: 170px; overflow-wrap: anywhere; }
.admin-content .table th, .admin-content .table td { padding-inline: 12px; }
.admin-content .table th:first-child, .admin-content .table td:first-child { padding-left: 16px; }
.table td.empty { white-space: normal; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: #fafafb; }
.table a { color: var(--ink); font-weight: 500; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; overflow-wrap: anywhere; }
.muted { color: var(--ink-2); }
.small { font-size: 0.82rem; }
.empty { padding: 36px; text-align: center; color: var(--ink-2); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.toolbar .field { min-width: 180px; }
.toolbar .input, .toolbar .select { min-height: 42px; padding: 8px 14px; }

.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; font-size: 0.88rem; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.timeline li::after { content: ''; position: absolute; left: 7.5px; top: 20px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline-time { color: var(--ink-3); font-size: 0.78rem; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.pagination a:hover { border-color: var(--ink-3); }
.pagination [aria-current="page"] span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { color: var(--ink-3); }

/* Pix: página de pagamento (cabeçalho escuro com o valor, QR em moldura e passos numerados) */
.pay-page { max-width: 880px; margin: 0 auto; }
.pay-back { display: inline-block; font-size: 0.88rem; color: var(--ink-2); text-decoration: none; margin-bottom: 14px; }
.pay-back:hover { color: var(--ink); }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.pay-head {
    position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
    padding: 28px 32px; background: var(--black); color: #fff;
}
.pay-head::before { content: ''; position: absolute; z-index: -1; inset: -80% 20% -80% -10%; background: radial-gradient(50% 50% at 50% 50%, rgba(18, 160, 90, 0.38), transparent 70%); }
.pay-head-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.pay-amount { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; }
.pay-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 500;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-dark-strong); color: #fff;
}
.pay-chip.is-done { background: rgba(79, 212, 138, 0.16); border-color: rgba(79, 212, 138, 0.4); color: var(--green-bright); }
.pay-chip.is-off { color: rgba(255, 255, 255, 0.6); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 0 rgba(79, 212, 138, 0.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 212, 138, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(79, 212, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 212, 138, 0); } }
.pay-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 32px; align-items: start; }
.pay-qr { padding: 18px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.pay-qr img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); image-rendering: pixelated; }
.pay-qr-hint { font-size: 0.78rem; color: var(--ink-3); margin-top: 12px; }
.step-list { list-style: none; display: grid; gap: 14px; margin: 14px 0 22px; }
.step-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-2); }
.step-list strong { color: var(--ink); font-weight: 500; }
.step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); font-size: 0.8rem; font-weight: 600; margin-top: -2px; }
.pix-code { display: flex; gap: 8px; margin-top: 8px; }
.pix-code .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.75rem; background: var(--surface-2); }
.pix-code .btn { flex: none; }
.pix-status { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 0.88rem; color: var(--ink-2); margin-top: 18px; }
.pix-status.is-success { background: var(--green-soft); color: #0b5e3b; }
.pix-status.is-final { background: var(--amber-soft); color: #7a4800; }
.pix-status .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); border-right-color: transparent; animation: spin 0.8s linear infinite; flex: none; }
.pay-result { text-align: center; padding: 44px 28px; display: grid; justify-items: center; gap: 6px; }
.pay-result-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); margin-bottom: 8px; }
.pay-result-icon svg { width: 26px; height: 26px; }
.pay-result-icon.is-warning { background: var(--amber-soft); color: var(--amber); }
.pay-result-title { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.pay-foot { display: flex; gap: 10px; align-items: flex-start; padding: 16px 32px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 0.8rem; color: var(--ink-2); }
.pay-foot svg { flex: none; margin-top: 1px; color: var(--green-deep); }

/* Assinatura: cartão escuro do plano, no estilo do cartão de preço do site */
.plan-card {
    position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: 28px;
    background: var(--black); color: #fff; display: flex; flex-direction: column; gap: 18px;
}
.plan-card::before { content: ''; position: absolute; z-index: -1; inset: -50% -30% 40% 20%; background: radial-gradient(50% 50% at 50% 50%, rgba(18, 160, 90, 0.32), transparent 70%); }
.plan-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-card-name { font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.plan-card-price { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.plan-card-price span { font-size: 1rem; font-weight: 400; color: rgba(255, 255, 255, 0.55); letter-spacing: 0; margin-left: 4px; }
.plan-card .dl { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.plan-card .dl dt { color: rgba(255, 255, 255, 0.55); }
.plan-card .dl dd { color: #fff; }
.plan-card .alert { margin-top: 0; }

/* Lista de espera */
.inline-details summary { cursor: pointer; color: var(--red); }
.inline-details[open] { min-width: 220px; }
.waitlist-card { max-width: 560px; margin: 0 auto; }
.waitlist-done { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 12px 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Verificação em duas etapas */
.steps-compact { padding-left: 1.2rem; display: grid; gap: 6px; font-size: 0.9rem; color: var(--ink-2); }
.qr-box { text-align: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.qr-code { display: inline-block; padding: 10px; background: #fff; border-radius: var(--radius-sm); line-height: 0; }
.qr-code svg { width: 200px; height: 200px; display: block; }
.qr-secret { font-size: 0.85rem; letter-spacing: 0.04em; margin-top: 4px; }
.recovery-codes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.recovery-codes li { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; font-size: 0.95rem; letter-spacing: 0.05em; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: shimmer 1.4s infinite; }

@keyframes shimmer { to { transform: translateX(100%); } }

/* Conteúdo legal */
.prose { font-size: 0.98rem; color: #2b2b30; }
.prose h2 { font-size: 1.35rem; font-weight: 500; margin: 40px 0 12px; }
.prose h3 { font-size: 1.05rem; font-weight: 500; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--green-deep); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 500; }
.legal-meta { color: var(--ink-3); font-size: 0.85rem; }
.legal-callout { padding: 16px 18px; border-radius: 14px; background: var(--amber-soft); color: #6a4100; font-size: 0.9rem; margin-bottom: 24px; }

/* Utilitários */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.inline-form { display: inline; margin: 0; }
.w-full { width: 100%; }

/* --------------------------------------------------------------------------
   Painel administrativo: tema escuro minimalista
   Redefine os tokens só dentro do admin; site e área do cliente continuam claros.
   -------------------------------------------------------------------------- */
.is-admin-layout {
    --adm-bg: #09090b;
    --surface: #111113;
    --surface-2: #0d0d0f;
    --surface-3: #1b1b1f;
    --ink: #ededef;
    --ink-2: #a1a1aa;
    --ink-3: #71717a;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.13);
    --accent: #4fd48a;
    /* Verde tecnológico do Meu Gestor: destaque do painel */
    --glow: #4fd48a;
    --glow-strong: #22c55e;
    --glow-soft: rgba(79, 212, 138, 0.12);
    --accent-soft: rgba(79, 212, 138, 0.1);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.1);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.1);
    --info: #93b4ff;
    --info-soft: rgba(147, 180, 255, 0.1);
    --shadow-sm: none;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
    background: var(--adm-bg);
    color: var(--ink);
}
.is-admin-layout :focus-visible { outline-color: var(--accent); }
.is-admin-layout ::selection { background: rgba(79, 212, 138, 0.28); }

/* Menu lateral: mesmo tom do fundo, separado só por uma linha */
.is-admin-layout .admin-sidebar { background: var(--adm-bg); border-right-color: var(--line); padding-top: 26px; }
.is-admin-layout .admin-sidebar::before { display: none; }
.is-admin-layout .admin-badge { background: transparent; color: var(--ink-3); border-color: var(--line-strong); }
.is-admin-layout .admin-nav-group { color: #52525b; }
.is-admin-layout .admin-nav a, .is-admin-layout .admin-nav-link { color: var(--ink-2); padding: 9px 12px; border-radius: 10px; }
.is-admin-layout .admin-nav a:hover, .is-admin-layout .admin-nav-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.is-admin-layout .admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: none; }
.is-admin-layout .admin-nav a[aria-current="page"] svg { color: var(--glow); }
.is-admin-layout .admin-nav a[aria-current="page"] { background: linear-gradient(90deg, var(--glow-soft), rgba(255, 255, 255, 0.03)); }
.is-admin-layout .admin-sidebar-foot { border-top-color: var(--line); }
.is-admin-layout .admin-avatar { background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-strong); }
.is-admin-layout .admin-user-mail { color: var(--ink-3); }
.is-admin-layout .admin-logout { border-color: var(--line-strong); color: var(--ink-2); }
.is-admin-layout .admin-content { background: var(--adm-bg); }
.is-admin-layout .admin-mobilebar { background: var(--adm-bg); border-bottom-color: var(--line); }

/* Tipografia e superfícies */
.is-admin-layout .app-title { font-weight: 500; letter-spacing: -0.035em; }
.is-admin-layout .app-section-title { font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.is-admin-layout .panel, .is-admin-layout .stat, .is-admin-layout .kpi { background: var(--surface); border-color: var(--line); border-radius: 16px; }
.is-admin-layout .panel-sub { font-size: 0.78rem; color: var(--ink-3); margin-top: 2px; }
.is-admin-layout .panel-danger { border-color: rgba(248, 113, 113, 0.3); }
.is-admin-layout a { color: inherit; }
.is-admin-layout .small a, .is-admin-layout a.small, .is-admin-layout .stat-hint a, .is-admin-layout .kpi-hint a { color: var(--ink-2); text-underline-offset: 3px; }
.is-admin-layout .small a:hover, .is-admin-layout a.small:hover, .is-admin-layout .stat-hint a:hover, .is-admin-layout .kpi-hint a:hover { color: var(--ink); }
.is-admin-layout .card-text { color: var(--ink-2); }

/* Indicadores */
.kpi { padding: 20px; border: 1px solid var(--line); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-2); }
.kpi-label svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.kpi-value { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi-hint { font-size: 0.76rem; color: var(--ink-3); margin-top: 6px; }
.kpi-delta { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 0.72rem; font-weight: 500; background: var(--surface-3); color: var(--ink-2); }
.kpi-delta.is-up { background: var(--accent-soft); color: var(--accent); }
.is-admin-layout .stat-icon { background: var(--surface-3); color: var(--ink-2); border-radius: 9px; }
.is-admin-layout .stat-icon.is-alert { background: var(--danger-soft); color: var(--danger); }
.is-admin-layout .stat-value { font-variant-numeric: tabular-nums; }
.is-admin-layout .stat-alert .stat-value { color: var(--danger); }
.is-admin-layout .health-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.is-admin-layout .health-dot.is-alert { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

/* Painel: gráfico ao lado da situação das assinaturas */
.dash-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.dash-lines { display: grid; margin: 18px 0 0; border-top: 1px solid var(--line); }
.dash-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.dash-lines div:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-lines dt { color: var(--ink-2); }
.dash-lines dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
/* Cores das séries: verde (principal), cinza tracejado, branco e azul */
.chart { color: var(--glow); }
.chart-key.is-0, .chart-series.is-0 { --c: var(--glow); }
.chart-key.is-1, .chart-series.is-1 { --c: #a1a1aa; }
.chart-key.is-2, .chart-series.is-2 { --c: #e4e4e7; }
.chart-key.is-3, .chart-series.is-3 { --c: #7dd3fc; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-key { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-2); }
.chart-key::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--glow)); }
.chart-key strong { color: var(--ink); font-weight: 500; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-empty { padding: 48px 0; text-align: center; color: var(--ink-3); font-size: 0.88rem; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--c, var(--glow)); }
.chart-series.is-1 .chart-line { stroke-dasharray: 4 5; stroke-width: 1.6; }
.chart-dot { fill: var(--surface); stroke: var(--c, var(--glow)); stroke-width: 2; }
.chart-dot.is-last { fill: var(--c, var(--glow)); }
.is-admin-layout .toolbar .btn { min-height: 42px; }

/* Tabelas, listas e paginação */
.is-admin-layout .table-wrap { border-color: var(--line); background: var(--surface); }
.is-admin-layout .table th { background: transparent; color: var(--ink-3); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.is-admin-layout .table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.is-admin-layout .table a { color: var(--ink); text-decoration: none; }
.is-admin-layout .table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.is-admin-layout hr { border: 0; border-top: 1px solid var(--line); }
.is-admin-layout .checkbox input { accent-color: var(--accent); }
.is-admin-layout .list-row-avatar { background: var(--surface-3); color: var(--ink-2); }
.is-admin-layout .pagination a, .is-admin-layout .pagination span { background: var(--surface); border-color: var(--line); }
.is-admin-layout .pagination [aria-current="page"] span { background: var(--ink); color: var(--adm-bg); border-color: var(--ink); }

/* Selos e alertas em tons translúcidos */
.is-admin-layout .badge { border: 1px solid transparent; }
.is-admin-layout .badge-success { background: var(--accent-soft); color: var(--accent); border-color: rgba(79, 212, 138, 0.18); }
.is-admin-layout .badge-warning { background: var(--warn-soft); color: var(--warn); border-color: rgba(251, 191, 36, 0.18); }
.is-admin-layout .badge-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(248, 113, 113, 0.18); }
.is-admin-layout .badge-neutral { background: rgba(255, 255, 255, 0.05); color: var(--ink-2); border-color: var(--line); }
.is-admin-layout .badge-info { background: var(--info-soft); color: var(--info); border-color: rgba(147, 180, 255, 0.18); }
.is-admin-layout .alert-success { background: var(--accent-soft); color: #b9f0d0; border-color: rgba(79, 212, 138, 0.22); }
.is-admin-layout .alert-error { background: var(--danger-soft); color: #fecaca; border-color: rgba(248, 113, 113, 0.22); }
.is-admin-layout .alert-warning { background: var(--warn-soft); color: #fde68a; border-color: rgba(251, 191, 36, 0.22); }
.is-admin-layout .alert-info { background: var(--info-soft); color: #dbe5ff; border-color: rgba(147, 180, 255, 0.22); }
.is-admin-layout .timeline li::before { background: var(--accent); }

/* Botões e formulários */
.is-admin-layout .btn-dark, .is-admin-layout .btn-primary { background: var(--ink); color: var(--adm-bg); }
.is-admin-layout .btn-dark:hover, .is-admin-layout .btn-primary:hover { background: #fff; box-shadow: none; }
.is-admin-layout .btn-outline { border-color: var(--line-strong); color: var(--ink); }
.is-admin-layout .btn-outline:hover { border-color: var(--ink-3); background: rgba(255, 255, 255, 0.03); }
.is-admin-layout .btn-danger { background: transparent; color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }
.is-admin-layout .btn-danger:hover { background: var(--danger-soft); }
.is-admin-layout .input, .is-admin-layout .select, .is-admin-layout .textarea { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.is-admin-layout .input::placeholder, .is-admin-layout .textarea::placeholder { color: var(--ink-3); }
.is-admin-layout .input:hover, .is-admin-layout .select:hover, .is-admin-layout .textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.is-admin-layout .input:focus, .is-admin-layout .select:focus, .is-admin-layout .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 212, 138, 0.15); }
.is-admin-layout .input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.is-admin-layout .field-error { color: var(--danger); }
.is-admin-layout .password-toggle:hover { background: var(--surface-3); }
.is-admin-layout .radio-card:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.is-admin-layout .inline-details summary { color: var(--danger); }
.is-admin-layout .qr-box, .is-admin-layout .recovery-codes li { background: var(--surface-2); border-color: var(--line); }
.is-admin-layout .skeleton { background: var(--surface-3); }
.is-admin-layout .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent); }

@media (max-width: 960px) {
    .dash-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    /* O SVG encolhe junto com a tela; o texto dos eixos compensa para continuar legível. */
    .chart-axis { font-size: 22px; }
}

/* Admin: botão roxo, segmentos, notas e chips */
.is-admin-layout .btn-accent { background: var(--glow); color: #04240f; }
.is-admin-layout .btn-accent:hover { background: #6ee7a8; box-shadow: 0 8px 28px rgba(79, 212, 138, 0.28); }
.app-title.is-sm { font-size: 1.25rem; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.seg-item { padding: 7px 14px; border-radius: 9px; font-size: 0.84rem; color: var(--ink-2); text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.seg-item:hover { color: var(--ink); }
.seg-item[aria-current="page"] { background: var(--glow-soft); color: #c8f5da; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 0.82rem; color: var(--ink-2); line-height: 1.55; }
.note svg { flex: none; width: 18px; height: 18px; color: var(--glow); margin-top: 1px; }
.note strong { color: var(--ink); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 0.82rem; color: var(--ink); }
.chip svg { width: 14px; height: 14px; color: var(--glow); }
.chip-sm { padding: 2px 9px; font-size: 0.74rem; margin: 2px 4px 2px 0; color: var(--ink-2); font-family: ui-monospace, Menlo, Consolas, monospace; }
.block { display: block; }
.kpi-value.is-alert { color: var(--danger); }
.kpi-grid { gap: 16px; }

/* Consumo de IA: comparação entre modelos */
.model-list { display: grid; gap: 4px; }
.model-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(120px, 1fr); gap: 10px 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.model-row:first-child { border-top: 0; padding-top: 4px; }
.model-name { display: grid; gap: 2px; min-width: 0; }
.model-name .mono { font-size: 0.9rem; color: var(--ink); overflow-wrap: anywhere; }
.model-provider { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--glow); }
.model-kinds { font-size: 0.75rem; color: var(--ink-3); }
.model-bar { display: block; width: 100%; height: 8px; }
.model-bar-track { fill: rgba(255, 255, 255, 0.05); }
.model-bar-fill { fill: var(--glow); }
.model-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; }
.model-stats dt { font-size: 0.72rem; color: var(--ink-3); }
.model-stats dd { margin: 2px 0 0; font-size: 0.88rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Cérebro de IA (WebGL em admin.js; o SVG fica por baixo para quem não tem WebGL) */
.brain3d { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1; }
.brain3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.brain3d.is-live .brain3d-canvas { opacity: 1; }
.brain3d-fallback { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; transition: opacity 0.6s ease; }
.brain3d.is-live .brain3d-fallback { opacity: 0; }
.brain3d-glow { position: absolute; z-index: -1; inset: 16%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(79, 212, 138, 0.16), transparent); animation: halo 5s ease-in-out infinite; }
.brain3d.is-hit .brain3d-glow { animation: hub-hit 0.7s ease-out; }
.brain-halo { fill: rgba(79, 212, 138, 0.06); transform-origin: 120px 120px; animation: halo 4.5s ease-in-out infinite; }
.brain-ring { fill: none; stroke: rgba(79, 212, 138, 0.2); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 120px 120px; animation: spin 60s linear infinite; }
.brain-shape path { fill: none; stroke: #b9f0d0; stroke-width: 0.32; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgba(79, 212, 138, 0.7)); }
.brain-shape .brain-fold { stroke: rgba(185, 240, 208, 0.55); stroke-width: 0.22; }
@keyframes halo { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes hub-hit { 0% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(1.12); filter: brightness(1.8); } 100% { opacity: 0.85; transform: scale(1); } }

/* Linhas de transmissão (SVG desenhado por admin.js por trás dos blocos) */
[data-links] { position: relative; }
.links-svg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.link-base { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.link.is-live .link-base { stroke: rgba(79, 212, 138, 0.24); }
.link.is-error .link-base { stroke: rgba(248, 113, 113, 0.32); }
.link.is-unavailable .link-base, .link.is-inactive .link-base { stroke-dasharray: 3 6; }
.link-glow { fill: none; stroke: var(--glow); stroke-width: 1.8; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px rgba(79, 212, 138, 0.85)); transition: opacity 0.3s ease; }
.link.is-error .link-glow { stroke: var(--danger); filter: drop-shadow(0 0 4px rgba(248, 113, 113, 0.8)); }
.link-packet { fill: #d1fae5; filter: drop-shadow(0 0 5px rgba(79, 212, 138, 0.95)); }
.link.is-error .link-packet { fill: #fecaca; filter: drop-shadow(0 0 5px rgba(248, 113, 113, 0.9)); }
[data-link-target].is-hit { animation: target-hit 0.9s ease-out; }
@keyframes target-hit {
    0% { box-shadow: 0 0 0 0 rgba(79, 212, 138, 0); }
    30% { box-shadow: 0 0 0 1px rgba(79, 212, 138, 0.45), 0 0 26px rgba(79, 212, 138, 0.16); }
    100% { box-shadow: 0 0 0 0 rgba(79, 212, 138, 0); }
}

/* Painel: cérebro ligado aos serviços de IA */
.ai-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 16px; align-items: center;
    padding: 26px 32px; margin-bottom: 32px; border-radius: 22px; border: 1px solid var(--line);
    background: radial-gradient(60% 80% at 68% 50%, rgba(79, 212, 138, 0.07), transparent 70%), var(--surface);
}
.ai-hero-kicker { font-size: 0.85rem; color: var(--ink-3); }
.ai-hero-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; margin-top: 4px; }
.ai-hero-sub { max-width: 380px; margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); }
.ai-hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ai-hero-net { height: 320px; }
.ai-hero-brain { position: absolute; z-index: 1; left: 50%; top: 50%; width: 300px; transform: translate(-50%, -50%); }
.ai-node {
    position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 0 9px; align-items: center; min-width: 132px; padding: 9px 13px;
    border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(17, 17, 19, 0.92); color: var(--ink); text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.ai-node:hover { border-color: rgba(79, 212, 138, 0.45); transform: translateY(-1px); }
.ai-node-dot { grid-row: span 2; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.ai-node.is-active .ai-node-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 10px rgba(79, 212, 138, 0.6); }
.ai-node.is-error .ai-node-dot { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.ai-node.is-unavailable .ai-node-dot { background: var(--warn); }
.ai-node-name { font-size: 0.8rem; font-weight: 500; }
.ai-node-meta { font-size: 0.7rem; color: var(--ink-3); }
.ai-node.is-pos-0 { left: 0; top: 6%; }
.ai-node.is-pos-1 { left: 3%; top: 50%; transform: translateY(-50%); }
.ai-node.is-pos-2 { left: 0; bottom: 6%; }
.ai-node.is-pos-3 { right: 0; top: 6%; }
.ai-node.is-pos-4 { right: 3%; top: 50%; transform: translateY(-50%); }
.ai-node.is-pos-5 { right: 0; bottom: 6%; }
.ai-node.is-pos-1:hover, .ai-node.is-pos-4:hover { transform: translateY(calc(-50% - 1px)); }

/* Cérebro da IA (aba) */
.brain-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) minmax(0, 1fr); gap: 28px; align-items: center; }
.brain-col { position: relative; z-index: 1; display: grid; gap: 16px; }
.brain-core { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 12px 0; }
.brain-core-3d { width: min(100%, 340px); }
.brain-count { font-size: 0.95rem; color: var(--ink-2); }
.brain-count strong { font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.brain-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.brain-module {
    position: relative; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
    transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.brain-module:hover { border-color: rgba(79, 212, 138, 0.3); transform: translateY(-2px); }
.brain-module::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--state, var(--ink-3)); }
.brain-module.is-active { --state: var(--accent); }
.brain-module.is-error { --state: var(--danger); border-color: rgba(248, 113, 113, 0.3); }
.brain-module.is-unavailable { --state: var(--warn); }
.brain-module.is-inactive { --state: #52525b; }
.brain-module-head { display: flex; align-items: center; gap: 10px; }
.brain-module-icon { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--glow-soft); color: var(--glow); }
.brain-module-icon svg { width: 17px; height: 17px; }
.brain-module-title { flex: 1; min-width: 0; font-size: 0.92rem; font-weight: 500; }
.brain-module-text { font-size: 0.78rem; color: var(--ink-3); margin-top: 8px; }
.brain-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.brain-metrics dt { font-size: 0.7rem; color: var(--ink-3); }
.brain-metrics dd { margin: 1px 0 0; font-size: 0.82rem; font-weight: 500; overflow-wrap: anywhere; }
.brain-metrics .is-error { grid-column: 1 / -1; }
.brain-metrics .is-error dd { color: var(--danger); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.76rem; }
.brain-models { list-style: none; display: grid; gap: 6px; margin-top: 12px; font-size: 0.76rem; }
.brain-models li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.brain-models .mono { color: var(--ink); }

/* Apresentação de entrada (tela cheia, uma vez por sessão) */
.boot {
    position: fixed; z-index: 1000; inset: 0; display: none; place-items: center; overflow: hidden; color: #fff;
    background: radial-gradient(55% 55% at 50% 42%, rgba(79, 212, 138, 0.1), transparent 70%), #050506;
    /* Garantia: se o JavaScript falhar, a apresentação some sozinha. */
    animation: boot-failsafe 0.01s linear 9s forwards;
}
.js .boot { display: grid; }
body.is-booting { overflow: hidden; }
.boot-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot-beam {
    position: absolute; left: 0; width: 38vw; height: 1px; opacity: 0.55; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(79, 212, 138, 0.8), transparent);
    animation: beam 4.2s linear infinite;
}
.boot-beam.is-1 { top: 18%; animation-delay: 0.4s; }
.boot-beam.is-2 { top: 64%; animation-delay: 1.9s; animation-duration: 5.4s; }
.boot-beam.is-3 { top: 86%; animation-delay: 3.1s; animation-duration: 3.6s; opacity: 0.35; }
.boot-stage { position: relative; display: grid; justify-items: center; text-align: center; padding: 24px; }
.boot-brain { width: min(44vh, 380px); margin-bottom: -18px; animation: boot-in 1.8s var(--ease) both; }
.boot-text { display: grid; justify-items: center; gap: 10px; }
.boot-kicker { font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); animation: boot-rise 1s var(--ease) 0.3s both; }
.boot-title { font-size: clamp(2.4rem, 7.2vw, 5.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.boot-char { display: inline-block; white-space: pre; opacity: 0; animation: char-in 0.9s var(--ease) both; }
.boot-sub { font-size: clamp(0.82rem, 1.6vw, 1.08rem); letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.72); animation: boot-rise 1.2s var(--ease) 1.5s both; }
.boot-progress { width: min(280px, 60vw); height: 2px; margin-top: 18px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.08); animation: boot-fade 0.6s ease 1.8s both; }
.boot-progress i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--glow); box-shadow: 0 0 12px var(--glow); animation: progress 3.6s cubic-bezier(0.4, 0, 0.2, 1) 1.9s forwards; }
.boot-meta { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); animation: boot-fade 1s ease 2s both; }
.boot-skip {
    position: absolute; right: 24px; bottom: 22px; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; color: rgba(255, 255, 255, 0.65); transition: color 0.2s ease, border-color 0.2s ease;
}
.boot-skip:hover, .boot-skip:focus-visible { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.boot.is-leaving { animation: boot-out 0.9s var(--ease) forwards; }
body.is-entering .admin-shell { animation: shell-in 0.9s var(--ease) both; }
.boot-char:nth-child(1) { animation-delay: 0.55s; } .boot-char:nth-child(2) { animation-delay: 0.6s; } .boot-char:nth-child(3) { animation-delay: 0.65s; }
.boot-char:nth-child(4) { animation-delay: 0.7s; } .boot-char:nth-child(5) { animation-delay: 0.75s; } .boot-char:nth-child(6) { animation-delay: 0.8s; }
.boot-char:nth-child(7) { animation-delay: 0.85s; } .boot-char:nth-child(8) { animation-delay: 0.9s; } .boot-char:nth-child(9) { animation-delay: 0.95s; }
.boot-char:nth-child(10) { animation-delay: 1s; } .boot-char:nth-child(11) { animation-delay: 1.05s; } .boot-char:nth-child(12) { animation-delay: 1.1s; }
.boot-char:nth-child(13) { animation-delay: 1.15s; } .boot-char:nth-child(14) { animation-delay: 1.2s; } .boot-char:nth-child(15) { animation-delay: 1.25s; }
.boot-char:nth-child(16) { animation-delay: 1.3s; } .boot-char:nth-child(17) { animation-delay: 1.35s; } .boot-char:nth-child(18) { animation-delay: 1.4s; }
.boot-char:nth-child(n+19) { animation-delay: 1.45s; }
@keyframes boot-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes boot-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes char-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes beam { from { transform: translateX(-45vw); } to { transform: translateX(110vw); } }
@keyframes boot-in { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: none; } }
@keyframes boot-out { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
@keyframes boot-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes shell-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
    .brain-stage { grid-template-columns: 1fr; }
    .brain-core { order: -1; }
    .brain-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .model-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ai-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .ai-hero { padding: 24px 20px; }
    .ai-hero-net { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ai-hero-brain { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; justify-self: center; width: 220px; }
    .ai-hero-net .ai-node { position: relative; inset: auto; transform: none; min-width: 0; }
    .ai-hero-net .ai-node:hover { transform: translateY(-1px); }
    .brain-col { grid-template-columns: 1fr; }
    .model-row { grid-template-columns: 1fr; }
    .model-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .boot-skip { right: 50%; transform: translateX(50%); }
}

/* Página de erro */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--black); color: #fff; padding: 24px; }
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 300; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-text { color: var(--ink-3); margin: 16px 0 28px; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .main-nav { gap: 20px; }
    .hero-stage { grid-template-columns: 1fr minmax(280px, 340px) 1fr; gap: 18px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .main-nav, .header-actions .header-login, .header-actions .btn { display: none; }
    .menu-toggle { display: inline-flex; }
    .hero-stage { grid-template-columns: 1fr; }
    .hero-cards { flex-direction: row; justify-content: center; align-items: stretch !important; flex-wrap: wrap; }
    .hero-cards .float-card { max-width: 300px; }
    .hero-cards-left { order: 2; }
    .hero-cards-right { order: 3; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; }
    .step-connector { display: none; }
    .feature-row { grid-template-columns: 1fr; gap: 28px; }
    .feature-row.reverse .feature-row-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .app-nav-toggle { display: inline-flex; }
    .app-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .app-nav.is-open { display: flex; }
    .app-nav a { padding: 12px 14px; }

    /* Painel admin no celular: barra escura no topo; o menu lateral desliza por cima */
    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .admin-mobilebar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: sticky; top: 0; z-index: 80; height: 60px; padding: 0 16px;
        background: var(--dark-1); color: #fff; border-bottom: 1px solid var(--line-dark);
    }
    .admin-mobilebar .brand-logo { height: 20px; }
    .admin-sidebar {
        position: fixed; z-index: 90; top: 0; left: 0; bottom: 0; width: min(290px, 84vw); height: auto;
        transform: translateX(-100%); transition: transform 0.35s var(--ease); box-shadow: none;
    }
    .admin-sidebar.is-open { transform: none; box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35); }
}

@media (max-width: 640px) {
    .container { padding-inline: 16px; }
    .site-header { top: 10px; width: calc(100% - 20px); padding-left: 18px; }
    .hero { padding-top: 120px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-cards .float-card { max-width: none; }
    .section { padding: 80px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .price-card { padding: 32px 24px; }
    .cta-band { padding: 56px 22px; border-radius: 24px; }
    .phone-screen { height: 520px; }
    .demo-tabs.on-dark { flex-wrap: nowrap; gap: 2px; padding: 4px; }
    .demo-tabs.on-dark .demo-tab { padding: 6px 10px; font-size: 0.8rem; }
    .dl { grid-template-columns: 1fr; gap: 2px 0; }
    .dl dd { margin-bottom: 10px; }
    .pay-head { padding: 24px 22px; }
    .pay-body { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
    .pay-foot { padding: 14px 22px; }
    .pix-code { flex-direction: column; }
    .plan-card { padding: 22px; }
    .panel { padding: 20px; }
    .app-user .user-name { display: none; }
}

/* Redução de movimento: sem animações nem transições decorativas */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .hero-enter, .mini-bars span, .msg, .alert, .float-card { opacity: 1; transform: none; animation: none !important; }
    /* Painel: apresentação e cérebro já no estado final, sem atrasos, giro ou pulsos */
    .boot-kicker, .boot-char, .boot-sub, .boot-progress, .boot-meta, .boot-brain, .brain-halo, .brain-ring, .brain3d-glow { opacity: 1; animation: none !important; filter: none; }
    .boot-progress i { transform: none; animation: none !important; }
    .boot-beam { display: none; }
    .boot { animation: boot-failsafe 0.01s linear 6s forwards !important; }
    .boot.is-leaving { animation: none !important; display: none; }
}
