/* =========================================================
   Premium Dark UI — Calculadora de Precificação
   Arquivo: assets/css/styles.css
   ========================================================= */

/* ---- Reset / Base ---- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: rgba(255,255,255,0.92);

  /* fundo premium (mantém teu clima) */
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(34, 197, 94, .10), transparent 55%),
    linear-gradient(180deg, #07080c, #07080c);
}

/* ---- Layout ---- */
.wrap{
  width: min(1200px, calc(100% - 40px));
  margin: 36px auto 56px;
}

.top{
  margin-bottom: 18px;
}

.top h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.top p{
  margin: 0;
  max-width: 820px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

/* grid principal */
.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

/* ---- Cards ---- */
.card{
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.card h2{
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* subcard (seções internas) */
.subcard{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}

/* ---- Labels / Inputs ---- */
.lbl{
  display: block;
  font-size: 13px;
  margin: 12px 0 6px;
  color: rgba(255,255,255,0.78);
}

input, select{
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

input:focus, select:focus{
  border-color: rgba(124,92,255,0.65);
  box-shadow: 0 0 0 4px rgba(124,92,255,0.12);
}

.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px){
  .row{ grid-template-columns: 1fr; }
}

.note{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.70);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}

.mini{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* ---- Checkbox ---- */
.toggleRow{ margin-top: 10px; }
.chk{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  user-select: none;
}

.chk input{
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  accent-color: rgb(124, 92, 255);
}

/* ---- Buttons (Base) ---- */
.btn,
.btnOutline{
  border-radius: 14px;
  height: 48px;
  width: 100%;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 0;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, background .12s ease;
  user-select: none;
}

.btn{
  background: linear-gradient(90deg, rgba(124,92,255,1), rgba(34,197,94,1));
  color: rgba(0,0,0,0.92);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.btn:hover{ filter: brightness(1.06); transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); filter: brightness(0.98); }

.btnOutline{
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.btnOutline:hover{
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.btnOutline:active{ transform: translateY(0px); }

/* ---- TOP ACTIONS (Instagram + WhatsApp IGUAIS) ----
   Você já colocou inline styles no HTML.
   Mesmo assim, isso deixa os dois com o MESMO premium look
   se ambos usarem .btnOutline ou .btn (ou os dois .topBtn).
*/
.topBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  min-width: 220px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;

  /* glass premium */
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);

  color: rgba(255,255,255,0.92);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
}

.topBtn:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(124,92,255,0.35);
  transform: translateY(-1px);
}

.topBtn:active{
  transform: translateY(0px);
  filter: brightness(0.98);
}

/* opcional: versão com destaque (mesmo tamanho, só muda “glow”) */
.topBtnPrimary{
  background: linear-gradient(90deg, rgba(124,92,255,0.85), rgba(34,197,94,0.85);
  );
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(0,0,0,0.92);
}

.topBtnPrimary:hover{ filter: brightness(1.06); }

/* ---- Result list ---- */
.result{
  display: grid;
  gap: 14px;
}

/* ---- Marketplace boxes ---- */
.box{
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.boxTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ênfase do preço sugerido */
.priceHero{
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(420px 140px at 25% 0%, rgba(124,92,255,0.22), transparent 65%),
    radial-gradient(420px 140px at 85% 0%, rgba(34,197,94,0.16), transparent 65%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  margin: 10px 0 12px;
  text-align: center;
}

.priceLabel{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.65);
}

.priceValue{
  margin-top: 4px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.95);
}

/* linhas meta */
.meta{
  display: grid;
  gap: 10px;
}
.metaTight{ gap: 8px; }

.metaRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}

.metaRow strong{
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

/* util */
.hidden{ display: none !important; }

/* avançado */
.advItem{
  margin-top: 12px;
}
