:root {
  --bg: #090b16;
  --panel: #111426;
  --card: #171b32;
  --muted: #a7abc3;
  --text: #f7f7fb;
  --purple: #6e2bf2;
  --orange: #ff8a00;
  --blue: #0aa4ff;
  --green: #20d47b;
  --danger: #ff5269;
  --border: rgba(255,255,255,.12);
  --shadow: 0 24px 70px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(110,43,242,.28), transparent 32%), radial-gradient(circle at top right, rgba(10,164,255,.18), transparent 28%), var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topbar {
  background: #050611;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
}
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar .container, header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .container { padding: 8px 0; }
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(9,11,22,.83);
  border-bottom: 1px solid var(--border);
}
header .container { padding: 14px 0; }
.logoWrap { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.logoWrap img { width: 168px; height: 74px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(110,43,242,.35)); }
.brandTitle { font-weight: 900; letter-spacing: .05em; line-height: 1; }
.brandSub { color: var(--muted); font-size: .75rem; margin-top: 4px; }
.searchBox { flex: 1; display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px 4px 16px; max-width: 520px; }
.searchBox input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); padding: 12px 8px; font-size: .98rem; }
.searchBox button, .btn { border: 0; cursor: pointer; border-radius: 999px; padding: 12px 18px; font-weight: 800; color: #080914; background: linear-gradient(135deg, var(--orange), #ffd369); }
.navActions { display: flex; align-items: center; gap: 10px; }
.btnSecondary { color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--border); }
.socialIcon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  transition: transform .18s ease, border .18s ease, background .18s ease;
}
.socialIcon:hover { transform: translateY(-2px); border-color: rgba(255,138,0,.6); background: rgba(255,255,255,.12); }
.socialIcon svg { width: 22px; height: 22px; fill: currentColor; }
.settingsInlineForm { grid-template-columns: 1fr 1fr auto; }

.hero { padding: 48px 0 26px; }
.heroGrid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 26px; }
.heroText { background: linear-gradient(135deg, rgba(23,27,50,.92), rgba(8,10,24,.8)); border: 1px solid var(--border); padding: 34px; border-radius: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.heroText::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 999px; background: rgba(10,164,255,.18); right: -80px; top: -70px; }
.kicker { color: #ffd369; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
h1 { font-size: clamp(2rem, 5vw, 4.3rem); line-height: .98; margin: 10px 0 14px; }
.heroText p { color: var(--muted); font-size: 1.06rem; max-width: 620px; }
.heroLogo { display: grid; place-items: center; min-height: 290px; border: 1px solid var(--border); background: rgba(255,255,255,.05); border-radius: 28px; box-shadow: var(--shadow); }
.heroLogo img { width: min(88%, 470px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { background: rgba(255,255,255,.08); border: 1px solid var(--border); color: var(--muted); padding: 9px 13px; border-radius: 999px; font-weight: 700; }
.sectionTitle { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 28px 0 18px; }
.sectionTitle h2 { margin: 0; font-size: 1.8rem; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 48px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; transition: transform .18s ease, border .18s ease; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.card:hover { transform: translateY(-5px); border-color: rgba(255,138,0,.55); }
.thumb { position: relative; aspect-ratio: 1 / 1; background: #0d1021; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .76rem; font-weight: 900; padding: 7px 10px; border-radius: 999px; color: #07100d; background: var(--green); box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.tag.deadline { background: linear-gradient(135deg, var(--orange), #ffd369); }
.cardBody { padding: 15px; }
.card h3 { min-height: 44px; margin: 0 0 10px; font-size: 1rem; }
.price { color: #fff; font-weight: 950; font-size: 1.35rem; margin-bottom: 12px; }
.card .btn { width: 100%; display: block; text-align: center; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 42px 0 60px; }
.detailImage { border-radius: 28px; overflow: hidden; border: 1px solid var(--border); background: var(--card); position: relative; }
.detailImage img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.detailPanel { border: 1px solid var(--border); border-radius: 28px; padding: 28px; background: rgba(17,20,38,.9); box-shadow: var(--shadow); }
.detailPanel h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.whats { background: linear-gradient(135deg, #16c66f, #9dffbd); display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
footer { color: var(--muted); padding: 26px 0; border-top: 1px solid var(--border); background: rgba(0,0,0,.18); }
.adminLayout { display: grid; grid-template-columns: 420px 1fr; gap: 22px; padding: 34px 0 60px; }
.panel { border: 1px solid var(--border); border-radius: 24px; padding: 22px; background: rgba(17,20,38,.92); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
label { color: var(--muted); font-weight: 800; font-size: .9rem; }
input, textarea, select { width: 100%; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; outline: none; font: inherit; }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adminList { display: grid; gap: 12px; }
.adminItem { display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.04); }
.adminItem img { width: 86px; height: 86px; object-fit: cover; border-radius: 14px; }
.adminBtns { display: flex; gap: 8px; }
.btnDanger { background: var(--danger); color: white; }
.btnBlue { background: linear-gradient(135deg, var(--blue), #9fe1ff); color: #07101a; }
.notice { padding: 12px 14px; border-radius: 16px; background: rgba(32,212,123,.13); border: 1px solid rgba(32,212,123,.3); color: #c9ffdf; margin-bottom: 14px; display: none; }
.empty { color: var(--muted); border: 1px dashed var(--border); border-radius: 18px; padding: 24px; text-align: center; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } .heroGrid, .detail, .adminLayout { grid-template-columns: 1fr; } header .container { flex-wrap: wrap; } .searchBox { order: 3; width: 100%; max-width: none; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .topbar .container { flex-direction: column; align-items: flex-start; } .adminItem { grid-template-columns: 70px 1fr; } .adminBtns { grid-column: 1 / -1; } .heroText { padding: 24px; } }

/* Ajustes da versão 2 */
.organicHero { padding-top: 34px; }
.heroCard {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 34%, rgba(10,164,255,.20), transparent 32%),
    radial-gradient(circle at 18% 26%, rgba(110,43,242,.28), transparent 30%),
    linear-gradient(135deg, rgba(23,27,50,.92), rgba(8,10,24,.82));
  box-shadow: var(--shadow);
}
.heroCard .heroText {
  width: min(720px, 100%);
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 2;
}
.heroCard .heroText::after { display: none; }
.heroMascot {
  position: absolute;
  right: clamp(-80px, -3vw, -24px);
  bottom: -42px;
  width: min(54vw, 590px);
  opacity: .28;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.45));
  pointer-events: none;
}
.chip.active, button.chip.active {
  color: #080914;
  background: linear-gradient(135deg, var(--orange), #ffd369);
  border-color: transparent;
}
button.chip { cursor: pointer; font: inherit; }
.categoryPill {
  width: fit-content;
  margin-bottom: 8px;
  color: #cfeeff;
  background: rgba(10,164,255,.14);
  border: 1px solid rgba(10,164,255,.28);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
}
.loginPage {
  min-height: calc(100vh - 38px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.loginCard { width: min(460px, 100%); }
.loginLogo { margin-bottom: 18px; }
.muted { color: var(--muted); }
.checkField { align-content: start; }
.checkLabel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
}
.checkLabel input { width: auto; accent-color: var(--orange); }
.categoriesPanel { grid-column: 1 / -1; }
.inlineForm { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 16px; }
.categoryList { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.categoryItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.categoryItem .adminBtns { flex-shrink: 0; }
@media (max-width: 980px) {
  .heroMascot { opacity: .18; width: 720px; right: -220px; }
  .categoryList { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .heroCard { min-height: auto; }
  .heroMascot { opacity: .12; right: -260px; bottom: -80px; }
  .inlineForm { grid-template-columns: 1fr; }
  .categoryList { grid-template-columns: 1fr; }
}

/* Ajustes da versão 3 */
.bannerHero {
  min-height: 430px;
  background: #050611;
}
.heroBanner {
  position: absolute;
  right: clamp(-110px, -5vw, -30px);
  bottom: -64px;
  width: min(70vw, 760px);
  max-height: 112%;
  object-fit: contain;
  opacity: .62;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.65));
  pointer-events: none;
}
.heroOverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,6,17,.96) 0%, rgba(5,6,17,.82) 43%, rgba(5,6,17,.35) 100%),
    radial-gradient(circle at 76% 28%, rgba(10,164,255,.18), transparent 33%),
    radial-gradient(circle at 23% 36%, rgba(110,43,242,.18), transparent 30%);
  z-index: 1;
}
.bannerHero .heroText { background: transparent; border: 0; box-shadow: none; z-index: 2; }
.favBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5,6,17,.78);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.favBtn.favorited { color: #ff5269; background: rgba(255,255,255,.93); }
.card { position: relative; }
.detailFav { top: 16px; right: 16px; }
.authTabs { display: flex; gap: 10px; margin-top: 10px; }
.chipDivider { width: 1px; min-height: 34px; background: var(--border); margin: 0 2px; }
.categoryInlineForm { grid-template-columns: 1fr auto auto auto; }
.subcategoryInlineForm { grid-template-columns: 260px 1fr auto auto; }
.compactCheck { min-height: 46px; white-space: nowrap; margin: 0; }
@media (max-width: 980px) {
  .bannerHero { min-height: 390px; }
  .heroBanner { width: 760px; right: -250px; opacity: .38; }
  .categoryInlineForm, .subcategoryInlineForm, .settingsInlineForm { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bannerHero { min-height: auto; }
  .heroBanner { width: 660px; right: -350px; opacity: .24; bottom: -90px; }
  .navActions { flex-wrap: wrap; }
}

.importInlineForm { grid-template-columns: 220px auto; }
@media (max-width: 560px) { .settingsInlineForm, .importInlineForm { grid-template-columns: 1fr; } }
