/* ==========================================================================
   TELAS INICIAIS DO APLICATIVO (APK/PWA) — boas-vindas, login e cadastro
   Identidade eopreço: Poppins, fundo cinza claro, ação primária cinza escuro.
   ========================================================================== */

.app-body {
    margin: 0;
    background: var(--bg-color, #f4f4f4);
    color: var(--text-color, #222222);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

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

.app-screen {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top);
    animation: appScreenIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Proteção nativa de aplicativo contra menus de toque longo e seleção indesejada */
.app-btn,
.app-google-btn,
.info-card,
.logo-card,
.logo-card img,
.welcome-hero,
.welcome-title,
.welcome-hint,
.welcome-legal,
.welcome-legal a,
.app-sheet,
.app-topbar {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Preserva a usabilidade de digitação, seleção e ações legítimas de colar em formulários */
.app-body input,
.app-body textarea,
.app-body [contenteditable="true"] {
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    user-select: text;
}

@keyframes appScreenIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Botões ---------- */
.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.app-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.app-btn--primary {
    background: var(--primary-color, #333333);
    color: #ffffff;
}

.app-btn--primary:hover:not(:disabled) {
    background: var(--primary-hover, #000000);
}

.app-btn--primary:disabled {
    background: #e6e6e6;
    color: #a3a3a3;
    cursor: not-allowed;
}

.app-btn--outline {
    background: var(--card-bg, #ffffff);
    color: var(--text-color, #222222);
    border-color: var(--border-color, #dddddd);
}

.app-btn--outline:hover {
    border-color: #bdbdbd;
}

.app-btn--soft {
    background: #ececec;
    color: var(--text-color, #222222);
}

.app-btn--soft:hover {
    background: #e2e2e2;
}

/* ---------- Tela 1: Boas-vindas ---------- */
.app-welcome {
    padding-top: 0;
}

.welcome-hero {
    position: relative;
    flex: 1 1 auto;
    min-height: 300px;
    overflow: hidden;
}

.logo-card {
    position: absolute;
    width: 82%;
    aspect-ratio: 16 / 10;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 22px 34px -14px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    animation: logoCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    user-select: none;
    pointer-events: none;
}

/* Pilha em cascata descendo para a direita, cortada pela borda da tela */
.logo-card--1 {
    left: 8%;
    top: 4%;
    background: linear-gradient(145deg, #ffffff 0%, #ececec 100%);
    transform: rotate(-11deg);
    z-index: 3;
    animation-delay: 0.05s;
}

.logo-card--2 {
    left: 24%;
    top: 30%;
    background: linear-gradient(145deg, #e9e9e9 0%, #d6d6d6 100%);
    transform: rotate(-11deg);
    z-index: 2;
    animation-delay: 0.15s;
}

.logo-card--3 {
    left: 40%;
    top: 56%;
    background: linear-gradient(145deg, #d4d4d4 0%, #bdbdbd 100%);
    transform: rotate(-11deg);
    z-index: 1;
    animation-delay: 0.25s;
}

@keyframes logoCardIn {
    from { opacity: 0; translate: 40px 20px; }
    to   { opacity: 1; translate: 0 0; }
}

.welcome-body {
    padding: 8px 24px calc(20px + env(safe-area-inset-bottom));
}

.welcome-title {
    margin: 0 0 24px;
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-color, #222222);
}

.welcome-title__line {
    display: inline-block;
    white-space: nowrap;
}

/* Frase dinâmica que troca: comparar preços / economizar mais / comprar barato */
.app-rotator {
    display: inline-block;
    color: var(--text-color, #222222);
}

.app-rotator.is-leaving {
    animation: appWordOut 0.35s ease-in forwards;
}

.app-rotator.is-entering {
    animation: appWordIn 0.5s ease-out both;
}

@keyframes appWordOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-0.35em); }
}

@keyframes appWordIn {
    from { opacity: 0; transform: translateY(0.35em); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 360px) {
    .welcome-title {
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-rotator.is-leaving,
    .app-rotator.is-entering {
        animation: none;
        transition: opacity 0.2s;
    }
}

.welcome-hint {
    margin: 28px 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color, #222222);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.info-card {
    width: 100%;
    min-height: 128px;
    padding: 16px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dddddd);
    border-radius: 18px;
    font-family: inherit;
    color: var(--text-color, #222222);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.info-card:hover {
    border-color: #bdbdbd;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.12);
}

.info-card:active {
    transform: scale(0.97);
}

.info-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f4f4f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #333333);
    flex-shrink: 0;
    margin-bottom: 12px;
    transition: background 0.18s ease;
}

.info-card:hover .info-card__icon {
    background: #ebebeb;
}

.info-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.info-card__label {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-color, #222222);
}

.info-card__action {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted, #777777);
    transition: color 0.18s ease;
}

.info-card:hover .info-card__action {
    color: var(--text-color, #222222);
}

.welcome-legal {
    margin: 22px 0 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted, #777777);
}

.welcome-legal a {
    color: inherit;
    text-decoration: underline;
}

/* ---------- Telas de formulário (login / cadastro) ---------- */
.app-topbar {
    padding: 14px 16px 0;
}

.app-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50%;
    color: var(--text-color, #222222);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease;
}

.app-back:hover {
    background: rgba(0, 0, 0, 0.06);
}

.app-back:active {
    background: rgba(0, 0, 0, 0.1);
}

.app-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.app-form__body {
    flex: 1 1 auto;
    padding: 8px 24px 24px;
}

.app-title {
    margin: 12px 0 10px;
    font-size: clamp(1.45rem, 6.2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.app-subtitle {
    margin: 0 0 28px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted, #777777);
}

.app-subtitle strong {
    color: var(--text-color, #222222);
    font-weight: 600;
    word-break: break-all;
}

.app-input-wrap {
    position: relative;
    margin-bottom: 8px;
}

.app-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0 12px;
    border: 0;
    border-bottom: 2px solid var(--border-color, #dddddd);
    border-radius: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-color, #222222);
    outline: none;
    transition: border-color 0.2s ease;
}

.app-input::placeholder {
    color: #b5b5b5;
    font-weight: 500;
}

.app-input:focus {
    border-bottom-color: var(--primary-color, #333333);
}

.app-input-wrap .app-input {
    padding-right: 48px;
}

.app-eye {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-58%);
    display: inline-flex;
    padding: 6px;
    border: 0;
    background: transparent;
    color: #8a8a8a;
    cursor: pointer;
}

.app-eye:hover {
    color: var(--text-color, #222222);
}

.app-eye .app-eye__on {
    display: none;
}

.app-eye[aria-pressed="true"] .app-eye__on {
    display: block;
}

.app-eye[aria-pressed="true"] .app-eye__off {
    display: none;
}

.app-error {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--danger-bg, #f5f5f5);
    border: 1px solid var(--border-color, #dddddd);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color, #222222);
}

.app-link {
    display: inline-block;
    margin-top: 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color, #333333);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease;
}

.app-link:hover {
    border-bottom-color: currentColor;
}

.app-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
    font-size: 0.85rem;
    color: var(--text-muted, #777777);
}

.app-divider::before,
.app-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #dddddd);
}

.app-actions {
    position: sticky;
    bottom: var(--keyboard-offset, 0px);
    padding: 12px 24px calc(20px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(244, 244, 244, 0) 0%, var(--bg-color, #f4f4f4) 28%);
    transition: bottom 0.22s cubic-bezier(0.16, 1, 0.3, 1), padding 0.2s ease;
    z-index: 20;
}

.keyboard-open .app-actions {
    padding: 8px 24px 8px;
    background: var(--bg-color, #f4f4f4);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05);
}

.keyboard-open .app-actions--fab {
    padding-bottom: 4px;
}

@media (max-height: 520px) {
    .app-title {
        margin: 6px 0 6px;
        font-size: 1.3rem;
    }
    .app-subtitle {
        margin: 0 0 14px;
    }
    .app-fab {
        width: 56px;
        height: 56px;
    }
}

.app-actions--fab {
    display: flex;
    justify-content: flex-end;
}

.app-fab {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #333333);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.app-fab:hover:not(:disabled) {
    background: var(--primary-hover, #000000);
}

.app-fab:active:not(:disabled) {
    transform: scale(0.94);
}

.app-fab:disabled {
    background: #e6e6e6;
    color: #a3a3a3;
    box-shadow: none;
    cursor: not-allowed;
}

.app-form.is-submitting .app-fab,
.app-form.is-submitting .app-btn--primary {
    opacity: 0.7;
    pointer-events: none;
}

/* ---------- Bottom-sheet informativo ---------- */
.app-sheet[hidden] {
    display: none;
}

.app-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.app-sheet__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.app-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
    background: var(--card-bg, #ffffff);
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.app-sheet.is-open .app-sheet__overlay {
    opacity: 1;
}

.app-sheet.is-open .app-sheet__panel {
    transform: translateY(0);
}

.app-sheet__x {
    display: inline-flex;
    padding: 6px;
    margin-left: -6px;
    border: 0;
    background: transparent;
    color: var(--text-color, #222222);
    cursor: pointer;
}

.app-sheet__title {
    margin: 22px 0 8px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-sheet__subtitle {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted, #777777);
}

.app-sheet__list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.app-sheet__list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
    font-size: 0.98rem;
    line-height: 1.45;
}

.app-sheet__list li:last-child {
    border-bottom: 0;
}

.app-sheet__num {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #efefef;
    font-weight: 600;
}

body.app-sheet-open {
    overflow: hidden;
}

/* ---------- Mensagens (toasts) ---------- */
.app-toasts {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

.app-toast {
    max-width: 440px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--primary-color, #333333);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
    animation: appToastIn 0.3s ease both, appToastOut 0.3s ease 4s forwards;
}

@keyframes appToastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes appToastOut {
    to { opacity: 0; transform: translateY(-10px); }
}

@media (max-height: 640px) {
    .welcome-hero { min-height: 220px; }
    .welcome-title { margin-bottom: 16px; }
    .welcome-hint { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .app-screen,
    .logo-card,
    .app-toast {
        animation: none;
    }

    .app-sheet__panel,
    .app-sheet__overlay {
        transition: none;
    }
}

/* ---------- Telas de Documentos Institucionais (Termos e Privacidade) no App ---------- */
body.app-body:has(.app-doc-screen) {
    background: var(--card-bg, #ffffff);
}

.app-doc-screen {
    background: var(--card-bg, #ffffff);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-topbar--doc {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color, #dddddd);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
}

.app-topbar__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-color, #222222);
    text-align: center;
    flex: 1;
}

.app-topbar__spacer {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.app-doc-body {
    padding: 22px 20px calc(36px + env(safe-area-inset-bottom));
    color: var(--text-color, #222222);
    font-size: 0.93rem;
    line-height: 1.65;
    background: var(--card-bg, #ffffff);
}

.app-doc-updated {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted, #777777);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.app-doc-lead {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--text-color, #222222);
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.app-doc-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.app-doc-section h2 {
    margin: 0 0 10px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-color, #222222);
    letter-spacing: -0.01em;
}

.app-doc-section p {
    margin: 0 0 12px;
    line-height: 1.65;
    color: #444444;
}

.app-doc-section p:last-child {
    margin-bottom: 0;
}

.app-doc-section ul {
    margin: 8px 0 12px 20px;
    padding: 0;
    line-height: 1.65;
    color: #444444;
}

.app-doc-section li {
    margin-bottom: 8px;
}

.app-doc-section a {
    color: var(--primary-color, #333333);
    font-weight: 600;
    text-decoration: underline;
}

.app-doc-body .divider,
.app-doc-body hr.divider {
    border: 0;
    border-top: 1px solid var(--border-color, #dddddd);
    margin: 20px 0;
}

/* ==========================================================================
   Dark Mode Overrides — Telas Iniciais do Aplicativo (/app/)
   ========================================================================== */

/* Toast */
[data-theme="dark"] .app-toast {
    background: rgba(32, 32, 32, 0.96);
    color: #f5f5f5;
    border: 1px solid var(--border-color, #444444);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
}

/* Cards de Logotipo em Cascata (Welcome Hero) */
[data-theme="dark"] .logo-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 34px -14px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .logo-card--1 {
    background: linear-gradient(145deg, #2e2e2e 0%, #202020 100%);
}

[data-theme="dark"] .logo-card--2 {
    background: linear-gradient(145deg, #262626 0%, #1a1a1a 100%);
}

[data-theme="dark"] .logo-card--3 {
    background: linear-gradient(145deg, #202020 0%, #141414 100%);
}

[data-theme="dark"] .logo-card img {
    filter: invert(1);
    mix-blend-mode: screen;
}

/* Botões do App */
[data-theme="dark"] .app-btn--primary {
    background: var(--primary-color, #f5f5f5);
    color: var(--primary-text, #181818);
}

[data-theme="dark"] .app-btn--primary:hover:not(:disabled) {
    background: var(--primary-hover, #ffffff);
}

[data-theme="dark"] .app-btn--primary:disabled {
    background: #2a2a2a;
    color: #555555;
}

[data-theme="dark"] .app-btn--outline {
    background: #222222;
    color: #f5f5f5;
    border-color: #383838;
}

[data-theme="dark"] .app-btn--outline:hover {
    background: #2a2a2a;
    border-color: #484848;
}

[data-theme="dark"] .app-btn--soft {
    background: #2a2a2a;
    color: #f5f5f5;
}

[data-theme="dark"] .app-btn--soft:hover {
    background: #333333;
}

[data-theme="dark"] .app-fab {
    background: var(--primary-color, #f5f5f5);
    color: var(--primary-text, #181818);
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .app-fab:hover:not(:disabled) {
    background: var(--primary-hover, #ffffff);
}

[data-theme="dark"] .app-fab:disabled {
    background: #2a2a2a;
    color: #555555;
    box-shadow: none;
}

/* Cards de Informação ("Você pode estar procurando por:") */
[data-theme="dark"] .info-card {
    background: #222222;
    border-color: #333333;
    color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .info-card:hover {
    border-color: #484848;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .info-card__icon {
    background: #2a2a2a;
    color: #f5f5f5;
}

[data-theme="dark"] .info-card:hover .info-card__icon {
    background: #333333;
}

[data-theme="dark"] .info-card__action {
    color: #9e9e9e;
}

[data-theme="dark"] .info-card:hover .info-card__action {
    color: #f5f5f5;
}

/* Bottom Sheet Informativo */
[data-theme="dark"] .app-sheet__panel {
    background: #202020;
    border: 1px solid #333333;
    border-bottom: none;
}

[data-theme="dark"] .app-sheet__num {
    background: #2c2c2c;
    color: #f5f5f5;
}

[data-theme="dark"] .app-sheet__list li {
    border-bottom-color: #2e2e2e;
}

[data-theme="dark"] .app-sheet__x:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Formulários, Inputs e Navegação */
[data-theme="dark"] .app-topbar .app-back:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .app-topbar .app-back:active {
    background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .app-input {
    border-bottom-color: #383838;
    color: #f5f5f5;
}

[data-theme="dark"] .app-input:focus {
    border-bottom-color: #f5f5f5;
}

[data-theme="dark"] .app-input::placeholder {
    color: #666666;
}

[data-theme="dark"] .app-eye {
    color: #888888;
}

[data-theme="dark"] .app-eye:hover {
    color: #f5f5f5;
}

[data-theme="dark"] .app-error {
    background: #2a2a2a;
    border-color: #3d3d3d;
    color: #f5f5f5;
}

[data-theme="dark"] .app-link {
    color: #f5f5f5;
}

[data-theme="dark"] .app-divider::before,
[data-theme="dark"] .app-divider::after {
    background: #333333;
}

[data-theme="dark"] .app-actions {
    background: linear-gradient(180deg, rgba(22, 22, 22, 0) 0%, var(--bg-color, #161616) 28%);
}

[data-theme="dark"] .keyboard-open .app-actions {
    background: var(--bg-color, #161616);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}

/* Documentos Institucionais no App (Termos e Privacidade) */
[data-theme="dark"] body.app-body:has(.app-doc-screen),
[data-theme="dark"] .app-doc-screen,
[data-theme="dark"] .app-doc-body {
    background: var(--bg-color, #161616);
    color: var(--text-color, #f5f5f5);
}

[data-theme="dark"] .app-topbar--doc {
    background: rgba(22, 22, 22, 0.95);
    border-bottom-color: var(--border-color, #333333);
}

[data-theme="dark"] .app-doc-section p,
[data-theme="dark"] .app-doc-section ul {
    color: #cccccc;
}

[data-theme="dark"] .app-doc-section a {
    color: #ffffff;
}

[data-theme="dark"] .app-doc-body .divider,
[data-theme="dark"] .app-doc-body hr.divider {
    border-top-color: #333333;
}
