/* Complementos ao Tailwind (CDN) — componentes reutilizados pelo app.js */
:root { --marinho: #0d1526; --ouro: #c9a227; color-scheme: light; }
html { -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }

.aba { padding: .6rem .9rem; font-size: .875rem; font-weight: 500; color: #94a3b8; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.aba:hover { color: #fff; }
.aba.ativa { color: #fff; border-color: var(--ouro); }
.aba-mobile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .4rem; font-size: .7rem; font-weight: 500; color: #64748b; }
.aba-mobile.ativa { color: var(--marinho); }
.aba-mobile.ativa svg { color: var(--ouro); }

.cartao { background: #fff; border-radius: 1rem; box-shadow: 0 1px 2px rgba(13,21,38,.06), 0 1px 3px rgba(13,21,38,.04); border: 1px solid #e2e8f0; }
.titulo-secao { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .6rem; padding: .55rem .95rem; font-size: .875rem; font-weight: 600; transition: background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ouro); }
.btn-primario { background: var(--marinho); color: #fff; }
.btn-primario:hover { background: #1c2a47; }
.btn-ouro { background: var(--ouro); color: var(--marinho); }
.btn-ouro:hover { background: #d6b343; }
.btn-claro { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.btn-claro:hover { background: #f8fafc; }
.btn-perigo { background: #fff; color: #b91c1c; border: 1px solid #fecaca; }
.btn-perigo:hover { background: #fef2f2; }
.btn-icone { padding: .45rem; border-radius: .5rem; color: #64748b; }
.btn-icone:hover { background: #f1f5f9; color: #0f172a; }

.campo { width: 100%; border-radius: .6rem; border: 1px solid #cbd5e1; background: #fff; padding: .55rem .75rem; font-size: 1rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.campo:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(201,162,39,.2); }
@media (min-width: 640px) { .campo { font-size: .9rem; } }
.campo.com-icone { padding-left: 2.25rem; }
.rotulo { display: block; margin-bottom: .25rem; font-size: .8rem; font-weight: 500; color: #475569; }

.segmentado { display: inline-flex; padding: 3px; border-radius: .7rem; background: #e2e8f0; }
.segmentado button { padding: .35rem .8rem; border-radius: .55rem; font-size: .8rem; font-weight: 600; color: #475569; }
.segmentado button.ativo { background: #fff; color: var(--marinho); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.selo { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .1rem .5rem; font-size: .7rem; font-weight: 600; line-height: 1.2rem; white-space: nowrap; }

.check { appearance: none; width: 1.35rem; height: 1.35rem; flex-shrink: 0; border: 2px solid #94a3b8; border-radius: 50%; cursor: pointer; display: grid; place-content: center; transition: background .15s, border-color .15s; }
.check:hover { border-color: var(--ouro); }
.check:checked { background: var(--ouro); border-color: var(--ouro); }
.check:checked::after { content: ''; width: .4rem; height: .7rem; border: solid var(--marinho); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201,162,39,.35); }

.evento-bloco { border-left: 4px solid var(--cor, var(--ouro)); background: color-mix(in srgb, var(--cor, var(--ouro)) 10%, #fff); }
.evento-bloco:hover { background: color-mix(in srgb, var(--cor, var(--ouro)) 18%, #fff); }

.modal { margin: auto; max-height: min(92dvh, 760px); }
.modal[open] { animation: subir .18s ease-out; }
@keyframes subir { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.toast { pointer-events: auto; animation: subir .2s ease-out; }
.pulsar { animation: pulsar 2s infinite; }
@keyframes pulsar { 0%,100% { box-shadow: 0 0 0 0 rgba(201,162,39,.6); } 50% { box-shadow: 0 0 0 5px rgba(201,162,39,0); } }
.destaque-novo { animation: destaque 2.2s ease-out; }
@keyframes destaque { 0% { background: #fbf7ea; box-shadow: 0 0 0 2px var(--ouro); } 100% { box-shadow: 0 0 0 0 transparent; } }

.esqueleto { background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: brilho 1.2s infinite; border-radius: .5rem; }
@keyframes brilho { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
