:root {
    --color-bg: #050706;
    --color-bg-soft: #101512;
    --color-bg-elevated: #171d19;
    --color-border: rgba(242, 245, 243, 0.08);
    --color-border-strong: rgba(242, 245, 243, 0.16);

    --color-accent: #2fae60;
    --color-accent-hover: #1f7a42;
    --color-accent-text: #06150c;
    /* Fundo dos elementos de destaque (botões, nav ativo, avatar) — normalmente
       igual a --color-accent, mas vira um degradê quando a conta tem accent_gradient. */
    --color-accent-surface: var(--color-accent);

    /* Verde padrão do app — fixo, não muda com a cor de destaque escolhida em Configurações. */
    --color-brand-green: #2fae60;

    --color-info: #3b82f6;
    --color-info-hover: #2563eb;

    --color-text: #f2f5f3;
    --color-text-muted: #93a19a;

    --color-success-bg: rgba(47, 174, 96, 0.16);
    --color-success-text: #4fd47f;
    --color-warning-bg: rgba(230, 168, 46, 0.16);
    --color-warning-text: #e6a82e;
    --color-danger-bg: rgba(229, 72, 77, 0.16);
    --color-danger-text: #f16368;

    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Tema claro — escolhido explicitamente em Configurações. */
:root[data-theme="claro"] {
    --color-bg: #f4f6f5;
    --color-bg-soft: #ffffff;
    --color-bg-elevated: #eef1ef;
    --color-border: rgba(10, 15, 12, 0.08);
    --color-border-strong: rgba(10, 15, 12, 0.16);

    --color-text: #10160f;
    --color-text-muted: #5b6862;

    --color-success-bg: rgba(47, 174, 96, 0.12);
    --color-success-text: #1f7a42;
    --color-warning-bg: rgba(230, 168, 46, 0.16);
    --color-warning-text: #8a5f0a;
    --color-danger-bg: rgba(229, 72, 77, 0.12);
    --color-danger-text: #c81e24;

    --shadow-card: 0 8px 24px rgba(15, 20, 17, 0.08);
}

/* "Sistema" — nenhum data-theme setado, segue o SO. Sem sinal do SO (ou SO
   escuro), o :root acima (escuro) já é o padrão. */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --color-bg: #f4f6f5;
        --color-bg-soft: #ffffff;
        --color-bg-elevated: #eef1ef;
        --color-border: rgba(10, 15, 12, 0.08);
        --color-border-strong: rgba(10, 15, 12, 0.16);

        --color-text: #10160f;
        --color-text-muted: #5b6862;

        --color-success-bg: rgba(47, 174, 96, 0.12);
        --color-success-text: #1f7a42;
        --color-warning-bg: rgba(230, 168, 46, 0.16);
        --color-warning-text: #8a5f0a;
        --color-danger-bg: rgba(229, 72, 77, 0.12);
        --color-danger-text: #c81e24;

        --shadow-card: 0 8px 24px rgba(15, 20, 17, 0.08);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
}

img {
    max-width: 100%;
    display: block;
}
