/* App usuários — tema Copa / estádio noturno, mobile-first, animações leves */

:root {
    --app-navy: #0a1628;
    --app-navy-2: #0f2744;
    --app-ink: #e8f1ff;
    --app-muted: rgba(232, 241, 255, 0.72);
    --app-gold: #f5d547;
    --app-gold-2: #ffb347;
    --app-green: #3ddc97;
    --app-aqua: #5ee7df;
    --app-violet: #b388ff;
    --app-danger: #ff6b6b;
    --app-card: rgba(255, 255, 255, 0.06);
    --app-card-border: rgba(255, 255, 255, 0.12);
    --app-radius: 18px;
    --app-radius-sm: 12px;
    --app-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --app-font: "DM Sans", system-ui, sans-serif;
    --app-display: "Bebas Neue", Impact, sans-serif;
    --app-maxw: 520px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body.app-shell {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--app-font);
    color: var(--app-ink);
    background: var(--app-navy);
    -webkit-font-smoothing: antialiased;
}

.app-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(61, 220, 151, 0.18), transparent 55%),
        radial-gradient(900px 500px at 90% 10%, rgba(179, 136, 255, 0.2), transparent 50%),
        radial-gradient(800px 600px at 50% 100%, rgba(245, 213, 71, 0.12), transparent 55%),
        linear-gradient(180deg, var(--app-navy) 0%, #060d18 100%);
}

.app-glow {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    z-index: -2;
    pointer-events: none;
    animation: app-float 14s ease-in-out infinite alternate;
}

.app-glow--1 {
    left: -80px;
    top: 20%;
    background: rgba(61, 220, 151, 0.55);
}

.app-glow--2 {
    right: -100px;
    bottom: 15%;
    background: rgba(245, 213, 71, 0.45);
    animation-delay: -4s;
}

@keyframes app-float {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(30px, -24px, 0) scale(1.08);
    }
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.92), rgba(10, 22, 40, 0.55));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-topbar__inner {
    max-width: var(--app-maxw);
    margin: 0 auto;
    padding: 14px 18px calc(10px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
    text-decoration: none;
    color: var(--app-ink);
}

.app-logo__img {
    display: block;
    flex-shrink: 0;
    height: 40px;
    width: auto;
    max-width: min(36vw, 140px);
    object-fit: contain;
    object-position: left center;
}

.app-logo__site {
    font-size: clamp(0.62rem, 3.1vw, 0.8rem);
    font-weight: 700;
    color: var(--app-muted);
    line-height: 1.2;
    letter-spacing: 0.02em;
    min-width: 0;
    word-break: break-word;
    max-width: min(52vw, 12rem);
}

.app-logo:hover .app-logo__site {
    color: var(--app-ink);
}

.app-topbar__link {
    color: var(--app-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.app-topbar__link:hover {
    color: var(--app-ink);
}

/* Engrenagem da topbar: mesmo visual do antigo summary, mas leva direto à tela de perfil */
.app-topbar__link.app-topbar__link--gear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--app-muted);
    font-size: 1.15rem;
    font-weight: 400;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.app-topbar__link.app-topbar__link--gear:hover {
    color: var(--app-ink);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 213, 71, 0.35);
}

.app-main {
    max-width: var(--app-maxw);
    margin: 0 auto;
    padding: 18px 18px 110px;
}

body.app-sem-dock .app-main {
    padding-bottom: 28px;
}

.app-dock {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: var(--app-maxw);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border-radius: 22px;
    background: rgba(15, 39, 68, 0.72);
    border: 1px solid var(--app-card-border);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(16px);
    z-index: 60;
}

.app-dock__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--app-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.app-dock__item:hover {
    color: var(--app-ink);
}

.app-dock__item.is-active {
    color: var(--app-ink);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.app-dock__icon {
    font-size: 1rem;
}

/* Há resposta nova do suporte (até o usuário abrir a página Suporte). */
.app-dock__item--suporte-novo {
    color: var(--app-gold);
}

.app-dock__item--suporte-novo .app-dock__icon {
    color: var(--app-gold-2);
    filter: drop-shadow(0 0 6px rgba(245, 213, 71, 0.45));
}

.app-form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: var(--app-ink);
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    outline: none;
}

.app-textarea:focus {
    border-color: rgba(245, 213, 71, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 213, 71, 0.2);
}

.app-suporte-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-suporte-ticket {
    padding: 14px 16px;
    margin: 0;
}

.app-suporte-ticket__meta {
    font-size: 0.78rem;
    color: var(--app-muted);
    margin: 0 0 10px;
}

.app-suporte-ticket__label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--app-muted);
    margin: 0 0 6px;
}

.app-suporte-ticket__text {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.app-suporte-ticket__reply {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--app-card-border);
}

.app-suporte-ticket__reply .app-suporte-ticket__label {
    color: var(--app-gold);
}

.app-suporte-ticket__pending {
    margin: 10px 0 0;
    font-size: 0.82rem;
}

.app-hero {
    padding: 8px 2px 4px;
}

.app-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--app-gold);
    margin: 0 0 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(245, 213, 71, 0.12);
    border: 1px solid rgba(245, 213, 71, 0.35);
}

.app-hero__title {
    font-family: var(--app-display);
    font-size: clamp(2.2rem, 7vw, 3rem);
    line-height: 0.95;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(92deg, #fff 10%, rgba(93, 231, 223, 0.95) 45%, var(--app-gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.app-hero__sub {
    margin: 0;
    color: var(--app-muted);
    font-size: 1.05rem;
    line-height: 1.45;
}

/* Perfil estilo “jogo” — avatar + barra XP / progresso */
.app-game-profile {
    margin: 6px 0 18px;
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(94, 231, 223, 0.22);
    background:
        linear-gradient(145deg, rgba(15, 39, 68, 0.92) 0%, rgba(10, 22, 40, 0.88) 50%, rgba(30, 20, 60, 0.35) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 14px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.app-game-profile__hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(94, 231, 223, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-game-profile__hud-tag {
    font-family: var(--app-display);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--app-gold);
    text-shadow: 0 0 18px rgba(245, 213, 71, 0.35);
}

.app-game-profile__hud-rank {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--app-aqua);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(94, 231, 223, 0.35);
    background: rgba(0, 0, 0, 0.25);
}

.app-game-profile__body {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    padding: 16px 14px 18px;
    align-items: center;
}

@media (max-width: 380px) {
    .app-game-profile__body {
        grid-template-columns: 100px 1fr;
        gap: 12px;
        padding: 14px 12px 16px;
    }
}

.app-game-profile__avatar-ring {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 210deg, var(--app-gold), var(--app-aqua), var(--app-violet), var(--app-gold));
    box-shadow:
        0 0 24px rgba(94, 231, 223, 0.25),
        0 0 0 2px rgba(0, 0, 0, 0.4);
    justify-self: center;
}

.app-game-profile__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0a1628;
    background: #0f2744;
}

.app-game-profile__avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), rgba(10, 22, 40, 0.95));
    border: 3px solid #0a1628;
    display: grid;
    place-items: center;
    color: rgba(232, 241, 255, 0.45);
    font-size: 2.5rem;
}

.app-game-profile__panel {
    min-width: 0;
}

.app-game-profile__nick {
    margin: 0 0 2px;
    font-family: var(--app-display);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--app-ink);
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.app-game-profile__album-label {
    margin: 0 0 8px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(232, 241, 255, 0.5);
}

.app-game-profile__xp-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 8px;
}

.app-game-profile__xp-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    pointer-events: none;
}

.app-game-profile__xp-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--app-aqua), var(--app-green) 55%, var(--app-gold));
    box-shadow: 0 0 14px rgba(61, 220, 151, 0.55);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-game-profile__nums {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin-bottom: 8px;
}

.app-game-profile__pct {
    font-family: var(--app-display);
    font-size: 1.35rem;
    color: var(--app-gold);
    letter-spacing: 0.04em;
    text-shadow: 0 0 20px rgba(245, 213, 71, 0.25);
}

.app-game-profile__frag {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--app-ink);
}

.app-game-profile__slash {
    font-weight: 700;
    color: rgba(232, 241, 255, 0.35);
}

.app-game-profile__frag-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--app-muted);
    width: 100%;
    flex-basis: 100%;
    margin-top: -2px;
}

.app-game-profile__quest {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(232, 241, 255, 0.82);
}

.app-home-feed {
    padding: 4px 2px 8px;
}

.app-home-feed__sub {
    margin: 0 0 14px;
    font-size: 0.95rem;
}

.app-home-feed__more {
    margin: 0 0 8px;
    text-align: right;
}

.app-home-notifs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.app-home-notif-item {
    display: block;
    padding: 12px 14px;
    border-radius: var(--app-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--app-card-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.app-home-notif-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.app-home-notif-item--new {
    border-color: rgba(245, 213, 71, 0.45);
    box-shadow: 0 0 0 1px rgba(245, 213, 71, 0.08);
}

.app-home-notif-item__tipo {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
    margin-bottom: 4px;
}

.app-home-notif-item__tit {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.app-home-notif-item__corpo {
    display: block;
    font-size: 0.85rem;
    color: var(--app-muted);
    line-height: 1.35;
}

.app-home-notif-empty {
    margin: 0;
    font-size: 0.92rem;
}

.app-home-section-title {
    font-family: var(--app-display);
    font-size: 1.05rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin: 14px 0 10px;
    color: var(--app-ink);
    font-weight: 700;
}

.app-home-feed > .app-home-section-title {
    margin-top: 10px;
}

.app-home-section-title--in-card {
    margin: 0 0 12px;
    font-size: 0.92rem;
    opacity: 0.92;
}

.app-home-banner-block {
    margin: 6px 0 22px;
    padding: 0 2px 4px;
}

.app-home-banner-empty {
    margin: 10px 0 0;
    font-size: 0.9rem;
}

.app-home-banner-empty[hidden] {
    display: none !important;
}

.app-home-resumo {
    margin-top: 4px;
    padding: 16px 16px 18px;
}

.app-home-falta-lead {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--app-ink);
    line-height: 1.4;
}

.app-home-statline .app-numeral {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.app-progress-ring--compact {
    width: 100px;
    height: 100px;
    box-shadow: inset 0 0 0 8px #0c1a30, 0 8px 22px rgba(0, 0, 0, 0.32);
}

.app-progress-ring--compact .app-progress-ring__value {
    font-size: 1.12rem;
}

.app-home-banners__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    padding-bottom: 6px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
}

.app-home-banner-card {
    flex: 0 0 88%;
    max-width: 340px;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--app-card-border);
    background: rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--app-shadow);
}

.app-home-banner-card__inner {
    display: block;
    line-height: 0;
}

.app-home-banner-card__inner img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.app-btn:active {
    transform: translateY(1px) scale(0.99);
}

.app-btn--primary {
    color: #0a1628;
    background: linear-gradient(135deg, var(--app-gold) 0%, var(--app-gold-2) 100%);
    box-shadow: 0 16px 40px rgba(245, 213, 71, 0.25);
}

.app-btn--primary:hover {
    filter: brightness(1.06);
}

.app-btn--ghost {
    color: var(--app-ink);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--app-card-border);
}

.app-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-btn--wide {
    width: 100%;
}

.app-btn--pulse {
    animation: app-pulse 2.8s ease-in-out infinite;
}

.app-conta-block {
    margin-top: 14px;
}

.app-conta-subtitle {
    margin: 0 0 12px;
    font-family: var(--app-display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--app-ink);
}

.app-conta-foto-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.app-conta-foto-ring {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 200deg, var(--app-gold), var(--app-aqua), var(--app-violet), var(--app-gold));
    box-shadow: 0 0 20px rgba(94, 231, 223, 0.2);
}

.app-conta-foto-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0a1628;
    background: #0f2744;
}

.app-conta-foto-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.1), #0f2744);
    border: 3px solid #0a1628;
    display: grid;
    place-items: center;
    color: rgba(232, 241, 255, 0.4);
    font-size: 2.2rem;
}

.app-conta-login-hint {
    margin: -6px 0 14px;
    font-size: 0.88rem;
    word-break: break-all;
}

.app-conta-foot {
    margin: 22px 0 8px;
    text-align: center;
}

.app-conta-foot__logout {
    margin-bottom: 14px;
}

@keyframes app-pulse {
    0%,
    100% {
        box-shadow: 0 16px 40px rgba(245, 213, 71, 0.22);
    }
    50% {
        box-shadow: 0 18px 48px rgba(61, 220, 151, 0.35);
    }
}

.app-link-quiet {
    text-align: center;
    color: rgba(232, 241, 255, 0.45);
    font-size: 0.85rem;
}

.app-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--app-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.app-card--glass {
    background: var(--app-card);
    border-color: var(--app-card-border);
    backdrop-filter: blur(12px);
}

.app-card__title {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.app-muted {
    color: var(--app-muted);
    margin: 0;
    line-height: 1.45;
}

.app-progress-ring-wrap {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
}

@media (max-width: 400px) {
    .app-progress-ring-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

.app-progress-ring {
    --p: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(var(--app-green) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
    box-shadow: inset 0 0 0 10px #0c1a30, 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: app-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-progress-ring__value {
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--app-ink);
    text-shadow: 0 2px 18px rgba(61, 220, 151, 0.35);
}

@keyframes app-pop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.app-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-chip--gold {
    color: #1a1400;
    background: linear-gradient(135deg, rgba(245, 213, 71, 0.95), rgba(255, 179, 71, 0.9));
}

.app-chip--green {
    color: #04120c;
    background: linear-gradient(135deg, rgba(61, 220, 151, 0.9), rgba(94, 231, 223, 0.85));
}

.app-chip--aqua {
    color: #031016;
    background: linear-gradient(135deg, rgba(94, 231, 223, 0.9), rgba(79, 195, 247, 0.85));
}

.app-chip--violet {
    color: #140828;
    background: linear-gradient(135deg, rgba(179, 136, 255, 0.92), rgba(94, 231, 223, 0.55));
}

.app-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.app-qcard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    border-radius: var(--app-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: var(--app-ink);
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.app-qcard i {
    font-size: 1.25rem;
    color: var(--app-aqua);
}

.app-qcard:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 213, 71, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

.app-section {
    padding: 6px 2px 4px;
}

.app-page-title {
    margin: 0 0 8px;
    font-family: var(--app-display);
    font-size: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-form .app-field {
    margin-bottom: 14px;
}

.app-form__foot {
    margin: 12px 0 0;
    text-align: center;
    color: var(--app-muted);
}

.app-form__foot a {
    color: var(--app-aqua);
    font-weight: 800;
}

.app-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.app-hint {
    font-weight: 600;
    color: var(--app-muted);
}

.app-field-row {
    display: flex;
    gap: 10px;
}

.app-field--grow {
    flex: 1;
}

.app-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: var(--app-ink);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-input:focus {
    border-color: rgba(245, 213, 71, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 213, 71, 0.2);
}

.app-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.app-ph-slot {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.25));
    border: 1px dashed rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    color: rgba(232, 241, 255, 0.35);
    font-weight: 900;
}

.app-float-slow {
    animation: app-float-item 5s ease-in-out infinite;
    animation-delay: var(--f, 0s);
}

@keyframes app-float-item {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.app-center {
    text-align: center;
}

.app-badge-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.app-steps {
    margin: 0;
    padding-left: 18px;
    color: var(--app-muted);
}

.app-card--qr {
    display: grid;
    place-items: center;
    gap: 12px;
}

.app-qr-frame {
    width: min(240px, 70vw);
    aspect-ratio: 1;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
}

.app-qr-frame--mock {
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
    animation: app-pop 0.8s ease both;
}

.app-qr-grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(#0a1628 60%, transparent 60%),
        linear-gradient(90deg, #0a1628 60%, transparent 60%);
    background-size: 14px 14px;
    opacity: 0.92;
    border-radius: 10px;
}

.app-tabs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.app-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.2);
    color: var(--app-muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.app-tab.is-active {
    color: #0a1628;
    background: linear-gradient(135deg, var(--app-gold), var(--app-gold-2));
    border-color: transparent;
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(15, 39, 68, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--app-ink);
    font-weight: 700;
    box-shadow: var(--app-shadow);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: calc(100% - 36px);
    text-align: center;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-toast--error {
    border-color: rgba(255, 107, 107, 0.45);
}

.app-reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: app-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes app-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.app-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;
}

.app-mt {
    margin-top: 12px;
}

.app-topbar__links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.app-topbar__menu {
    position: relative;
    list-style: none;
}

.app-topbar__menu summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--app-muted);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.app-topbar__menu summary::-webkit-details-marker {
    display: none;
}

.app-topbar__menu summary:hover,
.app-topbar__menu[open] > summary {
    color: var(--app-ink);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 213, 71, 0.35);
}

.app-topbar__menu-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.app-topbar__menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 11rem;
    padding: 6px;
    border-radius: 14px;
    background: rgba(15, 39, 68, 0.96);
    border: 1px solid var(--app-card-border);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(12px);
    z-index: 80;
}

.app-topbar__menu-item {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--app-ink);
    transition: background 0.2s ease;
}

.app-topbar__menu-item:hover,
.app-topbar__menu-item:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

/* Barra de sync removida: esconde resíduo em documentos/HTML cacheados antigos */
#appSyncBar,
.app-sync-bar {
    display: none !important;
}

body.app-modo-evento .app-btn {
    padding: 18px 22px;
    font-size: 1.05rem;
}

body.app-modo-evento .app-dock__item {
    font-size: 0.72rem;
    padding: 12px 2px;
}

/* Inventário: textos centralizados na página e nos cards */
.app-inv-page .app-section {
    text-align: center;
}

.app-inv-page .app-album-picker,
.app-inv-page .app-album-picker__hint,
.app-inv-page .app-album-selecao-stats {
    text-align: center;
}

.app-inv-page .app-album-grid-empty {
    text-align: center;
}

.app-inv-page #invFiltro {
    text-align: center;
}

/* Inventário: sempre 2 colunas (telas estreitas e largas) para leitura e botões +/− confortáveis. */
.app-inv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.app-inv-card {
    border-radius: var(--app-radius-sm);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.app-inv-card--rep {
    border-color: rgba(245, 213, 71, 0.45);
    box-shadow: 0 0 0 1px rgba(245, 213, 71, 0.12);
}

.app-inv-num {
    font-family: var(--app-display);
    font-size: 1.25rem;
    display: block;
}

.app-inv-name {
    font-size: 0.85rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.app-inv-type {
    font-size: 0.72rem;
    color: var(--app-muted);
    text-transform: uppercase;
}

.app-inv-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.app-inv-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--app-ink);
    font-size: 1.1rem;
    cursor: pointer;
}

.app-inv-q {
    font-weight: 900;
    min-width: 24px;
    text-align: center;
}

.app-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.app-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
}

.app-badge--ok {
    background: rgba(61, 220, 151, 0.25);
    color: var(--app-green);
}

.app-album-picker {
    margin-top: 14px;
    margin-bottom: 16px;
    padding: 16px;
}

.app-album-picker .app-field {
    margin-bottom: 8px;
}

.app-album-picker__hint {
    margin: 0;
    font-size: 0.85rem;
}

/* Select nativo: fundo escuro + texto claro (lista e options — depende do SO; color-scheme: dark ajuda). */
.app-input.app-select {
    background-color: var(--app-navy-2);
    color: var(--app-ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a8c0e0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.app-input.app-select option,
.app-input.app-select optgroup {
    background-color: var(--app-navy);
    color: var(--app-ink);
}

.app-select {
    width: 100%;
    cursor: pointer;
    appearance: none;
    padding-right: 40px;
}

.app-album-progresso-geral {
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.app-album-selecao-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--app-card-border);
    font-size: 0.88rem;
    line-height: 1.4;
}

.app-album-selecao-stats__nome {
    font-weight: 800;
    color: var(--app-ink);
}

.app-album-grid-empty {
    margin: 18px 0;
    padding: 20px 16px;
    border-radius: var(--app-radius-sm);
    border: 1px dashed var(--app-card-border);
    text-align: center;
}

.app-album-grid-empty[hidden] {
    display: none !important;
}

/* Álbum: base 2 colunas no mobile; mais colunas só conforme a largura aumenta. */
.app-album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 380px) {
    .app-album-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 520px) {
    .app-album-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (min-width: 680px) {
    .app-album-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }
}

@media (min-width: 900px) {
    .app-album-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.app-album-slot {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: rgba(232, 241, 255, 0.35);
    position: relative;
}

/* Apenas cor — evita o shorthand `background` resetar background-image do slot (foto do catálogo). */
.app-album-slot--have {
    border-style: solid;
    background-color: rgba(61, 220, 151, 0.12);
    color: var(--app-ink);
}

.app-album-slot--rep {
    box-shadow: inset 0 0 0 2px rgba(245, 213, 71, 0.35);
}

.app-album-n {
    font-weight: 900;
}

.app-album-dot {
    color: var(--app-gold);
    font-size: 0.5rem;
    line-height: 1;
}

.app-album-slot--has-img {
    background-size: cover;
    background-position: center;
    border-style: solid;
    color: #f8fafc;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.app-album-slot--pendente {
    opacity: 0.52;
}

.app-album-slot--oficial {
    opacity: 1;
}

.app-album-slot--uploadable {
    cursor: pointer;
}

.app-album-slot--uploadable:focus-visible {
    outline: 2px solid var(--app-accent, #7dd3fc);
    outline-offset: 2px;
}

.app-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.app-qr-url {
    word-break: break-all;
    font-size: 0.78rem;
    color: var(--app-aqua);
    text-align: center;
}

.app-qr-canvas {
    display: flex;
    justify-content: center;
    min-height: 220px;
    align-items: center;
}

.app-qr-canvas img {
    border-radius: 12px;
}

.app-troca-list,
.app-hist-list,
.app-notif-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-troca-card,
.app-hist-card,
.app-notif {
    padding: 14px;
    border-radius: var(--app-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

.app-notif--new {
    border-color: rgba(245, 213, 71, 0.35);
}

.app-subtitle {
    font-family: var(--app-display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.app-muted.small {
    font-size: 0.85rem;
}

.app-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    font-size: 0.85rem;
}
