:root {
  --bg: #050507; --card: #0d0d11; --card2: #13131a; --line: #1e1e27; --line2: #2d2d3a;
  --text: #f4f4f6; --muted: #8f8fa2;
  /* cores da logo */
  --p1: #c82ffc; --p2: #9721fc; --p3: #7a19fc; --p4: #2c0ae6;
  --accent: #9721fc;
  --grad: linear-gradient(90deg, #c82ffc 0%, #8a22fc 52%, #3d12ee 100%);
  --glow: rgba(151, 33, 252, .45);
  --ok: #22c55e; --warn: #f59e0b; --danger: #ef4444; --pix: #32bcad;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: var(--text); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(151, 33, 252, .5); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: #08080b; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--p1), var(--p4)); border-radius: 10px; border: 2px solid #08080b; }

/* fundo quadriculado */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px);
  background-size: 26px 26px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, .7), #000 70%); mask-image: linear-gradient(105deg, rgba(0, 0, 0, .7), #000 70%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 35% at 88% 0%, rgba(122, 25, 252, .18), transparent 70%),
    radial-gradient(40% 30% at 0% 100%, rgba(200, 47, 252, .09), transparent 70%),
    radial-gradient(130% 90% at 50% 45%, transparent 60%, rgba(0, 0, 0, .55));
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* aviso + cabeçalho */
.announce { background: linear-gradient(90deg, rgba(200, 47, 252, .16), rgba(44, 10, 230, .16)), #0b0b10; text-align: center; font-size: 13px; font-weight: 500; padding: 9px 12px; border-bottom: 1px solid var(--line); }
header.top { position: sticky; top: 0; z-index: 50; background: rgba(5, 5, 7, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr minmax(240px, 500px) 1fr; align-items: center; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 8px; width: max-content; }
.brand img { height: 44px; width: auto; transition: transform .3s, filter .3s; }
.brand:hover img { transform: scale(1.04); filter: drop-shadow(0 0 14px var(--glow)); }
.brand .vf { width: 18px; height: 18px; color: var(--p2); flex: none; }
.search { position: relative; }
.search input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(13, 13, 17, .85); padding: 0 14px 0 44px; font-size: 15px; outline: none; transition: .2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--p2); box-shadow: 0 0 0 4px rgba(151, 33, 252, .15); }
.search svg { position: absolute; left: 14px; top: 11px; width: 22px; height: 22px; color: var(--muted); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #ddd; transition: .2s; }
.icon-btn:hover { background: rgba(151, 33, 252, .15); color: #fff; transform: translateY(-1px); }
.icon-btn svg { width: 24px; height: 24px; }
body.checkout .search, body.checkout .actions, body.checkout .announce { display: none; }

/* botões */
.btn { height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s, filter .2s; white-space: nowrap; position: relative; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(151, 33, 252, .25); }
.btn.primary:hover { filter: brightness(1.12) saturate(1.1); transform: translateY(-2px); box-shadow: 0 10px 34px var(--glow); }
.btn.light { background: #fff; color: #111; }
.btn.light:hover { background: #ece8ff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(151, 33, 252, .3); }
.btn.dark { background: #1b1b24; color: #fff; border: 1px solid var(--line2); }
.btn.dark:hover { border-color: var(--p2); background: #221a33; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(151, 33, 252, .2); }
.btn.ghost { border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); }
.btn.ghost:hover { background: rgba(151, 33, 252, .12); border-color: var(--p2); transform: translateY(-2px); }
.btn.danger { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.btn.danger:hover { background: rgba(239, 68, 68, .3); }
.btn.big { height: 50px; font-size: 16px; padding: 0 26px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px; background: #fff; color: #000; border: 2px solid var(--p2); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.badge.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.5); } }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.12; font-weight: 700; letter-spacing: -1.5px; }
.hero h1 span.l { display: block; opacity: 0; transform: translateY(24px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero h1 span.l:nth-child(2) { animation-delay: .12s; } .hero h1 span.l:nth-child(3) { animation-delay: .24s; }
.hero h1 .dim { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .dot { color: #fff; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero p.sub { color: #b8b8c6; font-size: 19px; line-height: 1.55; max-width: 640px; margin: 28px 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .cta .btn { height: 56px; font-size: 17px; padding: 0 28px; border-radius: 12px; }
.perks { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 16px; }
.perks span { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; } .perks span:hover { color: #fff; }
.perks svg { width: 20px; height: 20px; color: var(--p2); }

.panel { background: linear-gradient(180deg, rgba(19, 19, 26, .94), rgba(11, 11, 15, .94)); border: 1px solid var(--line2); border-radius: 22px; padding: 28px 32px 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(151, 33, 252, .06); }
.panel h3 { display: flex; align-items: center; gap: 16px; font-size: 24px; font-weight: 600; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.panel h3 .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(151, 33, 252, .35); } .panel h3 svg { width: 24px; height: 24px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { position: relative; overflow: hidden; border: 1px solid var(--line2); background: rgba(255, 255, 255, .015); border-radius: 14px; min-height: 180px; padding: 20px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; transition: transform .25s, border-color .25s, background .25s, box-shadow .25s; cursor: pointer; }
.tile .bgico { position: absolute; top: 18px; width: 40px; height: 40px; opacity: .12; transition: .35s; }
.tile b { font-size: 18px; font-weight: 600; } .tile small { color: var(--muted); font-size: 15px; line-height: 1.35; }
.tile:hover { transform: translateY(-4px); border-color: rgba(151, 33, 252, .6); background: rgba(151, 33, 252, .07); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(151, 33, 252, .18); }
.tile:hover .bgico { opacity: .9; transform: scale(1.2) translateY(-2px); color: var(--p1); }
.tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 18px 22px; gap: 14px; }
.tile.wide .bgico { position: static; opacity: .4; } .tile.wide small { display: block; color: #cfcfd8; font-size: 14px; }
.tile.wide:hover .bgico { opacity: 1; color: #25d366; }

/* vitrine */
.section { padding: 22px 0 10px; scroll-margin-top: 90px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(13, 13, 17, .9); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 22px 10px 16px; font-size: 18px; font-weight: 500; margin: 8px 0 22px; }
.pill::before { content: ''; width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(var(--p1), var(--p4)); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 18px; }
.card { background: linear-gradient(180deg, var(--card2), #0b0b0f); border: 1px solid var(--line2); border-radius: 16px; padding: 0 0 14px; overflow: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; position: relative; opacity: 0; animation: rise .6s forwards; cursor: pointer; }
.card:hover { transform: translateY(-6px); border-color: rgba(151, 33, 252, .65); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(151, 33, 252, .3), 0 0 40px rgba(151, 33, 252, .18); }
.card .img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: #0d0d10; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.card:hover .img img { transform: scale(1.08); }
.card.out .img img { filter: grayscale(.8) brightness(.5); }
.card .img .soldout { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 22px; letter-spacing: 1px; text-shadow: 0 2px 8px #000; }
.card .body { padding: 12px 12px 0; }
.card .name { font-size: 15px; font-weight: 500; line-height: 1.3; margin-bottom: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .old { font-size: 12px; color: var(--muted); height: 18px; display: flex; gap: 8px; align-items: center; } .card .old em { color: var(--ok); font-style: normal; font-weight: 500; }
.card .price { display: flex; justify-content: space-between; align-items: center; font-size: 19px; font-weight: 500; }
.card .price svg { width: 18px; height: 18px; } .card .price .bolt { color: var(--p2); } .card .price .stack { color: var(--p1); }
.card .pix { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.card .row { display: flex; gap: 10px; align-items: center; }
.card .btn { flex: 1; height: 38px; border-radius: 9px; background: #23232d; font-size: 14px; }
.card .btn:hover { background: var(--grad); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px var(--glow); }
.card .cartbtn { width: 38px; height: 38px; display: grid; place-items: center; color: #aaa; border-radius: 9px; transition: .2s; }
.card .cartbtn:hover { color: #fff; background: rgba(151, 33, 252, .25); transform: scale(1.1); } .card .cartbtn svg { width: 22px; height: 22px; }
.empty { color: var(--muted); padding: 60px 0; text-align: center; font-size: 17px; }

footer { margin-top: 70px; border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--muted); font-size: 14px; text-align: center; background: rgba(0, 0, 0, .55); }
footer a { color: #cfcfd8; } footer a:hover { color: var(--p1); }

/* caixas genéricas das páginas internas */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 15px; margin: 24px 0 22px; }
.crumbs a:hover { color: #fff; } .crumbs b { color: #fff; font-weight: 500; } .crumbs i { font-style: normal; opacity: .6; }
.box { background: rgba(13, 13, 17, .94); border: 1px solid var(--line2); border-radius: 16px; }
.box > header { padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.box .in { padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.chip svg { width: 16px; height: 16px; }
.chip.auto { background: rgba(151, 33, 252, .14); color: #d6b4ff; border: 1px solid rgba(151, 33, 252, .35); }
.chip.manual { background: rgba(255, 255, 255, .06); color: #d0d0da; border: 1px solid var(--line2); }
.money { font-size: 30px; font-weight: 500; letter-spacing: -.5px; } .money sup { font-size: .55em; vertical-align: .75em; margin-left: 1px; }
.stepper { display: grid; grid-template-columns: 50px 1fr 50px; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; height: 46px; }
.stepper button { font-size: 18px; transition: .15s; } .stepper button:hover { background: rgba(151, 33, 252, .2); }
.stepper input { text-align: center; background: transparent; border: 0; border-left: 1px solid var(--line2); border-right: 1px solid var(--line2); outline: none; font-weight: 500; width: 100%; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.sm { grid-template-columns: 38px 44px 38px; height: 38px; display: inline-grid; }
.pixmark { width: 30px; height: 30px; color: var(--pix); flex: none; }

/* página do produto */
.pp { padding: 36px 40px 40px; }
.pp-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(280px, .8fr); gap: 28px; align-items: start; }
.pp-img { border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 16 / 9; background: #0d0d10; }
.pp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pp-img:hover img { transform: scale(1.04); }
.pp-info h1 { font-size: 24px; font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid var(--line2); margin-bottom: 18px; }
.pp-info .chip { margin-top: 10px; }
.pp-info .old { color: var(--muted); font-size: 14px; } .pp-info .old em { color: var(--ok); font-style: normal; margin-left: 6px; }
.pp-side { display: grid; gap: 18px; }
.pp-side .box { padding: 20px; }
.pp-side h3 { font-size: 19px; font-weight: 600; }
.pp-side .buy .money { margin: 6px 0 2px; }
.pp-side .buy .avail { color: var(--muted); margin-bottom: 14px; }
.pp-side .buy .btn { margin-top: 10px; height: 46px; }
.opts { display: grid; gap: 10px; margin: 20px 0 0; } .opts > span { color: var(--muted); font-size: 14px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; transition: .2s; background: rgba(255, 255, 255, .02); }
.opt:hover { border-color: rgba(151, 33, 252, .6); transform: translateX(3px); }
.opt.on { border-color: var(--p2); background: rgba(151, 33, 252, .12); box-shadow: 0 0 0 1px var(--p2) inset, 0 0 24px rgba(151, 33, 252, .15); }
.opt.dis { opacity: .4; pointer-events: none; }
.opt small { display: block; color: var(--muted); font-size: 12px; } .opt b { font-weight: 600; white-space: nowrap; }
.pp-desc { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line2); }
.pp-desc > h2 { font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.rich { color: #cfcfda; line-height: 1.7; font-size: 15px; }
.rich h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: #fff; text-align: center; margin: 10px 0 18px; line-height: 1.2; }
.rich h3 { font-size: 20px; color: #fff; margin: 22px 0 8px; }
.rich p { margin: 0 0 10px; } .rich strong { color: #fff; }
.rich ul { margin: 6px 0 12px 22px; } .rich li { margin: 4px 0; } .rich li::marker { color: var(--p1); }
.rich .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* carrinho */
.pg-title { font-size: 26px; font-weight: 600; } .pg-sub { color: var(--muted); margin: 4px 0 24px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--p2); background: linear-gradient(90deg, rgba(200, 47, 252, .12), rgba(44, 10, 230, .1)); box-shadow: 0 0 24px rgba(151, 33, 252, .15); }
.pay-opt b { display: block; font-weight: 500; } .pay-opt small { color: #c8c2dd; font-size: 13px; }
.lbl { display: block; font-weight: 500; margin: 18px 0 8px; }
.inp { position: relative; } .inp svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: var(--muted); }
.inp input { width: 100%; height: 50px; border-radius: 10px; border: 1px solid var(--line2); background: #09090c; padding: 0 14px 0 44px; outline: none; transition: .2s; font-size: 15px; }
.inp input:focus { border-color: var(--p2); box-shadow: 0 0 0 3px rgba(151, 33, 252, .18); }
.inp input.badv { border-color: var(--danger); }
.count { font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 2px 8px; font-weight: 400; }
.ci { display: grid; grid-template-columns: 100px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; }
.ci img { width: 100px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); }
.ci b { font-size: 14px; font-weight: 600; display: block; } .ci small { color: var(--muted); font-size: 13px; display: block; }
.ci .rm { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #cfcfd8; transition: .2s; }
.ci .rm:hover { background: rgba(239, 68, 68, .2); color: #fca5a5; } .ci .rm svg { width: 14px; height: 14px; }
.ci .right { text-align: right; display: grid; gap: 10px; justify-items: end; } .ci .right > b { font-size: 18px; font-weight: 500; }
.ci .warn { color: #fbbf24; font-size: 12px; }
.sum { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 10px; } .sum span:last-child { color: var(--text); }
.sum.tot { color: var(--text); font-size: 20px; font-weight: 500; margin: 0; }
.sum .pm { display: inline-flex; align-items: center; gap: 6px; } .sum .pm svg { width: 20px; height: 20px; color: var(--pix); }
.couponlink { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 4px; font-weight: 500; color: #d6b4ff; transition: .2s; }
.couponlink:hover { color: #fff; } .couponlink svg { width: 20px; height: 20px; color: var(--p1); }
.coupon { display: flex; gap: 8px; margin: 10px 0 4px; } .coupon input { flex: 1; min-width: 0; background: #09090c; border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; height: 40px; outline: none; text-transform: uppercase; }
.coupon input:focus { border-color: var(--p2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.terms { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 16px 0 14px; cursor: pointer; user-select: none; }
.terms a { color: #b78bff; } .terms a:hover { color: #fff; }
.terms .cb { width: 28px; height: 28px; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--danger); color: #fff; font-weight: 700; transition: .2s; }
.terms .cb::after { content: '✕'; }
.terms input:checked + .cb { background: var(--grad); box-shadow: 0 0 16px var(--glow); }
.terms input:checked + .cb::after { content: '✓'; }
.terms input:focus-visible + .cb { outline: 2px solid var(--p1); outline-offset: 2px; }

/* pedido */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.pixbox { text-align: center; } .pixbox .qr { background: #fff; padding: 12px; border-radius: 14px; display: inline-block; margin: 6px 0 16px; box-shadow: 0 0 40px rgba(151, 33, 252, .25); }
.pixbox textarea { width: 100%; height: 84px; background: #09090c; border: 1px solid var(--line2); border-radius: 10px; padding: 10px; font-size: 12px; resize: none; }
.steps { display: grid; gap: 8px; margin: 4px 0 18px; text-align: left; color: #cfcfd8; font-size: 14px; } .steps b { color: var(--p1); margin-right: 6px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: #cfcfd8; margin: 16px 0 6px; font-size: 15px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(151, 33, 252, .25); border-top-color: var(--p1); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.okmark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--grad); box-shadow: 0 0 40px var(--glow); font-size: 30px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.s-pendente { background: rgba(245, 158, 11, .15); color: #fbbf24; } .s-pago { background: rgba(34, 197, 94, .15); color: #4ade80; } .s-cancelado { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.deliv { background: #07070a; border: 1px dashed rgba(151, 33, 252, .45); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; margin-top: 8px; text-align: left; }
.page { padding: 10px 0 10px; } .page h1 { font-size: 28px; margin-bottom: 18px; }
.ord { background: rgba(13, 13, 17, .94); border: 1px solid var(--line2); border-radius: 14px; padding: 18px; margin-bottom: 14px; transition: .2s; display: block; }
.ord:hover { border-color: rgba(151, 33, 252, .6); transform: translateY(-2px); box-shadow: 0 0 30px rgba(151, 33, 252, .12); }
.ord .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 18px 0; }
.stat div { background: rgba(13, 13, 17, .94); border: 1px solid var(--line2); border-radius: 14px; padding: 18px; } .stat b { display: block; font-size: 26px; } .stat span { color: var(--muted); font-size: 13px; }

/* flutuantes */
.chatfab { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 70px; height: 70px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 30px rgba(151, 33, 252, .35); transition: .25s; }
.chatfab:hover { transform: scale(1.1) rotate(-6deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 50px var(--glow); } .chatfab svg { width: 36px; height: 36px; }
.sale-toast { position: fixed; left: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 14px; background: rgba(13, 13, 17, .97); border: 1px solid var(--line2); border-left: 3px solid var(--p1); border-radius: 14px; padding: 16px 26px 16px 18px; font-size: 17px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); transform: translateY(140%); opacity: 0; transition: .5s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 130px); }
.sale-toast.show { transform: none; opacity: 1; } .sale-toast svg { width: 28px; height: 28px; color: var(--p1); flex: none; } .sale-toast b { font-weight: 600; } .sale-toast span { color: #bbb; }
.toast { position: fixed; top: 84px; left: 50%; transform: translate(-50%, -20px); background: #fff; color: #111; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 200; opacity: 0; transition: .3s; pointer-events: none; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); border-bottom: 3px solid var(--p2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: #ef4444; color: #fff; border-color: #991b1b; }

/* modais */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #0f0f14; border: 1px solid var(--line2); border-radius: 20px; width: min(520px, 100%); padding: 28px; position: relative; animation: pop .3s cubic-bezier(.2, .8, .2, 1); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 60px rgba(151, 33, 252, .1); }
.modal.wide { width: min(820px, 100%); }
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.modal h2 { font-size: 22px; margin-bottom: 18px; } .modal .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; font-size: 22px; color: var(--muted); } .modal .x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.field { display: block; margin-bottom: 14px; } .field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; background: #09090c; border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; outline: none; transition: .2s; font-size: 15px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--p2); box-shadow: 0 0 0 3px rgba(151, 33, 252, .18); }
.tabs { display: flex; gap: 6px; background: #09090c; padding: 4px; border-radius: 12px; margin-bottom: 20px; } .tabs button { flex: 1; height: 38px; border-radius: 9px; color: var(--muted); font-weight: 500; transition: .2s; } .tabs button.on { background: var(--grad); color: #fff; }
.muted { color: var(--muted); } .err-msg { color: #fca5a5; font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media (max-width: 1080px) {
  .pp-top { grid-template-columns: 1fr 1fr; } .pp-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .cart-grid { grid-template-columns: 1fr 1fr; } .cart-grid > :nth-child(2) { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .top .wrap { grid-template-columns: auto 1fr auto; height: auto; padding: 10px 0; row-gap: 10px; }
  .top .search { grid-column: 1 / -1; order: 3; } .actions { gap: 6px; }
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pp { padding: 18px; } .pp-top, .pp-side, .cart-grid { grid-template-columns: 1fr; }
  .ci { grid-template-columns: 76px 1fr; } .ci img { width: 76px; } .ci .right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}
@media (max-width: 560px) {
  .brand img { height: 36px; } .actions .btn { padding: 0 12px; } .actions .lbl { display: none; }
  .tiles { gap: 12px; } .panel { padding: 20px; } .tile { min-height: 150px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .card .price { font-size: 16px; } .hero p.sub { font-size: 16px; }
  .sale-toast { font-size: 14px; padding: 12px 16px; left: 12px; bottom: 12px; } .chatfab { width: 56px; height: 56px; right: 12px; bottom: 12px; } .chatfab svg { width: 28px; height: 28px; }
}
