:root {
    /* Fundo geral (dark) */
    --bg: #020617;
    --bg-elevated: #020617;
    --bg-soft: #0b1220;

    /* Cards (claros) */
    --card-bg: #ffffff;
    --card-border: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 18px 35px rgba(15, 23, 42, 0.55);

    /* Tipografia */
    --text-main: #e5e7eb;
    --text-soft: #9ca3af;
    --text-strong: #f9fafb;
    --text-on-card: #0f172a;
    --text-muted-card: #6b7280;

    /* Acentos */
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.12);
    --accent-strong: #6366f1;
    --accent-price: #16a34a;
    --accent-tag: #0ea5e9;

    /* Bordas e raios */
    --border-soft: rgba(148, 163, 184, 0.25);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;

    /* Sombra geral */
    --shadow-soft: 0 22px 50px rgba(15, 23, 42, 0.9);

    /* Navegação inferior */
    --nav-bg: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
    --nav-chip-bg: rgba(15, 23, 42, 0.95);
}

/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, #1e293b 0, transparent 55%),
        radial-gradient(circle at 100% 0%, #111827 0, transparent 55%),
        radial-gradient(circle at 50% 100%, #020617 0, #000 65%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Shell principal do app */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* HEADER – estilo app */
.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 16px 8px;
    background:
        linear-gradient(to bottom,
            rgba(2, 6, 23, 0.98),
            rgba(2, 6, 23, 0.92),
            rgba(2, 6, 23, 0.0)
        );
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.app-header__top {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Logo / marca */
.app-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-logo__row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-logo .icon {
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(248, 250, 252, 0.25));
}

.app-logo .text {
    font-weight: 700;
    font-size: 1.29rem;
    letter-spacing: 0.12em;
    color: var(--text-strong);
}

.app-logo__tagline {
    font-size: 0.72rem;
    color: var(--text-soft);
    opacity: 0.9;
}

/* Pill de status */
.app-header__pill {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    white-space: nowrap;
}

.app-header__pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
}

/* Conteúdo principal */
.app-main {
    flex: 1;
    padding: 10px 10px 80px;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 960px) {
    .app-main {
        padding-top: 22px;
    }
}

/* FOOTER – área de idioma/país */
.app-footer-extra {
    max-width: 1080px;
    margin: 0 auto 6px;
    padding: 4px 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-soft);
}

.app-footer-extra__left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-footer-extra__left span.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.7);
}

.app-footer-extra__right form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.app-footer-extra__right label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.app-footer-extra__right select {
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    font-size: 0.72rem;
}

/* Links genéricos no main */
.app-main a {
    color: #60a5fa;
    text-decoration: none;
}
