/* ===========================================================
   Mundo TCG Brasil — "Arena Holográfica"
   Fundo escuro estrelado + pokébolas + cartas holográficas
   Dourado / verde Brasil / azul / vermelho pokébola
   =========================================================== */
:root {
    --mtb-bg: #070b16;
    --mtb-bg-2: #0b1222;
    --mtb-panel: #111b30;
    --mtb-panel-2: #16223b;
    --mtb-border: #243352;
    --mtb-gold: #f5b301;
    --mtb-gold-2: #ffd24a;
    --mtb-green: #1fae4d;
    --mtb-green-2: #28c95a;
    --mtb-blue: #2c7be5;
    --mtb-blue-2: #5cc8ff;
    --mtb-red: #e03a2f;
    --mtb-pink: #ff5c8a;
    --mtb-text: #eaf0f8;
    --mtb-muted: #93a1b5;
    --mtb-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --mtb-radius: 16px;
    --font-display: "Titan One", "Nunito", system-ui, sans-serif;
    --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
    --holo: linear-gradient(100deg, #ffd24a, #ff8a5c, #ff5c8a, #b18aff, #5cc8ff, #5cffb0, #ffd24a);
}

html { font-size: 15px; position: relative; min-height: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 600px at 50% -200px, rgba(44, 123, 229, .20), transparent 60%),
        radial-gradient(900px 500px at 92% 0, rgba(245, 179, 1, .12), transparent 55%),
        radial-gradient(900px 600px at 0% 100%, rgba(31, 174, 77, .10), transparent 55%),
        var(--mtb-bg);
    color: var(--mtb-text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Camada de desenhos no fundo: pokébolas, cartas, energias, criaturinhas */
body::before {
    content: "";
    position: fixed;
    inset: -560px 0 0 0;
    z-index: -2;
    background: url("/img/deco/bg-pattern.svg") 0 0 / 560px auto repeat;
    opacity: .05;
    pointer-events: none;
    animation: bgDrift 240s linear infinite;
}
@keyframes bgDrift {
    from { transform: translateY(0); }
    to   { transform: translateY(560px); }
}

::selection { background: rgba(245, 179, 1, .85); color: #1a1200; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #0a1120; }
::-webkit-scrollbar-thumb { background: #24345a; border-radius: 8px; border: 3px solid #0a1120; }
::-webkit-scrollbar-thumb:hover { background: var(--mtb-gold); }

a { color: var(--mtb-gold-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--mtb-gold); }

h1, h2, h3, h4, h5 { color: #fff; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; }
hr { border-color: var(--mtb-border); }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(245, 179, 1, .25);
}

.text-gold { color: var(--mtb-gold) !important; }
.text-green { color: var(--mtb-green-2) !important; }
.text-muted-2 { color: var(--mtb-muted) !important; }

/* Texto holográfico animado */
.holo-text {
    background: var(--holo);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: holoText 7s linear infinite;
    filter: drop-shadow(0 2px 12px rgba(255, 210, 74, .35));
}
@keyframes holoText {
    from { background-position: 0% 50%; }
    to   { background-position: 300% 50%; }
}

/* ---------- Mini pokébola (desenhada em CSS) ---------- */
.mini-ball {
    display: inline-block; width: 15px; height: 15px; border-radius: 50%; flex: none;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 2.2px, #0c1224 2.2px 3.6px, transparent 3.6px),
        linear-gradient(180deg, var(--mtb-red) 0 43%, #0c1224 43% 57%, #f4f7ff 57% 100%);
    border: 1.5px solid #0c1224;
    box-shadow: 0 0 8px rgba(224, 58, 47, .45);
}

/* ---------- Enfeites flutuantes (desativados no mobile) ---------- */
.floaters { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.floaters .fl {
    position: absolute; opacity: .14;
    filter: drop-shadow(0 0 14px currentColor);
    animation: floaty 9s ease-in-out infinite;
}
.fl-1 { top: 16%; left: 3.5%; width: 72px; color: var(--mtb-gold-2); }
.fl-2 { top: 58%; right: 4%;  width: 60px; color: var(--mtb-blue-2); animation-delay: -3s; animation-duration: 11s; }
.fl-3 { top: 80%; left: 7%;   width: 38px; color: var(--mtb-gold-2); animation-delay: -5s; }
.fl-4 { top: 9%;  right: 11%; width: 26px; color: #ffffff; animation-delay: -1.5s; animation-duration: 7s; }
.fl-5 { bottom: 5%; right: 28%; width: 44px; color: var(--mtb-green-2); animation-delay: -6s; animation-duration: 12s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50%      { transform: translateY(-22px) rotate(8deg); }
}
@media (max-width: 992px) { .floaters { display: none; } }

/* ---------- Navbar ---------- */
.mtb-navbar {
    background: linear-gradient(180deg, rgba(13, 20, 38, .96), rgba(7, 11, 22, .9));
    backdrop-filter: blur(8px);
    position: relative;
}
.mtb-navbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245,179,1,.8), rgba(31,174,77,.7), rgba(44,123,229,.7), transparent);
}
.mtb-brand { display: flex; align-items: center; gap: .6rem; letter-spacing: .5px; }
.mtb-brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.mtb-brand .brand-text { font-family: var(--font-display); font-size: 1.12rem; line-height: 1; font-weight: 400; }
.mtb-brand .brand-text b { color: #fff; font-weight: 400; }
.mtb-brand .brand-text .tcg { color: var(--mtb-gold); }
.mtb-brand .brand-text .br { color: var(--mtb-green-2); font-family: var(--font-body); font-weight: 800; font-size: .62rem; letter-spacing: 4px; display: block; margin-top: 2px; }

.mtb-navbar .nav-link { color: var(--mtb-text) !important; font-weight: 700; opacity: .85; position: relative; }
.mtb-navbar .nav-link::after {
    content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .2rem; height: 2px;
    border-radius: 2px; background: var(--mtb-gold); transform: scaleX(0); transform-origin: left;
    transition: transform .2s ease;
}
.mtb-navbar .nav-link:hover { color: var(--mtb-gold) !important; opacity: 1; }
.mtb-navbar .nav-link:hover::after { transform: scaleX(1); }
.navbar-toggler { border-color: var(--mtb-border); }
.navbar-toggler-icon { filter: invert(1) opacity(.7); }
.mtb-navbar .form-control { border-radius: 999px; padding-left: .9rem; min-width: 170px; }

.cart-pill {
    position: relative;
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--mtb-panel-2); border: 1px solid var(--mtb-border);
    color: var(--mtb-text); padding: .45rem .9rem; border-radius: 999px; font-weight: 800;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cart-pill:hover {
    border-color: var(--mtb-gold); color: var(--mtb-gold);
    box-shadow: 0 0 16px rgba(245, 179, 1, .25); transform: translateY(-1px);
}
.cart-pill .badge-count {
    background: var(--mtb-green); color: #04210f; border-radius: 999px;
    font-size: .72rem; padding: .05rem .45rem; font-weight: 800;
}

/* ---------- Botões ---------- */
.btn { border-radius: 999px; font-weight: 800; }
.btn-gold {
    background: linear-gradient(180deg, var(--mtb-gold-2), var(--mtb-gold));
    color: #2a1d00; border: none;
    box-shadow: 0 6px 18px rgba(245, 179, 1, .28);
    position: relative; overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-gold::after {
    content: ""; position: absolute; top: -20%; left: -70%; width: 45%; height: 140%;
    background: rgba(255, 255, 255, .38); transform: skewX(-22deg);
    transition: left .5s ease;
}
.btn-gold:hover { color: #2a1d00; filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245, 179, 1, .4); }
.btn-gold:hover::after { left: 135%; }
.btn-green {
    background: linear-gradient(180deg, var(--mtb-green-2), var(--mtb-green));
    color: #04210f; border: none;
    transition: transform .15s ease, filter .15s ease;
}
.btn-green:hover { color: #04210f; filter: brightness(1.06); transform: translateY(-2px); }
.btn-outline-light-2 {
    border: 1px solid var(--mtb-border); color: var(--mtb-text);
    transition: border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-outline-light-2:hover {
    border-color: var(--mtb-gold); color: var(--mtb-gold);
    box-shadow: 0 0 14px rgba(245, 179, 1, .2); transform: translateY(-2px);
}
.btn-danger-2 { background: var(--mtb-red); border: none; color: #fff; }
.btn-primary { background: linear-gradient(180deg, var(--mtb-gold-2), var(--mtb-gold)); border: none; color: #2a1d00; font-weight: 800; }
.btn-primary:hover { color: #2a1d00; filter: brightness(1.06); }

/* ---------- Painéis / cards ---------- */
.mtb-panel {
    background: linear-gradient(180deg, var(--mtb-panel), var(--mtb-bg-2));
    border: 1px solid var(--mtb-border); border-radius: var(--mtb-radius);
    box-shadow: var(--mtb-shadow);
}

.product-card {
    background: linear-gradient(180deg, var(--mtb-panel), var(--mtb-bg-2));
    border: 1px solid var(--mtb-border); border-radius: var(--mtb-radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover {
    transform: translateY(-6px) rotate(-.4deg);
    border-color: var(--mtb-gold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(245, 179, 1, .35), 0 0 26px rgba(245, 179, 1, .12);
}
.product-card .thumb {
    aspect-ratio: 3 / 4; background: #0a1120 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; position: relative;
    overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
/* varredura holográfica ao passar o mouse */
.product-card .thumb::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(115deg,
        transparent 28%,
        rgba(255, 255, 255, .16) 42%,
        rgba(255, 210, 74, .20) 48%,
        rgba(92, 200, 255, .16) 54%,
        rgba(255, 92, 138, .12) 60%,
        transparent 74%);
    transform: translateX(-130%);
    pointer-events: none;
}
.product-card:hover .thumb::after { transition: transform .65s ease; transform: translateX(130%); }
.product-card .thumb .tag-row { position: absolute; top: .5rem; left: .5rem; display: flex; gap: .3rem; flex-wrap: wrap; z-index: 2; }
.product-card .body { padding: .85rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card .title { font-weight: 800; color: #fff; font-size: .98rem; line-height: 1.2; }
.product-card .meta { font-size: .76rem; color: var(--mtb-muted); }
.product-card .price { font-weight: 900; color: var(--mtb-gold); font-size: 1.15rem; }
.product-card .price .compare { color: var(--mtb-muted); text-decoration: line-through; font-size: .85rem; font-weight: 600; margin-left: .35rem; }

.tag {
    display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .4px;
    padding: .15rem .5rem; border-radius: 6px; text-transform: uppercase;
}
.tag-type { background: rgba(44,123,229,.18); color: #8fc0ff; border: 1px solid rgba(44,123,229,.4); }
.tag-sale { background: rgba(224,58,47,.18); color: #ff9b93; border: 1px solid rgba(224,58,47,.45); }
.tag-foil { background: rgba(245,179,1,.16); color: var(--mtb-gold-2); border: 1px solid rgba(245,179,1,.4); }
.tag-out { background: rgba(147,161,181,.15); color: var(--mtb-muted); border: 1px solid var(--mtb-border); }
.tag-soon { background: rgba(31,174,77,.15); color: var(--mtb-green-2); border: 1px solid rgba(31,174,77,.4); }

/* Entrada animada dos grids de produtos/jogos */
.row.g-3 > [class*="col"] { animation: riseIn .55s cubic-bezier(.2, .7, .3, 1) both; }
.row.g-3 > [class*="col"]:nth-child(2) { animation-delay: .05s; }
.row.g-3 > [class*="col"]:nth-child(3) { animation-delay: .1s; }
.row.g-3 > [class*="col"]:nth-child(4) { animation-delay: .15s; }
.row.g-3 > [class*="col"]:nth-child(5) { animation-delay: .2s; }
.row.g-3 > [class*="col"]:nth-child(6) { animation-delay: .25s; }
.row.g-3 > [class*="col"]:nth-child(7) { animation-delay: .3s; }
.row.g-3 > [class*="col"]:nth-child(n+8) { animation-delay: .35s; }
@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
    border: 1px solid var(--mtb-border); border-radius: 24px;
    padding: 3rem 2.5rem;
    background:
        radial-gradient(700px 300px at 12% 0, rgba(245,179,1,.16), transparent 60%),
        radial-gradient(700px 340px at 95% 100%, rgba(31,174,77,.16), transparent 60%),
        radial-gradient(500px 300px at 70% 20%, rgba(44,123,229,.14), transparent 60%),
        linear-gradient(180deg, var(--mtb-panel-2), var(--mtb-bg-2));
    position: relative; overflow: hidden;
}
.hero-inner {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
    position: relative; z-index: 2;
}
.hero-copy { text-align: left; }
.hero-copy > * { animation: riseIn .6s cubic-bezier(.2, .7, .3, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: .8rem 0 .6rem; line-height: 1.08; }
.hero p { color: var(--mtb-muted); font-size: 1.08rem; max-width: 560px; margin: 0 0 1.5rem; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(245, 179, 1, .1); border: 1px solid rgba(245, 179, 1, .35);
    color: var(--mtb-gold-2); font-weight: 800; font-size: .8rem; letter-spacing: 1px;
    text-transform: uppercase; padding: .35rem .85rem; border-radius: 999px;
}

/* Pokébola gigante decorativa do hero */
.hero-ball {
    position: absolute; width: 420px; height: 420px;
    right: -110px; bottom: -160px; z-index: 1;
    color: var(--mtb-gold); opacity: .09;
    animation: spinSlow 80s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Sparkles do hero */
.spark {
    position: absolute; z-index: 1; color: var(--mtb-gold-2);
    animation: twinkle 3.2s ease-in-out infinite; pointer-events: none;
    text-shadow: 0 0 12px rgba(255, 210, 74, .8);
}
.sp1 { top: 14%; left: 46%; font-size: 1.1rem; }
.sp2 { top: 68%; left: 38%; font-size: .8rem; animation-delay: -1s; color: var(--mtb-blue-2); text-shadow: 0 0 12px rgba(92,200,255,.8); }
.sp3 { top: 22%; right: 8%; font-size: 1.3rem; animation-delay: -2.2s; }
.sp4 { bottom: 14%; left: 6%; font-size: .9rem; animation-delay: -.6s; color: var(--mtb-green-2); text-shadow: 0 0 12px rgba(40,201,90,.8); }
@keyframes twinkle {
    0%, 100% { opacity: .15; transform: scale(.7) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

/* Leque de cartas holográficas */
.hero-cards { position: relative; height: 290px; display: flex; align-items: center; justify-content: center; }
.tcg-wrap { position: absolute; }
.tcg-wrap.c1 { transform: rotate(-15deg) translate(-92px, 14px); z-index: 1; }
.tcg-wrap.c2 { transform: rotate(-1deg) translateY(-10px); z-index: 3; }
.tcg-wrap.c3 { transform: rotate(14deg) translate(92px, 16px); z-index: 2; }
.tcg-card {
    width: 152px; aspect-ratio: 63 / 88; border-radius: 12px;
    border: 2px solid rgba(245, 179, 1, .55);
    background: linear-gradient(165deg, #1d2d52, #0d1730 60%, #101c38);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
    padding: 11px; display: flex; flex-direction: column; gap: 8px;
    position: relative; overflow: hidden;
    animation: cardFloat 7s ease-in-out infinite;
}
.tcg-wrap.c2 .tcg-card { animation-delay: -2.3s; border-color: rgba(92, 200, 255, .55); }
.tcg-wrap.c3 .tcg-card { animation-delay: -4.6s; border-color: rgba(255, 92, 138, .5); }
.tcg-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg,
        transparent 18%,
        rgba(255, 210, 74, .26) 34%,
        rgba(92, 200, 255, .26) 46%,
        rgba(255, 92, 138, .22) 58%,
        rgba(92, 255, 176, .18) 68%,
        transparent 82%);
    background-size: 250% 250%;
    animation: holoSweep 6s linear infinite;
    mix-blend-mode: screen;
}
@keyframes holoSweep {
    from { background-position: 120% 0; }
    to   { background-position: -130% 0; }
}
@keyframes cardFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}
.tcg-card .art {
    flex: 1; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14);
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .12), transparent 62%),
        linear-gradient(180deg, #22335c, #131f3d);
    display: flex; align-items: center; justify-content: center;
}
.tcg-card .art svg { width: 46px; height: auto; filter: drop-shadow(0 0 12px currentColor); }
.tcg-card .ln { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.tcg-card .ln.short { width: 62%; background: rgba(255, 255, 255, .10); }

@media (max-width: 991px) {
    .hero { padding: 2.4rem 1.4rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 1rem; }
    .hero-copy { text-align: center; }
    .hero p { margin-inline: auto; }
    .hero .hero-cta { justify-content: center; }
    .hero-cards { height: 250px; transform: scale(.85); }
    .hero-ball { width: 300px; right: -110px; bottom: -130px; }
}

/* ---------- Game chips ---------- */
.game-chip {
    display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem;
    border: 1px solid var(--mtb-border); border-radius: 14px;
    background: var(--mtb-panel); font-weight: 800; color: var(--mtb-text);
    transition: border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.game-chip:hover {
    border-color: var(--mtb-gold); color: var(--mtb-gold);
    transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 16px rgba(245, 179, 1, .15);
}
.game-chip .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 10px rgba(255, 255, 255, .35); }

/* ---------- Títulos de seção (com pokébola) ---------- */
.section-title { display: flex; align-items: center; gap: .75rem; margin: 2.4rem 0 1rem; }
.section-title h2 { margin: 0; font-size: 1.45rem; display: flex; align-items: center; gap: .6rem; }
.section-title h2::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 3.2px, #0c1224 3.2px 5.2px, transparent 5.2px),
        linear-gradient(180deg, var(--mtb-red) 0 43%, #0c1224 43% 57%, #f4f7ff 57% 100%);
    border: 2px solid #0c1224;
    box-shadow: 0 0 12px rgba(224, 58, 47, .5);
}
.section-title .bar {
    flex: 1; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(245, 179, 1, .55), var(--mtb-border) 45%, transparent);
}

/* ---------- Benefícios (home) ---------- */
.benefit {
    padding: 1.25rem; display: flex; flex-direction: column; gap: .3rem; height: 100%;
    transition: transform .15s ease, border-color .15s ease;
}
.benefit:hover { transform: translateY(-3px); border-color: rgba(245, 179, 1, .5); }
.benefit .ico { font-size: 1.7rem; line-height: 1; }
.benefit b { color: #fff; font-size: 1rem; }
.benefit small { color: var(--mtb-muted); }

/* ---------- Formulários ---------- */
.form-label { color: var(--mtb-text); font-weight: 700; font-size: .9rem; }
.form-control, .form-select {
    background: var(--mtb-bg-2); border: 1px solid var(--mtb-border); color: var(--mtb-text); border-radius: 10px;
}
.form-control:focus, .form-select:focus {
    background: var(--mtb-bg-2); color: var(--mtb-text);
    border-color: var(--mtb-gold); box-shadow: 0 0 0 .2rem rgba(245,179,1,.18);
}
.form-control::placeholder { color: #5d6b81; }
.form-check-input { background-color: var(--mtb-bg-2); border-color: var(--mtb-border); }
.form-check-input:checked { background-color: var(--mtb-green); border-color: var(--mtb-green); }
.text-danger, .validation-summary-errors { color: #ff9b93 !important; }

/* ---------- Tabelas ---------- */
.table { color: var(--mtb-text); }
.table > :not(caption) > * > * { background: transparent; border-color: var(--mtb-border); }
.table thead th { color: var(--mtb-muted); text-transform: uppercase; font-size: .76rem; letter-spacing: .5px; border-color: var(--mtb-border); }
.table-hover > tbody > tr:hover > * { background: rgba(255,255,255,.03); }

/* ---------- Badges de status ---------- */
.status-badge { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--mtb-border); display: inline-block; }
.st-pending { background: rgba(245,179,1,.14); color: var(--mtb-gold-2); }
.st-paid    { background: rgba(31,174,77,.16); color: var(--mtb-green-2); }
.st-shipped { background: rgba(44,123,229,.16); color: #8fc0ff; }
.st-done    { background: rgba(31,174,77,.22); color: #b6f3cd; }
.st-cancel  { background: rgba(224,58,47,.16); color: #ff9b93; }

/* ---------- Alertas ---------- */
.alert { border-radius: 12px; border: 1px solid var(--mtb-border); border-left-width: 4px; animation: riseIn .4s ease both; }
.alert-success { background: rgba(31,174,77,.12); color: #b6f3cd; border-left-color: var(--mtb-green); }
.alert-danger { background: rgba(224,58,47,.12); color: #ffb3ad; border-left-color: var(--mtb-red); }
.alert-info { background: rgba(44,123,229,.12); color: #b9d6ff; border-left-color: var(--mtb-blue); }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.admin-sidebar { position: sticky; top: 1rem; }
.admin-sidebar .nav-link { color: var(--mtb-text); border-radius: 10px; padding: .6rem .8rem; font-weight: 700; }
.admin-sidebar .nav-link:hover { background: var(--mtb-panel-2); color: var(--mtb-gold); }
.admin-sidebar .nav-link.active { background: linear-gradient(180deg, var(--mtb-gold-2), var(--mtb-gold)); color: #2a1d00; }
.stat-card { padding: 1.2rem; }
.stat-card .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; }
.stat-card .lbl { color: var(--mtb-muted); font-size: .85rem; }
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } }

/* ---------- Autenticação (login / cadastro) ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 2.5rem 0; }
.auth-card { width: 100%; max-width: 440px; position: relative; overflow: hidden; }
.auth-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--mtb-gold), var(--mtb-green-2), var(--mtb-blue-2), var(--mtb-pink), var(--mtb-gold));
    background-size: 300% 100%;
    animation: holoText 8s linear infinite;
}
.auth-logo { max-width: 230px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }

/* ---------- Footer ---------- */
.mtb-footer {
    position: relative; margin-top: 3.5rem; padding: 2.2rem 0 2rem;
    color: var(--mtb-muted); background: rgba(7, 11, 22, .6);
}
.mtb-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--mtb-gold), var(--mtb-green), var(--mtb-blue), transparent);
}
.mtb-footer a { color: var(--mtb-muted); }
.mtb-footer a:hover { color: var(--mtb-gold); }
.poke-divider { display: flex; align-items: center; gap: 1rem; max-width: 460px; margin: 0 auto 1.6rem; }
.poke-divider .line { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--mtb-border)); }
.poke-divider .line:last-child { background: linear-gradient(90deg, var(--mtb-border), transparent); }
.poke-divider .ball {
    width: 24px; height: 24px; border-radius: 50%; flex: none;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 3.4px, #0c1224 3.4px 5.4px, transparent 5.4px),
        linear-gradient(180deg, var(--mtb-red) 0 43%, #0c1224 43% 57%, #f4f7ff 57% 100%);
    border: 2px solid #0c1224;
    box-shadow: 0 0 14px rgba(224, 58, 47, .5);
    animation: floaty 6s ease-in-out infinite;
}

/* ---------- Importação de cartas (admin): grade x lista ---------- */
.import-toolbar { display: flex; gap: .4rem; align-items: center; }
.view-toggle {
    display: inline-flex; border: 1px solid var(--mtb-border); border-radius: 999px; overflow: hidden;
}
.view-toggle a {
    display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem;
    color: var(--mtb-muted); font-weight: 700; font-size: .85rem; background: transparent;
}
.view-toggle a.active { background: linear-gradient(180deg, var(--mtb-gold-2), var(--mtb-gold)); color: #2a1d00; }
.view-toggle a:not(.active):hover { color: var(--mtb-gold); background: var(--mtb-panel-2); }

.import-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
@media (max-width: 1100px) { .import-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .import-grid { grid-template-columns: 1fr; } }

.import-card {
    background: linear-gradient(180deg, var(--mtb-panel), var(--mtb-bg-2));
    border: 1px solid var(--mtb-border); border-radius: var(--mtb-radius);
    padding: 1rem; display: flex; flex-direction: column; gap: .7rem;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.import-card:hover {
    transform: translateY(-4px); border-color: var(--mtb-gold);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 22px rgba(245, 179, 1, .12);
}
.import-card .card-img {
    width: 100%; aspect-ratio: 63 / 88; border-radius: 12px; overflow: hidden;
    background: #0a1120 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--mtb-border);
}
.import-card .card-img img { width: 100%; height: 100%; object-fit: contain; }
.import-card .card-img .no-img { color: var(--mtb-muted); font-size: .8rem; text-align: center; padding: 1rem; }
.import-card .card-name { font-weight: 800; color: #fff; font-size: 1.02rem; line-height: 1.2; }
.import-card .card-meta { font-size: .82rem; color: var(--mtb-muted); display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.import-card .card-price { font-weight: 900; color: var(--mtb-gold); font-size: 1.15rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.import-card .card-price .orig { color: var(--mtb-muted); font-weight: 700; font-size: .85rem; }
.import-card .card-price .na { color: var(--mtb-muted); font-weight: 700; font-size: .9rem; }
.import-card form { margin-top: auto; }

/* ---------- "Quanto vale minha carta?" (consulta pública de preços) ---------- */
.nav-cta {
    background: linear-gradient(180deg, var(--mtb-gold-2), var(--mtb-gold));
    color: #2a1d00 !important; font-weight: 800; border-radius: 999px;
    padding: .45rem 1rem !important; margin-left: .35rem; white-space: nowrap;
    box-shadow: 0 0 16px rgba(245, 179, 1, .35);
    animation: cta-glow 2.6s ease-in-out infinite;
}
.nav-cta:hover { filter: brightness(1.08); }
@keyframes cta-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(245, 179, 1, .25); }
    50% { box-shadow: 0 0 22px rgba(245, 179, 1, .55); }
}

.price-title { font-size: 1.7rem; font-weight: 900; color: #fff; }

.value-banner {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    margin-top: 1.5rem; padding: 1.1rem 1.4rem;
    background: linear-gradient(120deg, rgba(245, 179, 1, .16), var(--mtb-panel) 55%);
    border: 1px solid var(--mtb-gold); border-radius: var(--mtb-radius);
    box-shadow: 0 0 24px rgba(245, 179, 1, .15);
}
.value-banner .ico { font-size: 2rem; }
.value-banner b { color: #fff; font-size: 1.12rem; display: block; }
.value-banner small { color: var(--mtb-muted); }
.value-banner .btn { margin-left: auto; }
@media (max-width: 680px) { .value-banner .btn { margin-left: 0; width: 100%; } }

/* Seleção do jogo (Magic x Pokémon) na busca pública */
.game-pick { display: inline-flex; border: 1px solid var(--mtb-border); border-radius: 999px; overflow: hidden; }
.game-pick input { position: absolute; opacity: 0; pointer-events: none; }
.game-pick label {
    padding: .45rem .95rem; color: var(--mtb-muted); font-weight: 700; font-size: .9rem;
    cursor: pointer; margin: 0;
}
.game-pick input:checked + label { background: linear-gradient(180deg, var(--mtb-gold-2), var(--mtb-gold)); color: #2a1d00; }
.game-pick input:not(:checked) + label:hover { color: var(--mtb-gold); background: var(--mtb-panel-2); }
.game-pick input:focus-visible + label { outline: 2px solid var(--mtb-gold); outline-offset: -2px; }

/* Card clicável (abre o modal de detalhes) */
.price-card { cursor: pointer; }
.price-card .card-open {
    margin-top: auto; text-align: center; font-weight: 800; font-size: .88rem;
    color: var(--mtb-gold); border: 1px dashed var(--mtb-border); border-radius: 10px; padding: .45rem;
}
.price-card:hover .card-open { border-color: var(--mtb-gold); background: rgba(245, 179, 1, .08); }
tr.js-card-detail { cursor: pointer; }

/* Valor em outras moedas destacado ao lado do R$ */
.card-price .price-alt, .price-alt { color: var(--mtb-blue-2); font-weight: 800; font-size: .92rem; }

/* Modal de detalhes da carta */
.mtb-modal .modal-content {
    background: linear-gradient(180deg, var(--mtb-panel), var(--mtb-bg-2));
    border: 1px solid var(--mtb-border); border-radius: var(--mtb-radius); color: var(--mtb-text);
}
.mtb-modal .modal-header, .mtb-modal .modal-footer { border-color: var(--mtb-border); }
.mtb-modal .modal-title { font-weight: 900; color: #fff; }
.card-detail { display: flex; gap: 1.2rem; }
.card-detail-img {
    flex: 0 0 44%; aspect-ratio: 63 / 88; border-radius: 12px; overflow: hidden;
    background: #0a1120; border: 1px solid var(--mtb-border);
    display: flex; align-items: center; justify-content: center;
}
.card-detail-img img { width: 100%; height: 100%; object-fit: contain; }
.card-detail-img .no-img { color: var(--mtb-muted); font-size: .85rem; text-align: center; padding: 1rem; }
.card-detail-info { flex: 1; min-width: 0; }
.card-detail-list { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 0 0 .9rem; }
.card-detail-list dt { color: var(--mtb-muted); font-weight: 700; font-size: .85rem; }
.card-detail-list dd { margin: 0; color: var(--mtb-text); font-weight: 700; font-size: .9rem; }
.price-box {
    display: flex; flex-direction: column; gap: .15rem;
    background: rgba(245, 179, 1, .08); border: 1px solid var(--mtb-gold);
    border-radius: 12px; padding: .7rem .9rem;
}
.price-box .label { color: var(--mtb-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.price-box .brl { color: var(--mtb-gold); font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.price-box .others { color: var(--mtb-blue-2); font-weight: 800; font-size: .95rem; display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 576px) {
    .card-detail { flex-direction: column; }
    .card-detail-img { flex: none; width: 70%; margin: 0 auto; }
}

/* ---------- Foto do produto (admin): câmera/galeria + crop ---------- */
.photo-picker { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.photo-preview {
    width: 150px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; flex: none;
    border: 1px solid var(--mtb-border); background: #0a1120;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }

.crop-modal {
    background: linear-gradient(180deg, var(--mtb-panel), var(--mtb-bg-2));
    border: 1px solid var(--mtb-border); color: var(--mtb-text);
}
.crop-modal .modal-header, .crop-modal .modal-footer { border-color: var(--mtb-border); }
.crop-stage { max-height: 60vh; overflow: hidden; background: #0a1120; border-radius: 10px; }
.crop-stage img { display: block; max-width: 100%; }

/* ---------- Acessibilidade: reduz movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
    }
}
