/* ===== Cadastro de NFC — Vulcan3D ===== */
.nfc-hero { padding: 64px 0 24px; text-align: center; }
.nfc-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); text-transform: uppercase; line-height: 1.05; letter-spacing: -.02em; margin: 10px 0 14px; }
.nfc-hero h1 span { color: var(--orange); }
.nfc-hero p { color: var(--muted); max-width: 760px; margin: 0 auto; }

.nfc-device { display: flex; gap: 14px; align-items: center; max-width: 860px; margin: 26px auto 0; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.nfc-device .nfc-device-icon { font-size: 2rem; flex-shrink: 0; }
.nfc-device strong { display: block; margin-bottom: 2px; }
.nfc-device p { color: var(--muted); font-size: .92rem; margin: 0; }
.nfc-device.ok { border-color: rgba(34,197,94,.55); }
.nfc-device.warn { border-color: rgba(255,138,34,.55); }

/* Sub-abas */
.nfc-tabs-wrap { position: sticky; top: 76px; z-index: 20; padding: 12px 0; background: linear-gradient(rgba(6,6,6,.92), rgba(6,6,6,.78)); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 30px; }
.nfc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.nfc-tab { flex-shrink: 0; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--muted); padding: 10px 16px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; font-weight: 800; cursor: pointer; transition: .2s; white-space: nowrap; font-family: inherit; }
.nfc-tab:hover { color: var(--text); border-color: rgba(255,90,0,.5); }
.nfc-tab.active { background: var(--orange); color: #111; border-color: var(--orange); }

.nfc-panel { display: none; padding: 34px 0 60px; animation: nfcFade .25s ease; }
.nfc-panel.active { display: block; }
@keyframes nfcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nfc-panel > h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; margin-bottom: 8px; }
.nfc-panel > h2 span { color: var(--orange); }
.nfc-lead { color: var(--muted); max-width: 820px; margin-bottom: 26px; }

.nfc-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.nfc-box h3 { text-transform: uppercase; letter-spacing: .05em; font-size: 1.02rem; margin-bottom: 10px; }
.nfc-box h4 { font-size: .98rem; margin: 18px 0 6px; color: var(--orange2); }
.nfc-box p, .nfc-box li { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.nfc-box ul, .nfc-box ol { margin: 6px 0 10px 22px; }
.nfc-box li { margin-bottom: 5px; }
.nfc-box strong { color: var(--text); }
.nfc-box code, .nfc-code-inline { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; font-size: .88em; color: var(--orange2); }
.nfc-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.nfc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .nfc-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .nfc-grid2, .nfc-grid3 { grid-template-columns: 1fr; } .nfc-box { padding: 20px 18px; } }

/* Passos */
.nfc-steps { counter-reset: nfcstep; display: grid; gap: 14px; }
.nfc-step { position: relative; padding: 18px 18px 18px 66px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.28); }
.nfc-step::before { counter-increment: nfcstep; content: counter(nfcstep); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #111; font-weight: 900; }
.nfc-step strong { display: block; margin-bottom: 4px; }
.nfc-step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Cartões de tipo de gravação */
.nfc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.nfc-type { text-align: left; cursor: pointer; border: 1px solid var(--line); background: rgba(0,0,0,.32); color: var(--text); border-radius: 16px; padding: 16px 14px; transition: .18s; font-family: inherit; }
.nfc-type:hover { border-color: rgba(255,90,0,.6); transform: translateY(-2px); }
.nfc-type.active { border-color: var(--orange); background: rgba(255,90,0,.13); box-shadow: 0 0 0 1px var(--orange) inset; }
.nfc-type .ic { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.nfc-type strong { display: block; font-size: .95rem; margin-bottom: 3px; }
.nfc-type small { color: var(--muted); font-size: .8rem; line-height: 1.35; display: block; }
.nfc-type-group { margin: 18px 0 8px; color: var(--orange2); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; }
.nfc-type-group:first-child { margin-top: 0; }
@media (max-width: 560px) {
  .nfc-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nfc-type { padding: 12px 10px; border-radius: 14px; }
  .nfc-type .ic { font-size: 1.35rem; margin-bottom: 4px; }
  .nfc-type strong { font-size: .86rem; }
  .nfc-type small { font-size: .74rem; }
}

/* Formulário */
.nfc-form { display: grid; gap: 14px; }
.nfc-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.nfc-field label .req { color: var(--orange); }
.nfc-field input, .nfc-field select, .nfc-field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.4); color: var(--text); font-size: 1rem; font-family: inherit; }
.nfc-field input[type=color] { padding: 4px; height: 48px; cursor: pointer; }
.nfc-field textarea { min-height: 90px; resize: vertical; }
.nfc-field input:focus, .nfc-field select:focus, .nfc-field textarea:focus { outline: none; border-color: var(--orange); }
.nfc-field .help { color: var(--muted); font-size: .8rem; margin-top: 5px; line-height: 1.45; }
.nfc-field.invalid input, .nfc-field.invalid select, .nfc-field.invalid textarea { border-color: #ef4444; }
.nfc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .nfc-row { grid-template-columns: 1fr; } }
.nfc-paste-wrap { display: flex; gap: 8px; }
.nfc-paste-wrap input { flex: 1; min-width: 0; }
.nfc-paste { flex-shrink: 0; min-height: 0; padding: 0 14px; font-size: .8rem; }
.nfc-check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .92rem; cursor: pointer; }
.nfc-check, .nfc-check span { text-transform: none; letter-spacing: normal; font-weight: 400; line-height: 1.5; }
.nfc-check strong { font-weight: 800; color: var(--text); }
.nfc-panel a:not(.btn), .nfc-check a { color: var(--orange2); }
.nfc-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }

/* Resumo / capacidade */
.nfc-preview { background: rgba(0,0,0,.45); border: 1px dashed rgba(255,138,34,.45); border-radius: 14px; padding: 14px; font-family: Consolas, "Courier New", monospace; font-size: .84rem; color: #ffd2b0; word-break: break-all; white-space: pre-wrap; max-height: 220px; overflow: auto; }
.nfc-cap { display: grid; gap: 10px; margin-top: 14px; }
.nfc-cap-row { display: grid; grid-template-columns: 82px 1fr 92px; gap: 10px; align-items: center; font-size: .85rem; }
.nfc-cap-row b { font-size: .85rem; }
.nfc-cap-bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.nfc-cap-bar i { display: block; height: 100%; border-radius: 99px; background: #22c55e; transition: width .3s; }
.nfc-cap-row.tight i { background: #f5b301; }
.nfc-cap-row.over i { background: #ef4444; }
.nfc-cap-row span { text-align: right; color: var(--muted); }
.nfc-cap-row.over span { color: #ef4444; font-weight: 700; }

/* Ações */
.nfc-actions { display: grid; gap: 10px; margin-top: 16px; }
.nfc-actions .btn { width: 100%; }
.btn-nfc { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #111; font-size: 1.05rem; min-height: 58px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: .82rem; }

/* Animação de aproximação */
.nfc-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.nfc-modal.open { display: flex; }
.nfc-modal-card { width: min(440px, 100%); max-height: 92vh; overflow: auto; background: #0e0e0e; border: 1px solid rgba(255,90,0,.45); border-radius: 24px; padding: 28px 22px; text-align: center; box-shadow: 0 0 80px rgba(255,90,0,.18); }
.nfc-modal-card h3 { text-transform: uppercase; margin: 14px 0 6px; font-size: 1.15rem; }
.nfc-modal-card p { color: var(--muted); font-size: .93rem; }
.nfc-tap { position: relative; width: 150px; height: 150px; margin: 6px auto; display: grid; place-items: center; }
.nfc-tap .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--orange); opacity: 0; animation: nfcRing 2s ease-out infinite; }
.nfc-tap .ring:nth-child(2) { animation-delay: .66s; }
.nfc-tap .ring:nth-child(3) { animation-delay: 1.33s; }
.nfc-tap .core { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.3rem; background: radial-gradient(circle, #ff8a22, #ff5a00 60%, #8e2bff); box-shadow: 0 0 40px rgba(255,90,0,.6); }
@keyframes nfcRing { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.nfc-tap.success .core { background: radial-gradient(circle, #4ade80, #16a34a); box-shadow: 0 0 40px rgba(34,197,94,.6); }
.nfc-tap.success .ring, .nfc-tap.error .ring { animation: none; opacity: 0; }
.nfc-tap.error .core { background: radial-gradient(circle, #f87171, #b91c1c); box-shadow: 0 0 40px rgba(239,68,68,.5); }
.nfc-counter { font-size: 2.6rem; font-weight: 900; color: var(--orange); line-height: 1; margin-top: 8px; }
.nfc-modal .btn { margin-top: 16px; width: 100%; }
@media (prefers-reduced-motion: reduce) { .nfc-tap .ring { animation: none; opacity: .5; } }

/* QR / handoff */
.nfc-qr { background: #fff; border-radius: 16px; padding: 14px; width: min(280px, 100%); margin: 14px auto; }
.nfc-qr svg, .nfc-qr img { width: 100%; height: auto; display: block; }

/* Avisos */
.nfc-alert { border-radius: 14px; padding: 14px 16px; margin: 14px 0; font-size: .92rem; line-height: 1.55; border: 1px solid; }
.nfc-alert.info { border-color: rgba(124,199,255,.45); background: rgba(21,101,192,.12); color: #cfe6ff; }
.nfc-alert.warn { border-color: rgba(245,179,1,.5); background: rgba(245,179,1,.10); color: #ffe7a3; }
.nfc-alert.danger { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.10); color: #fecaca; }
.nfc-alert.ok { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.10); color: #bbf7d0; }
.nfc-alert strong { color: inherit; }

/* Tabelas */
.nfc-table-wrap { overflow-x: auto; }
.nfc-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.nfc-table th, .nfc-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.nfc-table th { color: var(--orange2); text-transform: uppercase; font-size: .74rem; letter-spacing: .08em; }
.nfc-table td { color: var(--muted); }
.nfc-table td:first-child { color: var(--text); font-weight: 700; }

/* Leitura */
.nfc-record { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 10px; background: rgba(0,0,0,.3); }
.nfc-record header { all: unset; display: flex; justify-content: space-between; gap: 10px; color: var(--orange2); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.nfc-record .val { word-break: break-all; white-space: pre-wrap; font-size: .92rem; }

/* Modelos salvos */
.nfc-saved { display: grid; gap: 8px; }
.nfc-saved-item { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.28); }
.nfc-saved-item span { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nfc-saved-item div { display: flex; gap: 6px; flex-shrink: 0; }

/* Calculadora */
.nfc-calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.nfc-calc-out div { padding: 14px; border-radius: 14px; background: rgba(255,90,0,.10); border: 1px solid rgba(255,90,0,.35); }
.nfc-calc-out small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.nfc-calc-out b { font-size: 1.35rem; color: var(--orange2); }

/* Esquema do bolso */
.nfc-diagram { width: 100%; max-width: 560px; display: block; margin: 10px auto; }

/* FAQ */
.nfc-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 10px; }
.nfc-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.nfc-faq summary::-webkit-details-marker { display: none; }
.nfc-faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--orange); }
.nfc-faq details[open] summary::after { content: "–"; }
.nfc-faq details > div { padding: 0 18px 16px; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.nfc-faq details > div p { margin-bottom: 8px; }

/* Destaque do caminho */
.nfc-paths .nfc-box { position: relative; }
.nfc-paths .tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.tag-green { background: rgba(34,197,94,.18); color: #86efac; }
.tag-orange { background: rgba(255,90,0,.18); color: var(--orange2); }
.tag-blue { background: rgba(21,101,192,.25); color: #9fd0ff; }

.nfc-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #111; border: 1px solid var(--orange); color: var(--text); padding: 12px 18px; border-radius: 12px; z-index: 1100; opacity: 0; pointer-events: none; transition: .25s; font-size: .92rem; max-width: 90vw; text-align: center; }
.nfc-toast.show { opacity: 1; transform: translateX(-50%); }

/* Destaque na página inicial */
#nfc-home .cta { background: linear-gradient(135deg, #ff5a00, #ff8a22 55%, #8e2bff); }

/* ===== Página de visualização da TAG (tag.html) ===== */
.tagview { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.tagview-card { width: min(460px, 100%); background: var(--card); border: 1px solid rgba(255,90,0,.4); border-radius: 26px; padding: 28px 22px; text-align: center; box-shadow: var(--shadow); }
.tagview-card h1 { font-size: 1.5rem; text-transform: uppercase; margin: 10px 0 6px; }
.tagview-card p { color: var(--muted); }
.tagview-swatch { width: 92px; height: 92px; border-radius: 50%; margin: 6px auto 4px; border: 4px solid rgba(255,255,255,.15); box-shadow: 0 0 30px rgba(0,0,0,.5); }
.tagview-list { text-align: left; margin: 18px 0; display: grid; gap: 8px; }
.tagview-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.35); font-size: .93rem; }
.tagview-list span { color: var(--muted); }
.tagview-foot { margin-top: 18px; font-size: .8rem; color: var(--muted); }
.tagview-foot a { color: var(--orange2); }
