/* ATL PvP Store — dark neon / magenta + ciano / glass */
:root {
    --bg: #08060f;
    --bg-2: #100a1c;
    --surface: rgba(16, 9, 28, 0.58);      /* glass escuro — legível sobre a imagem de fundo */
    --surface-2: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.10);
    --text: #eae6f5;
    --text-muted: #a79cc0;
    --accent: #ff2fbf;          /* magenta do logo */
    --accent-2: #a02ee0;        /* violeta do logo */
    --accent-ink: #16021a;
    --cyan: #22e5e0;            /* ciano do logo */
    --cyan-2: #12b9c6;
    --radius: 14px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 'Inter', system-ui, sans-serif;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ---------- fundo: imagem fixa (skyline neon) + véu escuro p/ legibilidade ---------- */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: var(--bg) url('/assets/bg.jpg') center center / cover no-repeat;
}
@supports (background-image: image-set(url('/assets/bg.webp') type('image/webp'))) {
    body::before { background-image: image-set(url('/assets/bg.webp') type('image/webp'), url('/assets/bg.jpg') type('image/jpeg')); }
}
body::after {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 6, 15, 0.55) 0%, rgba(8, 6, 15, 0.30) 35%, rgba(8, 6, 15, 0.42) 100%),
        radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(8, 6, 15, 0.55) 100%);
}

/* ---------- fundo animado (desativado 2026-08-16 — fundo "clean" só com imagem; bg.js já não é carregado) ---------- */
#bgfx { display: none; }

h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -0.01em; text-wrap: balance; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; }

.container { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 28px; padding-bottom: 64px; flex: 1; }

/* ---------- topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 6, 18, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 47, 191, 0.22);
    box-shadow: 0 1px 0 rgba(34, 229, 224, 0.10), 0 8px 30px rgba(0, 0, 0, 0.5);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: 'Sora', sans-serif; font-weight: 800; font-size: 17px; }
.brand:hover { color: var(--text); }
.brand-name {
    background: linear-gradient(100deg, var(--accent), var(--cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: 0.06em;
}
.brand-beta {
    /* wrp 2026-08-21: etiqueta Beta ao lado do nome */
    padding: 2px 8px; border-radius: 999px;
    border: 1px solid var(--accent); color: var(--accent);
    font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
    line-height: 1.4; align-self: center; text-transform: uppercase;
}
.brand-logo {
    height: 42px; width: 42px; object-fit: contain; display: block;
    /* wrp: sem glow — logo limpo tambem no topbar */
    filter: none;
}
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
    padding: 8px 14px; border-radius: 999px; color: var(--text-muted);
    font-weight: 500; font-size: 14.5px; white-space: nowrap;
    transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 600; }
/* ---------- sessão Cfx.re ---------- */
.auth-slot { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-auth {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(34, 229, 224, 0.45); background: rgba(34, 229, 224, 0.08);
    color: var(--cyan); font-weight: 600; font-size: 14px; white-space: nowrap;
    transition: background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn-auth:hover:not([disabled]) { background: rgba(34, 229, 224, 0.16); box-shadow: 0 0 20px rgba(34, 229, 224, 0.18); }
.btn-auth[disabled] { opacity: 0.5; cursor: progress; }
.auth-user {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    font-size: 14px; font-weight: 600; max-width: 190px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.auth-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; }
.auth-out {
    border: 0; background: transparent; cursor: pointer;
    color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 6px 4px;
    transition: color 160ms var(--ease);
}
.auth-out:hover { color: var(--accent); }

.basket-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-weight: 600; font-size: 14.5px;
    cursor: pointer; transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.basket-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.basket-count {
    display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--accent); color: var(--accent-ink);
    font-size: 12px; font-weight: 700;
}
.basket-count[hidden] { display: none; }   /* display:grid ganhava ao [hidden] do UA */

.demo-banner {
    background: rgba(255, 47, 191, 0.09); border-bottom: 1px solid rgba(255, 47, 191, 0.3);
    color: #ffaee6; font-size: 13px; text-align: center; padding: 8px 16px;
    letter-spacing: 0.02em;
}

/* ---------- botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: 11px; border: 1px solid transparent;
    font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--text);
    background: transparent;
    transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    box-shadow: 0 6px 22px rgba(255, 47, 191, 0.25);
}
.btn-cta:hover:not([disabled]) { box-shadow: 0 8px 28px rgba(255, 47, 191, 0.38); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover:not([disabled]) { border-color: rgba(255, 255, 255, 0.22); }
.btn-danger { background: rgba(239, 83, 80, 0.12); border-color: rgba(239, 83, 80, 0.4); color: #ff8a87; }
.btn-danger:hover:not([disabled]) { background: rgba(239, 83, 80, 0.2); }
.btn-lg { min-height: 50px; padding: 12px 28px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 56px 16px 44px; }
.hero-glow {
    /* wrp 2026-08-21 (dono): "luzes a volta do simbolo" removidas — logo limpo */
    display: none;
}
.hero-kicker {
    display: inline-block; padding: 5px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--accent); font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px;
}
.hero-logo {
    display: block; margin: 0 auto 6px;
    width: clamp(180px, 30vw, 280px); height: auto;
    /* wrp: sem glow magenta — so' sombra escura suave para descolar do fundo */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}
.hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- secções ---------- */
.section-title { font-size: 22px; margin: 40px 0 18px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.empty { text-align: center; padding: 48px 24px; }
.empty p { color: var(--text-muted); margin: 0 0 18px; }
.alert {
    margin: 20px 0; padding: 14px 18px; border-radius: 11px;
    background: rgba(255, 47, 191, 0.09); border: 1px solid rgba(255, 47, 191, 0.35);
    color: #ffaee6; font-size: 14.5px;
}
.skeleton { height: 180px; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--border); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- barra de categorias ---------- */
.cat-bar {
    display: flex; align-items: center; justify-content: space-around; gap: 8px;
    background: rgba(12, 7, 22, 0.72); border: 1px solid var(--border);
    border-radius: 16px; padding: 8px 12px; margin: 8px 0 32px;
    overflow-x: auto; scrollbar-width: none;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar a {
    padding: 14px 22px; border-radius: 11px; white-space: nowrap;
    color: var(--text); font-weight: 600; font-size: 15.5px;
    transition: color 180ms var(--ease), background 180ms var(--ease);
}
.cat-bar a:hover { color: var(--cyan); background: var(--surface); }
.cat-bar a.is-active {
    color: var(--accent);
    background: linear-gradient(180deg, rgba(255, 47, 191, 0.10), rgba(255, 47, 191, 0));
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 40px; }
.trust-item {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px; color: var(--cyan);
    transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.trust-item:hover { border-color: rgba(34, 229, 224, 0.35); box-shadow: 0 0 24px rgba(34, 229, 224, 0.10); }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { color: var(--text); font-size: 14.5px; }
.trust-item span { color: var(--text-muted); font-size: 13px; }

/* ---------- páginas ---------- */
.page-head { margin-bottom: 28px; }
/* título de secção na home (uma secção por categoria) */
.page-head.is-section { margin: 40px 0 18px; display: flex; align-items: center; gap: 14px; }
.page-head.is-section .page-title { font-size: clamp(20px, 2.6vw, 26px); margin: 0; }
.section-head-text { max-width: 720px; }
.section-head-text .page-desc { margin: 6px 0 0; font-size: 14px; }
.page-head.is-section::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(255, 47, 191, 0.45), transparent);
}
.page-title { font-size: clamp(24px, 4vw, 34px); margin: 0 0 8px; }
.page-desc { color: var(--text-muted); max-width: 720px; }

/* ---------- pacotes ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pkg-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.pkg-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 47, 191, 0.45);
    box-shadow: 0 12px 34px rgba(255, 47, 191, 0.14), 0 0 0 1px rgba(34, 229, 224, 0.10);
}
.pkg-media { position: relative; display: block; aspect-ratio: 4/5; background: var(--bg-2); }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg-placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    font-family: 'Sora', sans-serif; font-size: 44px; font-weight: 800;
    color: rgba(255, 47, 191, 0.55);
    background: radial-gradient(circle at 30% 20%, rgba(255, 47, 191, 0.12), transparent 60%), var(--bg-2);
}
.pkg-placeholder.is-big { font-size: 84px; aspect-ratio: 16/10; }
.pkg-badge {
    position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
}
/* etiqueta de destaque do pack (MAIS VENDIDO / MELHOR VALOR / MAIOR PACK) */
.pkg-card { position: relative; }
.pkg-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 5px 11px; border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(255, 47, 191, 0.35);
}
/* pacote inativo (config INACTIVE): visível, sem compra */
.pkg-tag.is-off { background: #3a3a44; color: #c9c9d1; box-shadow: none; }
.pkg-card.is-inactive .pkg-media img, .pkg-detail.is-inactive .pkg-detail-media img { filter: grayscale(1) brightness(.7); }
.pkg-card.is-inactive .price, .pkg-detail.is-inactive .price { color: var(--text-muted); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.pkg-card.is-featured { border-color: rgba(255, 47, 191, 0.45); }
.pkg-card.is-featured:hover { box-shadow: 0 14px 40px rgba(255, 47, 191, 0.22); }
.pkg-detail-media { position: relative; }
.pkg-detail-media .pkg-tag { top: 14px; left: 14px; }

/* preço por Coin + poupança face ao pack mais pequeno */
.pkg-unit {
    margin: -2px 0 0; color: var(--text-muted); font-size: 13px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pkg-unit.is-big { font-size: 14.5px; margin-top: 8px; }
.pkg-save {
    padding: 3px 9px; border-radius: 999px;
    background: rgba(34, 229, 224, 0.12); border: 1px solid rgba(34, 229, 224, 0.35);
    color: var(--cyan); font-weight: 700; font-size: 12px; white-space: nowrap;
}

.pkg-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; flex: 1; }
.pkg-name { font-size: 16.5px; margin: 0; }
.pkg-name a { color: var(--text); }
.pkg-name a:hover { color: var(--cyan); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.price-row .price { white-space: nowrap; }   /* o "EUR" nunca cai para a linha de baixo */
.price-row .tax-note { flex-basis: 100%; }   /* sempre por baixo do preço, igual em todos os cartões */
.price-big .tax-note { flex-basis: auto; }   /* no detalhe cabe ao lado */
.price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--cyan); }
.price small { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.price-old { color: var(--text-muted); font-size: 14px; }
/* aviso de impostos/taxas Tebex — sempre colado ao preço */
.tax-note { color: var(--text-muted); font-size: 11.5px; line-height: 1.3; letter-spacing: .01em; cursor: help; }
.tax-note em { font-style: normal; opacity: .75; }
.tax-note.is-block {
    display: block; margin: 10px 0 0; max-width: 62ch; cursor: default; font-size: 12.5px;
    padding-left: 10px; border-left: 2px solid rgba(255, 47, 191, 0.35);
}
.basket-total .tax-note { flex-basis: 100%; text-align: right; margin-top: 4px; }

.pkg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pkg-actions .btn { flex: 1; }

/* ---------- detalhe ---------- */
.pkg-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; padding-top: 16px; }
.pkg-detail-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.pkg-detail-media img { width: 100%; display: block; }
.price-big .price { font-size: 30px; }
.pkg-desc { color: var(--text-muted); margin: 18px 0 24px; }
.pkg-desc img { max-width: 100%; height: auto; }
.pkg-note { color: var(--text-muted); font-size: 13.5px; margin-top: 14px; }

/* ---------- basket ---------- */
.basket-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.basket-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 18px;
}
.basket-row .name { font-weight: 600; flex: 1; min-width: 160px; }
.basket-row .qty { color: var(--text-muted); font-size: 14px; }
.basket-total { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 20px 0 0; font-size: 18px; }
.basket-total strong { font-family: 'Sora', sans-serif; font-size: 24px; }
.basket-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 22px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-muted); }
.footer-muted { opacity: 0.75; }

/* ---------- transição de página ---------- */
#app { transition: opacity 160ms ease-out; }
#app.page-exit { opacity: 0; }

/* ---------- animação de entrada ---------- */
/* estilo G: fade-up + blur cinemático, aterragem muito suave */
[data-anim] {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
    transition:
        opacity 900ms cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 900ms cubic-bezier(0.165, 0.84, 0.44, 1),
        filter 900ms cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform, filter;
}
[data-anim].in-view { opacity: 1; transform: none; filter: blur(0); }

/* ---------- toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
    background: var(--bg-2); border: 1px solid var(--accent); color: var(--text);
    padding: 12px 22px; border-radius: 12px; font-size: 14.5px;
    box-shadow: var(--shadow), 0 0 26px rgba(255, 47, 191, 0.22);
    opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease);
    z-index: 200; max-width: min(90vw, 480px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsivo / a11y ---------- */
@media (max-width: 900px) { .pkg-detail { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .brand-name, .brand-beta, .basket-label { display: none; }
    .hero { padding: 36px 8px 30px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
