:root{
  --bg: #0b1020;
  --bg2:#0f1835;
  --card:#121a33cc;
  --card2:#111a34;
  --border:#23305c;
  --text:#e9ecff;
  --muted:#b7c0ffcc;
  --accent:#7c5cff;
  --accent2:#38bdf8;
  --good:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(124,92,255,.35), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(56,189,248,.25), transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

a{color:inherit; text-decoration:none}
.container{width:min(1100px, 92vw); margin:0 auto}
.topbar{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(14px);
  background: rgba(8,12,26,.65);
  border-bottom: 1px solid rgba(35,48,92,.6);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px}
.brand__logo{
  width:42px; height:42px; display:grid; place-items:center;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(56,189,248,.75));
  box-shadow: var(--shadow);
}
.brand__name{display:flex; flex-direction:column; line-height:1.05; font-weight:800; letter-spacing:.2px}
.brand__nameTop{font-weight:900; font-size:16px}
.brand__nameBottom{font-weight:800; font-size:15px; opacity:.95}
.brand__tagline{margin-left:12px; font-size:13px; color: var(--muted); max-width:320px}
@media (max-width: 720px){.brand__tagline{display:none}}

.nav{display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end}
.nav__link{
  padding:10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  transition: all .15s ease;
}
.nav__link:hover{
  color: var(--text);
  border-color: rgba(35,48,92,.75);
  background: rgba(18,26,51,.6);
}
.nav__sep{width:1px; height:26px; background: rgba(35,48,92,.8); margin:0 4px}
.nav__user{color: var(--muted); font-size: 14px}
.nav__badge{display:flex; gap:8px; align-items:center}
.badge{
  display:inline-grid; place-items:center;
  min-width:22px; height:22px; padding:0 6px;
  border-radius:999px;
  background: rgba(239,68,68,.9);
  font-weight:800; font-size:12px;
  box-shadow: 0 10px 25px rgba(239,68,68,.18);
}

.main{padding: 22px 0 34px}
.grid{display:grid; gap:16px}
.grid--2{grid-template-columns: 1.25fr .75fr}
@media (max-width: 900px){
  .grid--2{grid-template-columns: 1fr}
}

.card{
  border:1px solid rgba(35,48,92,.75);
  background: rgba(18,26,51,.72);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow:hidden;
}
.card__hd{padding:16px 16px 0}
.card__bd{padding:16px}
.card__ft{padding:0 16px 16px}
.card--soft{background: rgba(18,26,51,.55)}

.h1{font-size: 28px; margin:0 0 6px; letter-spacing:.2px}
.h2{font-size: 20px; margin:0 0 10px}
.muted{color: var(--muted)}
.small{font-size: 13px}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:7px 10px;
  border:1px solid rgba(35,48,92,.75);
  border-radius:999px;
  background: rgba(15,24,53,.5);
  color: var(--muted);
  font-size: 13px;
}
.pill--good{border-color: rgba(34,197,94,.35); color: rgba(187,255,210,.95)}
.pill--warn{border-color: rgba(245,158,11,.35); color: rgba(255,223,166,.95)}
.pill--new{border-color: rgba(56,189,248,.55); background: rgba(56,189,248,.12); color:#a5f3fc}
.pill--bad{border-color: rgba(239,68,68,.35); color: rgba(255,180,180,.95)}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px;
  border-radius: 14px;
  border:1px solid transparent;
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(56,189,248,.85));
  color:#091027;
  font-weight:800;
  cursor:pointer;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover{filter: brightness(1.06)}
.btn:active{transform: translateY(1px)}
.btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: rgba(35,48,92,.75);
}
.btn--danger{
  background: rgba(239,68,68,.92);
  color: #1a0b0b;
}
.btn--mini{padding:8px 10px; border-radius: 12px; font-weight:800; font-size: 13px}
.btn[disabled]{opacity:.6; cursor:not-allowed}

.input, textarea, select{
  width:100%;
  background: rgba(6,10,22,.6);
  border:1px solid rgba(35,48,92,.85);
  color: var(--text);
  padding:11px 12px;
  border-radius: 14px;
  outline:none;
}
textarea{min-height: 130px; resize: vertical}
.input:focus, textarea:focus, select:focus{
  border-color: rgba(124,92,255,.8);
  box-shadow: 0 0 0 4px rgba(124,92,255,.18);
}
.label{display:block; margin:0 0 8px; color: var(--muted); font-size: 13px}
.row{display:grid; gap:12px; grid-template-columns: 1fr 1fr}
@media (max-width: 700px){.row{grid-template-columns: 1fr}}

.table{width:100%; border-collapse: collapse}
.table th, .table td{
  padding:12px 10px;
  border-bottom: 1px solid rgba(35,48,92,.7);
  vertical-align: top;
}
.table th{color: var(--muted); font-size: 13px; text-align:left}

.list{display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:16px; align-items:start}
.article{
  display:grid; grid-template-columns: 1fr; gap:12px;
}

@media (max-width: 650px){.article{grid-template-columns: 1fr}}
.article__img{
  border-radius: 16px;
  border:1px solid rgba(35,48,92,.75);
  background: rgba(6,10,22,.5);
  overflow:hidden;
  aspect-ratio: 16/10;
}

.article__img img{width:100%; height:100%; object-fit: cover; display:block}
.article__title{margin:0 0 6px; font-weight:900; font-size: 18px}
.article__meta{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.article__price{font-weight:900; font-size: 18px}
.article__desc{margin:10px 0 0; color: var(--muted); line-height: 1.45; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}

.hero{
  padding: 18px 0 0;
}
.hero__card{
  border-radius: 24px;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(56,189,248,.10));
  border:1px solid rgba(35,48,92,.75);
  box-shadow: var(--shadow);
}
.hero__inner{padding:18px 18px 16px}
.hero__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}

.filters{display:grid; gap:12px}
.filters__grid{display:grid; gap:12px; grid-template-columns: 1.2fr .6fr .6fr}
@media (max-width: 900px){.filters__grid{grid-template-columns: 1fr}}

.toast{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border:1px solid rgba(35,48,92,.75);
  background: rgba(18,26,51,.72);
  color: var(--text);
}
.toast--good{border-color: rgba(34,197,94,.35)}
.toast--bad{border-color: rgba(239,68,68,.35)}
.toast--info{border-color: rgba(56,189,248,.35)}
.toast--warn{border-color: rgba(245,158,11,.35)}

.footer{padding: 18px 0 34px; border-top: 1px solid rgba(35,48,92,.6); background: rgba(8,12,26,.55)}
.footer__inner{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap}

.chat{
  display:flex;
  flex-direction:column;
  height: calc(100vh - 190px);
  min-height: 520px;
}
.chat__msgs{
  overflow:auto;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  border-top: 1px solid rgba(35,48,92,.65);
  border-bottom: 1px solid rgba(35,48,92,.65);
  background: rgba(6,10,22,.35);
}
.msg{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(35,48,92,.7);
  background: rgba(18,26,51,.72);
}
.msg--me{
  align-self:flex-end;
  background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(56,189,248,.18));
}
.msg__meta{font-size: 12px; color: var(--muted); margin-bottom: 6px}
.msg__body{white-space: pre-wrap; line-height:1.35}
.chat__form{display:flex; gap:10px; padding:14px; align-items:flex-end}
.chat__form .input{height:52px; min-height:52px; max-height:160px; resize:vertical}
.chat__form .btn{height:52px; padding:0 18px}
.chat__form textarea{min-height: 52px; max-height: 120px; resize: none}

/* Collapsible "Como funciona" */
.howto{
  margin: 10px 0 4px;
  border: 1px solid rgba(35,48,92,.75);
  border-radius: 16px;
  background: rgba(15,24,53,.35);
  overflow: hidden;
}
.howto summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 800;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.howto summary::-webkit-details-marker{ display:none; }
.howto summary:after{
  content: "▾";
  opacity: .85;
}
.howto[open] summary:after{ content:"▴"; }
.howto__body{
  padding: 0 14px 14px;
  border-top: 1px solid rgba(35,48,92,.6);
}
.howto__list{
  margin: 12px 0 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.howto__chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* Tiles */
.list a.card--soft{display:block; height:100%}
.list a.card--soft .card__bd{height:100%}
.list a.card--soft:hover{transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.35)}

@media (max-width: 520px){
  .list{grid-template-columns: 1fr}
}

/* Keep tiles same size even with 1–2 items */
.list > a.card{
  width: 100%;
  max-width: 420px;
  justify-self: start;
}
@media (max-width: 520px){
  .list{grid-template-columns: 1fr;}
  .list > a.card{max-width: none;}
}


/* Lightbox (visualizar fotos em tamanho maior) */
body.lb-open{ overflow:hidden; }
.lb{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.lb.is-open{ display:block; }
.lb__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}
.lb__dialog{
  position: relative;
  max-width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,30,.85);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
}
.lb__img{
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 24px);
  object-fit: contain;
  display:block;
}
.lb__close{
  position:absolute;
  top: 10px; right: 10px;
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.lb__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.lb__prev{ left: 10px; }
.lb__next{ right: 10px; }
.lb__counter{
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
}
.lb-thumb{
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}
.lb-thumb:focus-visible{
  outline: 2px solid rgba(96,165,250,.85);
  outline-offset: 2px;
  border-radius: 18px;
}


/* Thumbnails grid in article page */
.lb-grid{
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
@media (min-width: 980px){
  .lb-grid{ grid-template-columns: repeat(3, 1fr); }
}


/* ===== Netflix-style homepage ===== */
.heroSpot{
  position:relative;
  border-radius:26px;
  padding:38px 34px;
  min-height: 280px;
  background: radial-gradient(1100px 420px at 15% 20%, rgba(110,130,255,.35), rgba(0,0,0,0) 60%),
              radial-gradient(900px 360px at 70% 10%, rgba(120,255,210,.18), rgba(0,0,0,0) 55%),
              linear-gradient(135deg, rgba(18,22,52,.96), rgba(10,14,30,.96));
  background-size:cover;
  background-position:center;
  overflow:hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.heroSpot__shade{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(6,9,18,.92) 0%, rgba(6,9,18,.78) 45%, rgba(6,9,18,.25) 75%, rgba(6,9,18,.05) 100%);
}
.heroSpot__inner{
  position:relative;
  max-width: 720px;
}
.heroSpot__kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
  color:#cdd3ff;
  font-weight:700;
  letter-spacing:.02em;
  font-size:12px;
}
.heroSpot__title{
  margin:14px 0 10px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height:1.08;
  letter-spacing:-.02em;
}
.heroSpot__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin: 8px 0 14px 0;
}
.heroSpot__desc{
  color: rgba(230,235,255,.88);
  max-width: 640px;
  line-height:1.45;
  margin-top: 6px;
}
.heroSpot__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.heroSpot--empty{ min-height: 220px; }

.filtersWrap{
  margin-top:12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.filtersWrap > summary{
  cursor:pointer;
  padding: 12px 14px;
  list-style:none;
  font-weight:700;
}
.filtersWrap > summary::-webkit-details-marker{ display:none; }
.filtersWrap__body{ padding: 0 14px 14px 14px; }

.n-rows{ display:flex; flex-direction:column; gap:18px; }

.n-row__hd{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 4px 2px;
}
.n-row__title{
  margin:0;
  font-size: 18px;
  letter-spacing:.01em;
}
.n-row__ctrl{ display:flex; gap:8px; }
.rowBtn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  font-size:22px;
  line-height: 0;
}
.rowBtn:hover{ background: rgba(255,255,255,.10); }
.rowBtn--ghost{ background: rgba(255,255,255,.04); }

.n-row__scroll{
  display:flex;
  gap:14px;
  overflow-x:auto;
  overflow-y: visible;
  padding: 10px 6px 12px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.n-row__scroll::-webkit-scrollbar{ height: 10px; }
.n-row__scroll::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.10); border-radius: 999px; }
.n-row__scroll::-webkit-scrollbar-track{ background: rgba(255,255,255,.03); border-radius: 999px; }

.tilesGrid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.list--tiles{ grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.n-tile{
  position:relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  padding: 12px 12px 14px 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.n-tile--row{
  flex: 0 0 240px;
  scroll-snap-align:start;
  padding: 10px;
}
.n-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(120,140,255,.28);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
}
.n-tile__link{ text-decoration:none; color:inherit; display:block; }
.n-tile__img{
  position:relative;
  border-radius: 14px;
  overflow:hidden;
  height: 120px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
}
.n-tile--row .n-tile__img{ height: 130px; }
.n-tile__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.n-tile__nofoto{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

.n-tile__meta{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px;
}

.n-tile__title{
  margin-top:8px;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.2;
}
.n-tile__price{
  margin-top:6px;
  font-weight:900;
  font-size: 18px;
}

.n-tile__overlay{
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(8,10,18,.86);
  border: 1px solid rgba(255,255,255,.12);
  opacity: 0;
  transform: translateY(8px);
  pointer-events:none;
  transition: opacity .15s ease, transform .15s ease;
}
.n-tile:hover .n-tile__overlay{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
.n-tile__overlayTitle{
  font-weight:900;
  margin-bottom:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.n-tile__overlayPrice{
  font-weight:800;
  color: rgba(255,255,255,.86);
  margin-bottom:10px;
}

.n-tile__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.btn--sm{
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 12px;
}

.fav-btn.is-active{
  border-color: rgba(80,220,170,.45) !important;
  background: rgba(80,220,170,.16) !important;
  color: rgba(230,255,245,.95) !important;
}
.fav-btn.is-loading{
  opacity:.7;
  pointer-events:none;
}

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(10,12,20,.92);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.94);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  opacity:0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
  max-width: 92vw;
  text-align:center;
}
.toast.is-show{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}
.toast--ok{ border-color: rgba(80,220,170,.35); }
.toast--warn{ border-color: rgba(255,160,80,.35); }

@media (max-width: 720px){
  .heroSpot{ padding: 26px 18px; border-radius: 20px; }
  .heroSpot__shade{
    background: linear-gradient(180deg, rgba(6,9,18,.92) 0%, rgba(6,9,18,.75) 55%, rgba(6,9,18,.30) 100%);
  }
  .n-row__ctrl{ display:none; }
  .n-tile--row{ flex-basis: 210px; }
}


/* Brand tagline */
.brand__tagline{display:block;font-size:12px;opacity:.85;margin-top:2px;line-height:1.2;}

.howto__note{margin:10px 0 0; color: var(--muted); font-size:14px; line-height:1.4}

.check{display:flex; gap:10px; align-items:flex-start; color: var(--muted); font-size:14px; line-height:1.35}
.check input{margin-top:3px}
.terms{margin-top:6px}
.terms a{color: var(--text); text-decoration: underline}

.prose p{margin:0 0 12px}
.prose strong{color: var(--text)}
