/* OMEGA MARKET 6 — tema escuro para loja de produtos digitais */
:root {
  --bg: #07080d; --bg2: #0d0f18; --card: #11131f; --card2: #161929; --line: #232741; --line2: #2f3456;
  --text: #eef0ff; --muted: #9aa0c3; --accent: #8b5cf6; --accent2: #22d3ee; --accent3: #f472b6;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  --radius: 16px; --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, .18), transparent 60%), radial-gradient(700px 400px at -10% 10%, rgba(34, 211, 238, .10), transparent 60%); background-attachment: fixed; }
main { flex: 1; outline: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: 1.5rem; } .h3, h3 { font-size: 1.1rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg2); border: 1px solid var(--line); padding: .15em .45em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.section { padding: 2.5rem 0; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .ok { color: var(--ok); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; color: #000; padding: .5rem 1rem; border-radius: 8px; }

/* topo */
.announcement { background: var(--grad); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: .45rem 1rem; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(7, 8, 13, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 1.3rem; box-shadow: 0 0 24px rgba(139, 92, 246, .5); }
.brand-mark.big { width: 56px; height: 56px; font-size: 2rem; border-radius: 16px; margin: 0 auto 1rem; }
.search { flex: 1; max-width: 520px; }
.search input { width: 100%; }
.nav { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; font-weight: 500; }
.nav > a { color: var(--muted); } .nav > a:hover, .nav > a.active, .nav > a.btn { color: #fff; }
.cart-link { position: relative; font-size: 1.25rem; }
.cart-count { position: absolute; top: -6px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent3); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count.zero { background: var(--line2); }
.account { position: relative; } .account summary { cursor: pointer; list-style: none; padding: .4rem .8rem; border: 1px solid var(--line2); border-radius: 999px; }
.account summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card2); border: 1px solid var(--line2); border-radius: 12px; padding: .4rem; min-width: 180px; display: grid; box-shadow: var(--shadow); }
.menu a, .menu button { padding: .55rem .75rem; border-radius: 8px; text-align: left; } .menu a:hover, .menu button:hover { background: var(--line); }

/* formulários e botões */
input, select, textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: .7rem .9rem; width: 100%; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
input[type=checkbox] { width: auto; } input[type=file] { padding: .5rem; }
label { display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
label.check { display: flex; align-items: center; gap: .5rem; color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer; font: inherit; font-weight: 650; color: #fff; background: var(--grad); padding: .7rem 1.2rem; border-radius: 12px; transition: transform .12s, box-shadow .2s, opacity .2s; box-shadow: 0 6px 22px -8px rgba(139, 92, 246, .7); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(34, 211, 238, .6); color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line2); box-shadow: none; } .btn-ghost:hover { background: var(--card2); box-shadow: none; }
.btn-danger { background: transparent; border: 1px solid rgba(248, 113, 113, .5); color: var(--bad); box-shadow: none; } .btn-danger:hover { background: rgba(248, 113, 113, .12); color: var(--bad); box-shadow: none; }
.btn-sm { padding: .45rem .8rem; font-size: .88rem; border-radius: 10px; } .btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link, .icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; } .link:hover, .icon-btn:hover { color: #fff; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; } .icon-btn:hover { background: var(--line); }
.stack { display: grid; gap: 1rem; }
.inline { display: flex; gap: .6rem; align-items: center; } .wrap-inline { flex-wrap: wrap; } .inline input { flex: 1; min-width: 120px; }
.spinner { width: 1em; height: 1em; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero */
.hero { padding: 4rem 0 2rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 850; background: linear-gradient(180deg, #fff, #c4c8ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent2); margin-bottom: .4rem; }
.eyebrow.glow { padding: .35rem .8rem; border: 1px solid rgba(34, 211, 238, .35); border-radius: 999px; background: rgba(34, 211, 238, .08); margin-bottom: 1rem; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .92rem; }
.trust b { margin-right: .3rem; }
.hero-art { position: relative; height: 380px; }
.orb { position: absolute; inset: 10% 15%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #c4b5fd, var(--accent) 40%, #1e1b4b 75%); box-shadow: 0 0 120px rgba(139, 92, 246, .55), inset -30px -40px 80px rgba(0, 0, 0, .5); animation: float 8s ease-in-out infinite; }
.float { position: absolute; padding: .7rem 1rem; border-radius: 14px; font-weight: 800; letter-spacing: .08em; background: rgba(17, 19, 31, .85); border: 1px solid var(--line2); backdrop-filter: blur(8px); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.f1 { top: 8%; left: 2%; color: var(--accent3); } .f2 { top: 18%; right: 0; color: var(--accent2); animation-delay: -2s; }
.f3 { bottom: 14%; left: 8%; color: var(--warn); animation-delay: -4s; } .f4 { bottom: 4%; right: 12%; color: var(--ok); animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }
.section-head a { color: var(--accent2); font-weight: 600; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.cat { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); font-weight: 650; transition: transform .15s, border-color .15s; }
.cat span { font-size: 1.4rem; } .cat:hover { transform: translateY(-3px); border-color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); margin-bottom: .8rem; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin: .4rem 0 .7rem; margin-top: auto; padding-top: .5rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.tag { position: absolute; top: .7rem; left: .7rem; font-size: .72rem; font-weight: 750; padding: .25rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); }
.tag-hot { background: var(--accent3); }
.cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg2); }
.cover-ph { display: grid; place-items: center; align-content: center; gap: .3rem; color: rgba(255, 255, 255, .92); text-align: center; padding: 1rem; }
.cover-ph span { font-size: 2.6rem; } .cover-ph small { font-weight: 700; font-size: .85rem; opacity: .9; }
.hue-0 { background: linear-gradient(135deg, #6d28d9, #0e7490); } .hue-1 { background: linear-gradient(135deg, #be185d, #6d28d9); }
.hue-2 { background: linear-gradient(135deg, #0f766e, #1d4ed8); } .hue-3 { background: linear-gradient(135deg, #b45309, #be185d); }
.hue-4 { background: linear-gradient(135deg, #1e40af, #7c3aed); } .hue-5 { background: linear-gradient(135deg, #047857, #0891b2); }
.cover-lg { border-radius: var(--radius); aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.cover-sm { width: 120px; aspect-ratio: 4 / 3; border-radius: 10px; flex: none; } .cover-sm.cover-ph span { font-size: 1.6rem; } .cover-sm.cover-ph small { display: none; }
.cover-xs { width: 64px; aspect-ratio: 4 / 3; border-radius: 8px; flex: none; } .cover-xs.cover-ph { padding: 0; } .cover-xs.cover-ph span { font-size: 1.1rem; } .cover-xs.cover-ph small { display: none; }
.price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.price strong { font-size: 1.25rem; } .price s { color: var(--muted); font-size: .85rem; }
.badge-off { font-size: .72rem; font-weight: 800; color: #052e16; background: var(--ok); padding: .1rem .4rem; border-radius: 6px; }
.stars { color: var(--warn); font-size: .9rem; white-space: nowrap; } .stars small { color: var(--muted); }
.skeleton .cover, .skeleton i { background: linear-gradient(90deg, var(--card2), var(--line), var(--card2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton i { display: block; height: 14px; border-radius: 6px; margin: .4rem 0; } .skeleton i:nth-child(2) { width: 70%; } .skeleton i:nth-child(3) { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line2); border-radius: var(--radius); background: rgba(17, 19, 31, .5); }
.empty-icon { font-size: 3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }

/* catálogo */
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: .5rem; } .sort select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.chip { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center; }
.chip:hover { color: #fff; border-color: var(--accent); } .chip.on { background: var(--grad); color: #fff; border-color: transparent; }

/* produto */
.crumbs { color: var(--muted); font-size: .88rem; margin-bottom: 1.2rem; } .crumbs a:hover { color: #fff; }
.product-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: start; }
.product-media { position: sticky; top: 90px; }
.meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.buybox { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: .8rem; margin-bottom: 1.6rem; }
.buybox .price strong { font-size: 2rem; }
.checks { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .35rem; color: var(--muted); font-size: .9rem; }
.buybox .checks li::before { content: '✓ '; color: var(--ok); font-weight: 700; }
.features { padding-left: 1.2rem; display: grid; gap: .3rem; }
.files { list-style: none; padding: 0; display: grid; gap: .5rem; }
.files li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); flex-wrap: wrap; }
.product-desc, .product-reviews { margin-top: 2.5rem; max-width: 820px; }
.prose { color: #d3d6f2; }
.review { padding: 1rem 0; border-bottom: 1px solid var(--line); } .review p { margin: .4rem 0 0; color: #d3d6f2; }

/* carrinho e pedidos */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: .8rem; }
.cart-item > div { display: grid; }
.summary, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.summary { position: sticky; top: 90px; display: grid; gap: 1rem; }
.panel { margin-bottom: 1.2rem; }
dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin: 0; } dd { margin: 0; text-align: right; }
.total { font-size: 1.2rem; font-weight: 800; padding-top: .5rem; border-top: 1px solid var(--line); }
.notice { padding: .7rem .9rem; border-radius: 10px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; margin: 0; }
.status { font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; background: var(--line); color: var(--muted); }
.status.ok { background: rgba(52, 211, 153, .15); color: var(--ok); } .status.warn { background: rgba(251, 191, 36, .15); color: var(--warn); } .status.bad { background: rgba(248, 113, 113, .15); color: var(--bad); }
.table { display: grid; gap: .6rem; }
.row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); flex-wrap: wrap; }
a.row:hover { border-color: var(--line2); background: var(--card2); }
.row > span:first-child { display: grid; } .grow { flex: 1; display: grid; min-width: 160px; }
.order-hero { text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 1.2rem; }
.order-hero .hero-cta { justify-content: center; } .order-hero .lead { margin-inline: auto; }
.order-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--line); }
.order-hero.paid .order-icon { background: rgba(52, 211, 153, .2); color: var(--ok); box-shadow: 0 0 40px rgba(52, 211, 153, .35); }
.order-hero.pending .order-icon { background: rgba(251, 191, 36, .18); }
.line { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.line.total { border-bottom: 0; }

/* biblioteca */
.library { display: grid; gap: 1rem; }
.lib-item { display: flex; gap: 1.2rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.lib-body { flex: 1; display: grid; gap: .6rem; } .lib-body h3, .lib-body p { margin: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: .5rem; } .downloads small { opacity: .8; font-weight: 500; }
.license { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .license code { font-size: 1rem; padding: .5rem .8rem; }
.rate { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; } .rate input { flex: 1; min-width: 160px; padding: .45rem .7rem; }
.star { background: none; border: 0; font-size: 1.3rem; color: var(--line2); cursor: pointer; padding: 0 .05rem; } .star.on { color: var(--warn); }

/* autenticação */
.auth { display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); padding: 2rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow); text-align: center; }
.auth-card form { text-align: left; margin-top: 1rem; }
.auth-foot { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.2rem; font-size: .9rem; color: var(--muted); } .auth-foot a { color: var(--accent2); }

/* admin */
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.tabs { display: flex; gap: .3rem; background: var(--card); padding: .3rem; border-radius: 12px; border: 1px solid var(--line); flex-wrap: wrap; }
.tab { padding: .5rem .9rem; border-radius: 9px; color: var(--muted); font-weight: 600; } .tab.on { background: var(--grad); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kpi { padding: 1.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: .3rem; }
.kpi span { color: var(--muted); font-size: .85rem; } .kpi b { font-size: 1.6rem; }
.toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; } .toolbar select { width: auto; }
.editor { margin-top: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .span2 { grid-column: span 2; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
progress { width: 160px; accent-color: var(--accent); }

/* rodapé e avisos */
.footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.5rem 0; background: rgba(13, 15, 24, .6); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 2rem; }
.footer-links { display: grid; gap: .5rem; color: var(--muted); }
.pill { display: inline-block; padding: .3rem .7rem; margin: 0 .3rem .3rem 0; border-radius: 999px; border: 1px solid var(--line2); font-size: .85rem; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .6rem; z-index: 50; max-width: min(380px, calc(100vw - 2rem)); }
.toast { padding: .85rem 1.1rem; border-radius: 12px; background: var(--card2); border: 1px solid var(--line2); border-left: 4px solid var(--ok); box-shadow: var(--shadow); animation: in .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.error { border-left-color: var(--bad); } .toast.info { border-left-color: var(--accent2); } .toast.out { opacity: 0; transform: translateX(20px); }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }

/* responsivo */
@media (max-width: 900px) {
  .hero-inner, .product-grid, .cart-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-art { height: 220px; } .product-media, .summary { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: .7rem 0; gap: .7rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { gap: .8rem; font-size: .92rem; }
  .form-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .cart-item { grid-template-columns: auto 1fr auto; } .cart-item > b { grid-column: 2; }
  .lib-item { flex-direction: column; } .cover-sm { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
