/* =========================================================
   SENSI CALVA — estrutura do app (abas no topo, cartões, fluxo marca/modelo)
   Mantém a identidade: preto + vermelho, títulos itálicos, logo e banner.
   Carrega depois do style.css.
   ========================================================= */

/* ---------- área do cliente ---------- */
body.v-app .nav, body.v-gate .nav { }
.app { max-width: 520px; margin: 0 auto; padding: 18px 16px 36px; display: grid; gap: 14px; align-content: start; }
.pane { display: grid; gap: 12px; padding-top: 0; }
.pane[data-pane=sensi] { display: grid; padding-top: 0; }

/* abas no topo */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.seg .tabbtn { height: 56px; gap: 4px; border-radius: 17px; font-size: 11px; font-weight: 600; color: var(--faint); background: transparent; border: 1px solid transparent; }
.seg .tabbtn svg { width: 19px; height: 19px; }
.seg .tabbtn span::after { content: none; display: none; }
.seg .tabbtn[aria-selected=true] { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 10px 30px -12px var(--red-glow); }
.seg .tabbtn[aria-selected=true] svg { color: #fff; }
@media (hover: hover) { .seg .tabbtn:not([aria-selected=true]):hover { color: var(--text); } }

/* ---------- aparelho ---------- */
.box { padding: 18px 18px 16px; }
.bo-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); }
.bo-label svg { width: 14px; height: 14px; }
.bo-field {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--black);
  color: var(--text); font: 500 16px var(--body); outline: none; transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.bo-field::placeholder { color: #4b4b55; }
.bo-field:focus { border-color: var(--red-hi); box-shadow: 0 0 0 4px var(--red-soft); }
.bo-field:disabled { opacity: .4; cursor: not-allowed; }
select.bo-field {
  appearance: none; -webkit-appearance: none; cursor: pointer; color-scheme: dark; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3030' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
select.bo-field option { background: #0c0c0f; color: #fff; }

.gen-btn {
  appearance: none; width: 100%; height: 56px; border-radius: 9999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--red); border: 1px solid var(--red); color: #fff;
  font: 700 17px var(--display); font-style: italic; text-transform: uppercase; letter-spacing: .03em;
  transition: transform .16s var(--ease), background-color .2s, box-shadow .3s, opacity .2s;
}
.gen-btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) { .gen-btn:not(:disabled):hover { background: #f21a1a; box-shadow: 0 14px 44px -10px var(--red-glow); } }
.gen-btn:not(:disabled):active { transform: scale(.98); }
.gen-btn:disabled { background: var(--surface-2); border-color: var(--line-2); color: var(--faint); cursor: not-allowed; }

/* ---------- resultado / oficial ---------- */
.result { padding: 22px 18px 18px; margin-top: 0; }
.rhead { display: grid; justify-items: center; gap: 8px; margin-bottom: 18px; text-align: center; }
.rico { display: flex; gap: 10px; color: var(--red-hi); }
.rico svg { width: 18px; height: 18px; }
.rhead h2 { font-size: 22px; font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.rsub { color: var(--muted); font-size: 13.5px; }
.rsub:empty { display: none; }
.rline { display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--red); transform: skewX(-20deg); }
.rows { display: grid; gap: 8px; }
.rrow { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--red-hi); }
.rrow span { font: 500 15px var(--body); color: var(--muted); }
.rrow b { font: 800 26px var(--display); font-style: italic; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dbox { display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 84px; padding: 12px 8px; border-radius: 18px; background: var(--black); border: 1px solid var(--line-2); text-align: center; }
.dbox small { font: 600 11px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red-hi); }
.dbox b { font: 800 30px var(--display); font-style: italic; line-height: 1; }
.dbox b.sm { font-size: 19px; }
.badge-wrap { display: flex; justify-content: center; margin-top: 16px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9999px; background: var(--red-soft); border: 1px solid rgba(255, 48, 48, .35); font: 600 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--red-hi); }
.badge svg { width: 13px; height: 13px; }
.tips { margin-top: 16px; }
.actions { margin-top: 16px; }
.history-box { margin-top: 4px; display: grid; gap: 10px; }
.exp-foot { display: flex; justify-content: center; margin-top: 4px; }

/* ---------- login (card central) ---------- */
body.v-gate .page { padding-top: 0; }
#gate:not(.hidden) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; }
#gate .gate__card {
  width: min(100%, 330px); max-width: 330px; margin: 0; padding: 26px 24px 22px; text-align: center;
  background: rgba(12, 12, 15, .92); border: 1px solid var(--line-2); border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(255, 32, 32, .25);
}
.lock { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); border: 1px solid rgba(255, 48, 48, .4); color: var(--red-hi); }
.lock svg { width: 22px; height: 22px; }
.gate__logo { width: 150px; height: auto; margin: 0 auto; }
.logo__line { display: block; width: 56px; height: 3px; margin: 14px auto 22px; border-radius: 3px; background: var(--red); transform: skewX(-20deg); }
#gate .gate__card form { display: grid; gap: 12px; }
#gate .key-input { height: 52px; padding: 0 16px; border-radius: 16px; background: var(--black); border: 1px solid var(--line-2); text-align: left; font: 600 15px var(--body); font-style: normal; letter-spacing: .06em; text-transform: none; }
#gate .key-input::placeholder { font-weight: 400; letter-spacing: 0; }
#gate .gate__card p.gate__buy { margin: 16px 0 0; max-width: none; font-size: 13px; color: var(--faint); }
.gate__buy a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.gate__discord { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9999px; font-size: 13px; font-weight: 500; color: var(--faint); text-decoration: none; transition: color .2s; }
.gate__discord svg { width: 16px; height: 16px; }
@media (hover: hover) { .gate__discord:hover { color: var(--text); } }

/* ---------- otimização ---------- */
.opt:has(.switch[aria-checked=true]) .opt__txt b { color: #fff; }

@media (max-width: 380px) { .app { padding-inline: 12px; } }
