:root{
  --bg:#050505;
  --card:#0b0b0be6;
  --card2:#0a0a0a;
  --text:#e7eefc;              /* prata/azulado para leitura */
  --muted:#b9c4d8;             /* prata mais suave */
  --line:rgba(241, 211, 138, .18);
  --gold:#d6b15a;              /* dourado */
  --gold2:#f1d38a;             /* dourado claro */
  --blue:#4aa3ff;              /* toque de azul */
  --shadow: 0 18px 38px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 14px;
  --max: 1080px;
  --focus: 0 0 0 3px rgba(214,177,90,.22);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 800px at 18% 12%, rgba(214,177,90,.20), transparent 58%),
    radial-gradient(1000px 750px at 82% 8%, rgba(74,163,255,.12), transparent 58%),
    radial-gradient(900px 700px at 50% 96%, rgba(231,238,252,.08), transparent 60%),
    linear-gradient(180deg, #050505 0%, #070707 45%, #050505 100%);
  background-attachment: fixed; /* mantém o degradê fixo ao rolar */
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 800px at 18% 12%, rgba(214,177,90,.20), transparent 58%),
    radial-gradient(1000px 750px at 82% 8%, rgba(74,163,255,.12), transparent 58%),
    radial-gradient(900px 700px at 50% 96%, rgba(231,238,252,.08), transparent 60%),
    linear-gradient(180deg, #050505 0%, #070707 45%, #050505 100%);
  background-attachment: fixed; /* mantém o degradê fixo ao rolar */
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:24px}
@media (max-width:640px){.container{padding:18px}}

.header{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(5,5,5,.86), rgba(5,5,5,.58));
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  max-width:var(--max);
  margin:0 auto;
  padding:14px 24px;
}
@media (max-width:640px){.nav{padding:12px 18px}}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
  letter-spacing:.2px;
}
.brand-badge{display:none}
.brand small{display:block; color:var(--muted); font-weight:600; margin-top:2px; letter-spacing:.1px}

.navlinks{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.navlinks a{
  padding:10px 12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.28);
  border-radius: 999px;
  color: var(--text);
  font-weight:650;
  font-size: 14px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.navlinks a:hover{transform: translateY(-1px); border-color: rgba(214,177,90,.55)}
.navlinks a.active{background: rgba(214,177,90,.14); border-color: rgba(214,177,90,.55)}

.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
}
@media (max-width:900px){.grid{grid-template-columns:1fr}}
.card{
  background: linear-gradient(180deg, rgba(11,11,11,.86), rgba(10,10,10,.62));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .card-hd{padding:18px 18px 0}
.card .card-bd{padding:18px}
.card h1,.card h2{margin:0 0 6px}
.card h1{font-size: 26px}
.card h2{font-size: 18px}
.muted{color:var(--muted)}

.row{display:flex; gap:12px; align-items:center; flex-wrap:wrap}

.input{
  width:100%;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline:none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.input:focus{box-shadow: var(--focus); border-color: rgba(214,177,90,.65)}
label{display:block; font-weight:650; margin:12px 0 8px}
.help{font-size:13px; color: var(--muted); margin-top:6px}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.38);
  color: var(--text);
  font-weight:750;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, opacity .12s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(214,177,90,.55)}
.btn:active{transform: translateY(0px)}
.btn.primary{
  background: linear-gradient(135deg, rgba(214,177,90,.98), rgba(241,211,138,.98));
  border-color: transparent;
  color: #070707;
}
.btn.danger{
  background: rgba(255,107,107,.12);
  border-color: rgba(255,107,107,.35);
}
.btn:disabled{opacity:.6; cursor:not-allowed; transform:none}

.hr{height:1px; background: var(--line); margin:16px 0}

.imgbox{
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(0,0,0,.28);
  overflow:hidden;
}
.imgbox img{
  width:100%;
  display:block;
  margin:auto;
  aspect-ratio: auto;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}
.img-meta{padding:12px 12px 14px}
.img-meta .title{font-weight:800}
.img-meta .sub{margin-top:4px; color: var(--muted); font-size: 13px}

.toastwrap{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width: 360px;
}
@media (max-width:640px){.toastwrap{left:16px; right:16px; max-width:none}}

.toast{
  background: rgba(16,26,51,.92);
  border: 1px solid rgba(36,48,85,.65);
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: var(--shadow);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.dot{width:10px;height:10px;border-radius:999px;margin-top:6px}
.dot.ok{background: var(--ok)}
.dot.warn{background: var(--warn)}
.dot.bad{background: var(--bad)}
.toast b{display:block; margin-bottom:2px}
.toast p{margin:0; color: var(--muted); font-size: 13px}

.footer-actions{
  display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap;
  margin-top: 10px;
}

.formgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width:900px){.formgrid{grid-template-columns:1fr}}

.field{
  padding:14px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.field h3{margin:0 0 6px; font-size: 15px}
.field .hint{color: var(--muted); font-size: 13px; margin:0 0 10px}
.select, textarea{
  width:100%;
  padding:11px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline:none;
}
textarea{min-height: 92px; resize: vertical}
.select:focus, textarea:focus{box-shadow: var(--focus); border-color: rgba(214,177,90,.65)}

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  padding: 2px 8px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--muted);
}

/* Animations */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { transform: translateX(-40%); opacity:0; }
  35% { opacity:.55; }
  100% { transform: translateX(140%); opacity:0; }
}

.card{ animation: fadeUp .35s ease both; }
.navlinks a, .btn, .input, .select, textarea{
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn.primary{
  position: relative;
  overflow: hidden;
}
.btn.primary::after{
  content:"";
  position:absolute; top:-30%; left:-60%;
  width:50%; height:160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-40%);
  pointer-events:none;
  animation: shimmer 5.5s ease-in-out infinite;
}
.btn:hover{ filter: brightness(1.05); }
.card:hover{ border-color: rgba(214,177,90,.28); }

/* Tabs + model cards */
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.tab{
  appearance:none;
  border:1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--text);
  font-weight:800;
  padding:10px 14px;
  border-radius: 999px;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease, background .12s ease;
}
.tab:hover{ transform: translateY(-1px); filter: brightness(1.06); border-color: rgba(214,177,90,.35); }
.tab.active{
  background: rgba(214,177,90,.14);
  border-color: rgba(214,177,90,.55);
}

.models-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){ .models-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .models-grid{ grid-template-columns: 1fr;} }

.model-card{
  text-align:left;
  width:100%;
  padding:0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,11,11,.86), rgba(10,10,10,.62));
  box-shadow: var(--shadow);
  overflow:hidden;
  cursor:pointer;
  transform: translateZ(0);
  transition: transform .12s ease, border-color .12s ease, filter .12s ease;
  animation: fadeUp .35s ease both;
}
.model-card:hover{ transform: translateY(-2px); border-color: rgba(214,177,90,.35); filter: brightness(1.04); }
.model-card.selected{ border-color: rgba(214,177,90,.7); }
.model-img{
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid var(--line);
}
.model-img img{
  width:100%;
  display:block;
  aspect-ratio: auto;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}
.model-meta{ padding: 12px 12px 14px; }
.model-title{ font-weight: 900; letter-spacing:.2px; }
.model-sub{ margin-top:4px; color: var(--muted); font-size: 12px; word-break: break-all; }

.chip{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(214,177,90,.55);
  background: rgba(214,177,90,.16);
  color: var(--text);
}
.chip.ghost{
  border-color: var(--line);
  background: rgba(0,0,0,.25);
  color: var(--muted);
}


/* ===============================
   IMAGE PROPORTION RULE
   -------------------------------
   Todas as imagens mantêm a proporção original.
   O tamanho pode variar, mas nunca há crop.
   Usamos object-fit: contain e alturas máximas
   apenas para preservar layout.
   =============================== */


.btn-model{
  width:100%;
  margin-top:12px;
  justify-content:center;
}

.btn-model.selected{
  background: rgba(214,177,90,.18);
  border-color: rgba(214,177,90,.6);
  color: var(--text);
  cursor: default;
}
