/* VANTA Hub — mesmos tokens da folha de componentes (14.8) */
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Regular.otf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Medium.otf'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-SemiBold.otf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Bold.otf'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0C0C0C; --nav: #0A0A0A; --card: #151515; --panel: #171717; --field: #121212; --hover: #2A2A2A; --sel: #242424;
  --border: #303030; --line: #232323; --text: #EDEDF0; --text2: #A0A0A0; --text3: #858585; --muted: #6A6A6A; --hint: #606060;
  --accent: #FF5A36; --accent-h: #FF6E4D; --accent-p: #E04B2B; --red: #FF5A5A; --green: #5AD25A; --blue: #5A8CFF; --yellow: #E0A84A; --light: #FFD27A;
  --mono: 'JetBrains Mono', Consolas, 'DejaVu Sans Mono', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 Inter, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ic { flex: none; }
.muted { color: var(--text3); }
.mono { font-family: var(--mono); }
:focus-visible { outline: 1.5px solid var(--blue); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10,10,10,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #1E1E1E; }
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 26px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: 1.2px; }
.logo img { width: 24px; height: 24px; }
.logo small { font-size: 11px; color: var(--text3); letter-spacing: 3px; font-weight: 600; }
.nav .links { display: flex; gap: 22px; font-size: 13px; color: var(--text2); font-weight: 500; }
.nav .links a:hover, .nav .links a.on { color: #fff; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav form.search { position: relative; }
.nav form.search input { width: 230px; height: 32px; padding-left: 32px; background: var(--sel); }
.nav form.search .ic { position: absolute; left: 11px; top: 9px; color: var(--text3); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--hover); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #D2D2D2; }
.drop { position: relative; }
.drop > button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; display: flex; align-items: center; gap: 6px; }
.drop .menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #1E1E1E; border: 1px solid var(--border); border-radius: 8px; padding: 5px; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.drop.open .menu { display: block; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 5px; font-size: 12.5px; color: #D2D2D2; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.menu a:hover, .menu button:hover { background: var(--hover); color: #fff; }
.menu hr { border: 0; border-top: 1px solid var(--hover); margin: 4px 2px; }
.menu .who { padding: 6px 10px 8px; font-size: 11.5px; color: var(--text3); }

/* botões / campos */
.btn { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: #242424; color: #E4E4E4; font: 600 12.5px Inter, sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2C2C2C; border-color: #3A3A3A; color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn.ghost { background: none; }
.btn.danger { color: var(--red); }
.btn.lg { height: 40px; padding: 0 20px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
input.f, select.f, textarea.f, .nav input { width: 100%; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--field); color: #E4E4E4; padding: 0 12px; font: 13px Inter, sans-serif; outline: none; }
textarea.f { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.f:focus, .nav input:focus { border-color: var(--text); }
.f.err { border-color: var(--red); }
label.l { display: block; font-size: 12px; color: #BDBDBD; margin: 0 0 6px; }
.hint { font-size: 11.5px; color: var(--text3); margin-top: 5px; }
.err-msg { color: var(--red); font-size: 12px; margin-top: 5px; }
.fg { margin-bottom: 16px; }
.row { display: flex; gap: 14px; align-items: center; }
.row > .fg { flex: 1; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 600; background: #222; color: var(--text2); white-space: nowrap; }
.pill.dark { background: rgba(16,16,16,.92); border: 1px solid #2A2A2A; color: #D2D2D2; }
.pill.ok { background: #17261A; color: var(--green); } .pill.info { background: #18202E; color: var(--blue); }
.pill.warn { background: #2A2316; color: var(--yellow); } .pill.bad { background: #2C1818; color: var(--red); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 13px; border-radius: 14px; border: 1px solid var(--hover); background: #1E1E1E; color: #BDBDBD; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; }
.chip:hover { color: #fff; } .chip.on { background: var(--text); color: #0C0C0C; border-color: var(--text); font-weight: 600; }
.stars { display: inline-flex; gap: 1px; color: var(--light); vertical-align: -2px; }
.stars .off { color: #3A3A3A; }

/* alertas */
.flash { margin: 18px 0 0; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--border); background: #1A1A1A; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.flash.ok { border-left: 3px solid var(--green); } .flash.err { border-left: 3px solid var(--red); }

/* layout de página */
main { min-height: calc(100vh - 60px - 150px); padding-bottom: 60px; }
.head { padding: 34px 0 20px; display: flex; align-items: flex-end; gap: 16px; }
.head h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.head .sub { color: var(--text2); margin-top: 5px; }
.head .act { margin-left: auto; display: flex; gap: 10px; }
h2 { font-size: 17px; margin: 0; }
.sec { display: flex; align-items: center; margin: 38px 0 14px; }
.sec a { margin-left: auto; font-size: 13px; color: var(--text2); }
.sec a:hover { color: var(--text); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.pad { padding: 20px; }
.empty { border: 1px dashed #2A2A2A; border-radius: 10px; padding: 50px 20px; text-align: center; color: var(--text2); }
.empty h3 { color: var(--text); margin: 0 0 6px; }

/* hero */
.hero { display: block; position: relative; height: 340px; margin-top: 24px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.hero .th, .hero .th svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,12,.97) 0%, rgba(12,12,12,.78) 45%, rgba(12,12,12,0) 80%); }
.hero .in { position: absolute; z-index: 1; left: 40px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.hero .k { font-size: 11px; letter-spacing: 1.6px; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.hero h1 { font-size: 34px; margin: 10px 0 8px; line-height: 1.15; }
.hero p { color: var(--text2); margin: 0 0 20px; }
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 18px; }
.cat { padding: 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cat:hover { border-color: #3A3A3A; }
.cat .n { font-size: 11.5px; color: var(--text3); }
.cat b { font-size: 13px; font-weight: 600; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: block; }
.card:hover { border-color: #3A3A3A; }
.card .th { position: relative; aspect-ratio: 320 / 180; border-bottom: 1px solid var(--line); background: #161616; }
.card .th svg { width: 100%; height: 100%; }
.card .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.card .b { padding: 12px 14px 13px; }
.card .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .by { font-size: 12px; color: var(--text3); margin-top: 1px; }
.card .ft { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--text3); }
.card .price { margin-left: auto; color: var(--text); font-weight: 600; font-size: 13px; }

/* filtros da lista */
.filters { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.filters select.f { width: 190px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; padding: 0 10px; }
.pager .on { background: var(--text); color: #0C0C0C; border-color: var(--text); font-weight: 600; }

/* página do item */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 18px; }
.gal .big { aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gal .big svg { width: 100%; height: 100%; }
.gal .row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
.gal .sm { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; opacity: .65; }
.gal .sm.on { opacity: 1; border-color: var(--text); }
.gal .sm svg { width: 100%; height: 100%; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid #222; margin: 26px 0 16px; }
.tabs a { padding: 8px 0; color: var(--text3); font-weight: 500; position: relative; cursor: pointer; }
.tabs a.on { color: #fff; font-weight: 600; }
.tabs a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.desc { color: #C8C8C8; line-height: 1.7; white-space: pre-line; }
.desc ul { white-space: normal; padding-left: 18px; }
.buy { padding: 22px; position: sticky; top: 80px; }
.buy h1 { font-size: 21px; margin: 10px 0 4px; line-height: 1.25; }
.buy .pr { font-size: 26px; font-weight: 700; margin: 18px 0 14px; }
.kv { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text2); padding: 5px 0; }
.kv b { color: var(--text); font-weight: 500; text-align: right; }
.review { padding: 14px 0; border-bottom: 1px solid #1E1E1E; }
.review .h { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 13px; }
.review .h .w { margin-left: auto; font-weight: 400; color: var(--text3); font-size: 12px; }
.review p { margin: 6px 0 0 40px; color: var(--text2); }
.starpick { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.starpick input { display: none; }
.starpick label { cursor: pointer; color: #3A3A3A; font-size: 22px; line-height: 1; }
.starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color: var(--light); }

/* tabelas */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; background: #141414; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 14px; border-bottom: 1px solid #1C1C1C; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
.mini { width: 64px; height: 36px; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.mini svg { width: 100%; height: 100%; }

/* planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { padding: 24px; }
.plan.cur { border-color: var(--text); }
.plan .n { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.plan .p { font-size: 32px; font-weight: 700; margin: 14px 0 2px; }
.plan .p span { font-size: 13px; color: var(--text3); font-weight: 500; }
.plan ul { padding-left: 18px; color: var(--text2); margin: 16px 0 20px; }
.plan li { margin: 6px 0; }

/* auth */
.auth { max-width: 400px; margin: 60px auto 0; }
.auth h1 { font-size: 26px; margin: 0 0 6px; }
.auth .lead { color: var(--text2); margin-bottom: 26px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #D2D2D2; margin: 0 0 18px; }

/* rodapé */
footer { border-top: 1px solid #1E1E1E; padding: 30px 0 40px; color: var(--text3); font-size: 12.5px; }
footer .wrap { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
footer .langs { display: flex; gap: 14px; margin-left: auto; }
footer .langs a.on { color: var(--text); font-weight: 600; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav .links { display: none; }
  .nav form.search input { width: 160px; }
}

/* termos e privacidade */
.legal h2 { font-size: 16px; margin: 22px 0 6px; }
.legal h2:first-child { margin-top: 4px; }
.legal p { margin: 0 0 6px; }
