:root{
  --bg:#070A0F;
  --card:#0C111B;
  --line:rgba(255,255,255,.08);
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.70);
  --muted2:rgba(234,240,255,.55);
  --gold:#D7B46A;
  --gold2:#B88F3A;
  --shadow: 0 14px 50px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1000px 500px at 15% 5%, rgba(215,180,106,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(103,125,255,.18), transparent 60%),
    var(--bg);
  color:var(--text);
}

.container{max-width:1120px; margin:0 auto; padding:0 18px}

/* =========================
   TOPBAR (seu HTML novo)
   ========================= */
.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(7,10,15,.60);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}
.brand-badge{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, rgba(215,180,106,.30), rgba(215,180,106,.10));
  border:1px solid rgba(215,180,106,.35);
  font-weight:900;
  letter-spacing:.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  color:#111;
}
.brand-text strong{display:block; font-weight:900; letter-spacing:.2px}
.brand-text small{display:block; font-size:12px; color:var(--muted2); margin-top:2px}

.topnav{display:flex; gap:10px; align-items:center}
.navlink{
  padding:10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  white-space:nowrap;
}
.navlink:hover{ background: rgba(255,255,255,.10); }
.navlink.active{
  border-color: rgba(215,180,106,.35);
  box-shadow: 0 0 0 3px rgba(215,180,106,.10);
}

.top-actions{display:flex; gap:10px; align-items:center}

/* Responsivo do header */
@media (max-width: 860px){
  .topbar-inner{flex-wrap:wrap}
  .topnav{
    width:100%;
    overflow:auto;
    padding-bottom:2px;
  }
  .top-actions{
    width:100%;
    justify-content:flex-end;
  }
}

/* =========================
   BOTÕES / LINKS
   ========================= */
a{color:inherit}
.btn{
  appearance:none; border:none; cursor:pointer;
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.2px;
  transition:.15s ease;
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
}
.btn:disabled{opacity:.55; cursor:not-allowed}
.btn-primary{
  color:#111;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  box-shadow: 0 12px 32px rgba(215,180,106,.20);
}
.btn-primary:hover{transform: translateY(-1px)}
.btn-ghost{
  color:var(--text);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.btn-ghost:hover{background: rgba(255,255,255,.09)}

.jump{
  display:inline-block;
  margin-top:14px;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px solid rgba(215,180,106,.28);
}
.jump:hover{color:var(--text); border-bottom-color:rgba(215,180,106,.45)}

/* =========================
   HERO (seu HTML novo)
   ========================= */
.hero{
  padding:46px 0 18px;
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){
  .hero{grid-template-columns:1fr}
}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(215,180,106,.28);
  background: rgba(215,180,106,.08);
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}
.hero h1{
  margin:14px 0 0;
  font-size:42px;
  line-height:1.08;
  letter-spacing:-.6px;
}
@media (max-width: 520px){
  .hero h1{font-size:34px}
}
.sub{
  margin:12px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}
.fine{
  font-size:12px;
  color:var(--muted2);
  margin-top:12px;
}
.muted{color:var(--muted)}

.cards3{
  margin-top:16px;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width: 860px){
  .cards3{grid-template-columns:repeat(3, minmax(0,1fr))}
}
.mini-card{
  padding:14px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.mini-title{font-weight:900}
.mini-sub{margin-top:6px; color:var(--muted); font-size:13px; line-height:1.45}

.hero-right .hero-card{
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding:18px;
}
.hero-card-title{font-weight:900; font-size:14px}
.checklist{
  margin:10px 0 0 18px;
  padding:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.hero-card-note{
  margin-top:12px;
  padding:12px;
  border-radius: 14px;
  border:1px solid rgba(215,180,106,.22);
  background: rgba(215,180,106,.08);
  color:var(--muted);
  font-size:12px;
}

/* =========================
   PANELS / CARDS (seu HTML novo)
   ========================= */
.panel{
  margin-top:16px;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding:18px;
}
.panel-head h2{
  margin:0;
  font-size:18px;
  letter-spacing:-.2px
}
.panel-head p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px
}

/* =========================
   FORM (seu HTML novo)
   ========================= */
.form-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 720px){
  .form-grid{grid-template-columns:1fr}
}

.field label{
  display:block;
  font-weight:800;
  font-size:12px;
  color:rgba(234,240,255,.88);
  margin-bottom:6px;
}
.field input, .field select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(7,10,15,.45);
  color:var(--text);
  outline:none;
}
.field input:focus, .field select:focus{
  border-color: rgba(215,180,106,.45);
  box-shadow: 0 0 0 4px rgba(215,180,106,.10);
}
.hint{
  margin-top:6px;
  font-size:12px;
  color:var(--muted2);
  line-height:1.35;
}
.field-wide{grid-column:1 / -1}

.actions{
  grid-column:1 / -1;
  display:flex;
  gap:10px;
  margin-top:4px;
  flex-wrap:wrap;
}
@media (max-width: 600px){
  .actions .btn{width:100%}
}

/* =========================
   RESULT LOCKCARD (seu HTML novo)
   ========================= */
.lockcard{
  margin-top:12px;
  border-radius:18px;
  border:1px solid rgba(215,180,106,.22);
  background: linear-gradient(180deg, rgba(215,180,106,.10), rgba(0,0,0,.12));
  padding:14px;
}
.locktitle{font-weight:900; font-size:14px}
.locksub{margin-top:6px; color:var(--muted); font-size:13px; line-height:1.45}

.lockgrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap:12px;
  align-items:end;
}
@media (max-width: 720px){
  .lockgrid{grid-template-columns:1fr}
}

.hidden{display:none !important}

/* =========================
   SUMMARY + TABLES (seu HTML novo)
   ========================= */
.resultwrap{margin-top:14px}

.summary-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
@media (max-width: 900px){
  .summary-grid{grid-template-columns:1fr}
}
.summary-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding: 14px;
}
.summary-label{font-size:12px; color:var(--muted2); margin-bottom:8px}
.summary-value{
  font-size:28px;
  font-weight:900;
  letter-spacing:-.02em;
  color:#fff;
}
.summary-note{margin-top:8px; font-size:12px; color:var(--muted2)}

.table-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding: 14px;
  margin-top: 14px;
}
.table-title{font-weight:800; margin-bottom:10px}

.table-scroll{width:100%; overflow:auto}
.table{
  width:100%;
  border-collapse:collapse;
  min-width: 520px;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  font-size:14px;
}
.table thead th{
  text-align:left;
  font-size:12px;
  color:var(--muted2);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.table tfoot td{
  border-bottom:none;
  padding-top:12px;
}
.t-right{text-align:right}

/* Blocos de detalhes (inseridos no #detailBlocks) */
#detailBlocks .table-card{margin-top:14px}

/* CTA */
.cta-row{display:flex; justify-content:center; margin-top:16px}
.btn-wide{width:min(520px, 100%); padding:14px 16px; border-radius:16px}
.center{text-align:center}

/* =========================
   MODAIS (unificado, sem duplicar)
   ========================= */
.modal-bg{
  position:fixed; inset:0;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.55);
  z-index:80;
  padding:16px;
}
.modal-bg.show{display:grid}
.modal{
  width: min(720px, 100%);
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(20,26,40,.98), rgba(10,14,22,.98));
  box-shadow: 0 24px 90px rgba(0,0,0,.55);
  padding:16px;
}
.modal-head{display:flex; justify-content:space-between; align-items:flex-start; gap:12px}
.modal-title{font-weight:900; font-size:18px}
.modal-sub{color:var(--muted2); font-size:12px; margin-top:4px}
.modal-body{margin-top:14px}
.iconbtn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
.iconbtn:hover{background: rgba(255,255,255,.10)}

/* =========================
   FOOTER (seu HTML novo)
   ========================= */
.footer{
  margin-top:18px;
  border-top:1px solid var(--line);
  background: rgba(7,10,15,.55);
  backdrop-filter: blur(10px);
  padding:16px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.foot-name{font-weight:900}
.foot-name span{color:var(--gold)}
.foot-sub{font-size:12px; color:var(--muted2); margin-top:4px}

/* =========================
   TOAST (se existir no admin ou futuro)
   ========================= */
.toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:18px;
  background: rgba(0,0,0,.70);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  font-weight:800;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
  z-index:90;
}
.toast.show{opacity:1}
