:root {
  --bg: #070b12; --bg2: #0c121d; --card: rgba(16, 24, 39, .82); --card2: rgba(21, 32, 51, .88); --line: rgba(43, 64, 98, .55); --line2: #2b3d5c;
  --tx: #e8eef7; --mu: #8d9bb3; --ac: #2ee6c5; --ac2: #1fb5ff; --gold: #f5c542; --er: #ff5d6c; --ok: #3ddc84;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.6 "Inter", system-ui, "Segoe UI", sans-serif; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; background: transparent; }
/* fundo: arte do cavaleiro em tons do logótipo (fixa) + degradê escuro por cima para o texto se ler bem */
body::before { content: ""; position: fixed; inset: 0; z-index: -3; background: url("bg.jpg") center 20% / cover no-repeat; }
body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(1200px 700px at 50% 0%, rgba(46, 230, 197, .07), transparent 60%),
              linear-gradient(180deg, rgba(7, 11, 18, .30) 0%, rgba(7, 11, 18, .62) 38%, rgba(7, 11, 18, .86) 70%, rgba(7, 11, 18, .95) 100%); }
/* olhos do cavaleiro do fundo: brilho vermelho a pulsar e a piscar (posição calculada em site.js) */
.oryx-eyes { position: fixed; z-index: -1; pointer-events: none; width: 0; height: 0; }
.oryx-eyes i { position: absolute; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 70, 50, .95), rgba(255, 30, 30, .55) 45%, rgba(255, 0, 0, 0) 100%);
  mix-blend-mode: screen; animation: eyes 6s ease-in-out infinite; }
.oryx-eyes i.halo { background: radial-gradient(closest-side, rgba(255, 40, 40, .35), rgba(255, 0, 0, 0)); animation-name: halo; }
.oryx-eyes i.lid { background: radial-gradient(closest-side, rgba(3, 8, 12, .97), rgba(3, 8, 12, .9) 60%, rgba(3, 8, 12, 0)); mix-blend-mode: normal; animation-name: lid; }
@keyframes eyes {
  0%, 100% { opacity: .55; filter: blur(1px); } 30% { opacity: 1; filter: blur(0); } 55% { opacity: .65; }
  86% { opacity: .9; } 88% { opacity: .05; } 91% { opacity: .05; } 93% { opacity: 1; filter: blur(0) brightness(1.6); } 96% { opacity: .8; }
}
@keyframes lid { 0%, 87%, 92%, 100% { opacity: 0; } 88.5%, 90.5% { opacity: 1; } }
@keyframes halo { 0%, 100% { opacity: .35; } 30% { opacity: .8; } 88%, 91% { opacity: 0; } 93% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .oryx-eyes i { animation: none; opacity: .8; } .oryx-eyes i.lid { opacity: 0; } }
.card, .stat, .prod, .nav, .drawer, .modal .in { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
a { color: var(--ac); text-decoration: none; }
a:hover { color: #7ff3de; }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; letter-spacing: .02em; margin: 0; line-height: 1.2; }
button, input, select { font: inherit; color: inherit; }
img.px { image-rendering: pixelated; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.mu { color: var(--mu); }

/* ---------- navegação ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 18, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--tx); font-family: "Cinzel", serif; font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(46, 230, 197, .45)); }
.nav .links { display: flex; gap: 4px; margin-left: 8px; }
.nav .links a { color: var(--mu); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nav .links a:hover, .nav .links a.on { color: var(--tx); background: var(--card); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--tx); cursor: pointer; }
.cart-btn:hover { border-color: var(--ac); }
.cart-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ac); color: #04201b; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cart-btn .badge:empty { display: none; }
.burger { display: none; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--tx); font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ac); color: var(--tx); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--ac), var(--ac2)); border: 0; color: #031b18; box-shadow: 0 8px 30px rgba(46, 230, 197, .25); }
.btn.primary:hover { box-shadow: 0 10px 38px rgba(46, 230, 197, .4); color: #031b18; }
.btn.big { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger:hover { border-color: var(--er); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background:
  radial-gradient(600px 380px at 25% 40%, rgba(46, 230, 197, .16), transparent 70%),
  radial-gradient(520px 340px at 80% 30%, rgba(31, 181, 255, .14), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); background: linear-gradient(180deg, #fff, #9fe9dc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #b9c6da; max-width: 560px; margin: 18px 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* logótipo com aura a rodar, brilho a pulsar e faíscas */
.hero .logo-wrap { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; justify-self: center; display: flex; align-items: center; justify-content: center; animation: float 6s ease-in-out infinite; }
.hero .logo { position: relative; z-index: 2; width: 92%; filter: drop-shadow(0 0 40px rgba(46, 230, 197, .45)); animation: glow 3.2s ease-in-out infinite; }
.logo-wrap .aura { position: absolute; inset: 6%; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(46, 230, 197, .55) 60deg, transparent 120deg, rgba(31, 181, 255, .5) 200deg, transparent 260deg, rgba(46, 230, 197, .4) 320deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 56%, #000 64%, transparent 70%); mask: radial-gradient(circle, transparent 52%, #000 56%, #000 64%, transparent 70%);
  filter: blur(6px); animation: spin 9s linear infinite; }
.logo-wrap .aura.a2 { inset: 0; opacity: .55; filter: blur(14px); animation: spin 14s linear infinite reverse; }
.logo-wrap .pulse { position: absolute; inset: 14%; border-radius: 50%; z-index: 1; background: radial-gradient(circle, rgba(46, 230, 197, .32), rgba(31, 181, 255, .12) 45%, transparent 70%); animation: pulse 3.2s ease-in-out infinite; }
.logo-wrap .spark { position: absolute; bottom: 18%; left: var(--x); width: 6px; height: 6px; border-radius: 50%; z-index: 3; background: #9ff3e3; box-shadow: 0 0 10px 3px rgba(46, 230, 197, .8); opacity: 0; animation: rise 5.5s ease-in infinite; animation-delay: var(--d); }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 28px rgba(46, 230, 197, .35)); } 50% { filter: drop-shadow(0 0 60px rgba(46, 230, 197, .75)) drop-shadow(0 0 18px rgba(31, 181, 255, .5)); } }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-240px) scale(1.1); opacity: 0; } }
.brand img { animation: brandglow 3.2s ease-in-out infinite; }
@keyframes brandglow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(46, 230, 197, .35)); } 50% { filter: drop-shadow(0 0 14px rgba(46, 230, 197, .85)); } }
@media (prefers-reduced-motion: reduce) { .logo-wrap, .logo-wrap *, .hero .logo, .brand img { animation: none !important; } .logo-wrap .spark { display: none; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(46, 230, 197, .1); border: 1px solid rgba(46, 230, 197, .35); color: #9ff3e3; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); animation: livepulse 2s ease-in-out infinite; }
.pill.off { background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .4); color: #ffb3b5; }
.pill.off .dot { background: #e5484d; box-shadow: 0 0 10px #e5484d; animation: none; }
.pill .sep { opacity: .45; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }

/* ---------- estatísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-size: 28px; font-family: "Cinzel", serif; color: #fff; }
.stat span { color: var(--mu); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- secções ---------- */
section.block { padding: 60px 0 10px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: 30px; }
.sec-head p { margin: 6px 0 0; color: var(--mu); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature i { font-size: 22px; color: var(--ac); }
.feature h3 { font-size: 18px; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--mu); font-size: 14px; }
.list { display: flex; flex-direction: column; }
.list .row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.list .row:last-child { border-bottom: 0; }
.rank { width: 28px; height: 28px; border-radius: 8px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--mu); flex: none; }
.rank.r1 { background: linear-gradient(135deg, #f5c542, #c98b10); color: #2b1b00; }
.rank.r2 { background: linear-gradient(135deg, #dfe6f0, #8f9bb0); color: #1b2230; }
.rank.r3 { background: linear-gradient(135deg, #e3995b, #9a5524); color: #2a1305; }
.feed-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--card2); }
.empty { color: var(--mu); text-align: center; padding: 26px 0; }
.news h3 { font-size: 17px; margin-bottom: 4px; }
.news p { margin: 0; color: #b9c6da; font-size: 14px; }

/* ---------- loja ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { padding: 9px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--mu); font-weight: 700; cursor: pointer; }
.tab.on { color: var(--tx); border-color: var(--ac); box-shadow: inset 0 -2px 0 var(--ac); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.prod { min-width: 0; position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; overflow: hidden; transition: .2s; }
.prod:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.prod::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c, var(--ac)); }
.prod .glow { position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: var(--c, var(--ac)); opacity: .12; filter: blur(20px); pointer-events: none; }
.prod .tag { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 8px; background: rgba(245, 197, 66, .15); color: var(--gold); border: 1px solid rgba(245, 197, 66, .4); }
.prod .tag.own { background: rgba(61, 220, 132, .12); color: var(--ok); border-color: rgba(61, 220, 132, .4); }
.prod h3 { font-size: 22px; color: var(--c, #fff); margin-bottom: 4px; }
.prod .price { font-size: 30px; font-weight: 800; margin: 10px 0 2px; }
.prod .price small { font-size: 15px; color: var(--mu); text-decoration: line-through; font-weight: 600; margin-left: 8px; }
.prod .sub { color: var(--mu); font-size: 13px; min-height: 20px; }
.prod ul { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod li { display: flex; gap: 9px; font-size: 14px; color: #c8d3e4; }
.prod li i { color: var(--c, var(--ac)); margin-top: 4px; font-size: 12px; }
.prod .icon-big { font-size: 34px; color: var(--c, var(--ac)); margin-bottom: 12px; }
.prod .btn { width: 100%; }
.note { background: rgba(31, 181, 255, .08); border: 1px solid rgba(31, 181, 255, .3); color: #bfe3ff; border-radius: 14px; padding: 14px 16px; font-size: 14px; }

/* ---------- gaveta do carrinho / modais ---------- */
.shade { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 80; opacity: 0; pointer-events: none; transition: .2s; }
.shade.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg2); border-left: 1px solid var(--line); z-index: 90; transform: translateX(100%); transition: .25s; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h3 { font-size: 20px; }
.drawer .body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer footer { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.x { width: 36px; height: 36px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--tx); cursor: pointer; }
.citem { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.citem .n { flex: 1; min-width: 0; }
.citem .n b { display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 30px; height: 30px; background: var(--card); border: 0; cursor: pointer; }
.qty span { width: 30px; text-align: center; font-weight: 700; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.method { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 6px; text-align: center; cursor: pointer; font-weight: 700; font-size: 13px; }
.method.on { border-color: var(--ac); background: rgba(46, 230, 197, .08); }
.method i { display: block; font-size: 18px; margin-bottom: 4px; color: var(--ac); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--mu); font-weight: 600; }
.field input { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none; }
.field input:focus { border-color: var(--ac); }
.err { color: var(--er); font-size: 14px; min-height: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: #b9c6da; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ac); cursor: pointer; }
.terms h2 { font-size: 20px; margin: 26px 0 8px; }
.terms p, .terms li { color: #c8d3e4; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.modal.on { display: flex; }
.modal .in { width: min(460px, 100%); background: var(--bg2); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; max-height: 92vh; overflow-y: auto; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.payto { background: var(--card); border: 1px dashed var(--line2); border-radius: 14px; padding: 14px; margin: 14px 0; }
.payto .k { color: var(--mu); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.payto .v { font-size: 18px; font-weight: 800; word-break: break-all; }
.thread { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.msg { max-width: 85%; }
.msg .b { padding: 8px 12px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.msg .t { font-size: 11px; color: var(--mu); margin-top: 2px; }
.msg.me { align-self: flex-end; text-align: right; }
.msg.me .b { background: rgba(46, 230, 197, .14); border: 1px solid rgba(46, 230, 197, .3); text-align: left; }
.msg.staff .b { background: var(--card2); border: 1px solid var(--line2); }
.dot-new { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--er); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; margin-left: 4px; }
.copy { cursor: pointer; color: var(--ac); font-size: 13px; margin-left: 6px; }

/* ---------- conta ---------- */
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.acc-head .avatar { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: #031b18; display: flex; align-items: center; justify-content: center; font: 800 28px "Cinzel", serif; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { color: var(--mu); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.st { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 7px; text-transform: uppercase; }
.st.pending { background: rgba(245, 197, 66, .15); color: var(--gold); }
.st.delivered { background: rgba(61, 220, 132, .14); color: var(--ok); }
.st.cancelled, .st.reverted { background: rgba(255, 93, 108, .12); color: var(--er); }
.tbl-wrap { overflow-x: auto; }

footer.site { margin-top: auto; border-top: 1px solid var(--line); padding: 26px 0; color: var(--mu); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
#toast div { background: var(--card2); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
#toast div.er { border-color: var(--er); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .logo-wrap { max-width: 250px; order: -1; }
  .hero .cta { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav .links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .nav .links.open { display: flex; }
  .burger { display: inline-flex; }
  .nav .right .btn.hide-sm { display: none; }
  .hero { padding: 50px 0 40px; }
  .sec-head { flex-direction: column; align-items: start; }
  .methods { grid-template-columns: 1fr; }
}
