/* FOX Mobile — estilos globais (mobile-first) */
:root {
  --fox: #ff7a1a;
  --fox-2: #ff9d4d;
  --fox-deep: #e85d04;
  --blue: #29b6ff;
  --blue-2: #5ecbff;
  --bg: #0a0d12;
  --bg-2: #141922;
  --card: #171d27;
  --card-2: #1d2531;
  --line: #2a323d;
  --line-glow: rgba(255, 122, 26, .35);
  --txt: #e8edf3;
  --txt-mut: #93a0b0;
  --ok: #2ecc71;
  --err: #ff5d5d;
  --warn: #f1c40f;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Ícones SVG inline */
.ic { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
i[data-icon], [data-icon] { display: inline-flex; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Fundo animado: faíscas laranja + brilho azul, igual à logo */
.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(620px 420px at 50% -8%, rgba(255, 122, 26, .22), transparent 68%),
    radial-gradient(520px 520px at 112% 8%, rgba(41, 182, 255, .12), transparent 60%),
    radial-gradient(480px 480px at -10% 90%, rgba(255, 122, 26, .10), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: .75; }
  to   { opacity: 1; }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  animation: cardIn .45s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ── Marca ────────────────────────────────────────────── */
.brand { text-align: center; margin-bottom: 26px; }
.logo {
  width: 108px; height: 108px; object-fit: cover;
  margin: 0 auto 12px; display: block;
  border-radius: 24px;
  border: 2px solid rgba(255, 122, 26, .4);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .08),
              0 10px 30px rgba(255, 122, 26, .25),
              0 0 40px rgba(41, 182, 255, .15);
  animation: logoFloat 4s ease-in-out infinite alternate;
}
@keyframes logoFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}
.logo-fallback {
  width: 108px; height: 108px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; background: linear-gradient(135deg, var(--fox), var(--fox-2));
  border-radius: 24px; box-shadow: 0 10px 30px rgba(255, 122, 26, .3);
}
.brand h1 {
  font-size: 30px; letter-spacing: 1px; font-weight: 800;
  background: linear-gradient(135deg, var(--fox-2) 0%, var(--fox) 45%, var(--blue) 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 122, 26, .2);
}
.sub { color: var(--txt-mut); font-size: 14px; margin-top: 4px; }

/* ── Formulário ───────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--txt-mut); display: flex; align-items: center; gap: 6px; }

input, select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 14px 15px;
  border-radius: 13px;
  font-size: 16px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus, select:focus {
  border-color: var(--fox);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .18);
  background: var(--card-2);
}
input::placeholder { color: #5a6676; }
select:disabled, input:disabled { opacity: .45; cursor: not-allowed; }

/* Campo válido (whatsapp) */
input.valido { border-color: var(--ok); }
input.valido:focus { box-shadow: 0 0 0 3px rgba(46, 204, 113, .18); }
.field-check {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ok); font-weight: 700; opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.field-wrap { position: relative; }
.field-wrap input { width: 100%; }
input.valido ~ .field-check { opacity: 1; }

.hint { font-size: 12px; color: var(--txt-mut); }

/* ── Select pesquisável (combobox) ────────────────────── */
.combo { position: relative; }
.combo-input {
  cursor: pointer;
}
.combo-input::after { content: ''; }
.combo-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--txt-mut); pointer-events: none; transition: transform .2s; font-size: 12px;
}
.combo.aberto .combo-arrow { transform: translateY(-50%) rotate(180deg); }
.combo-lista {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 13px; max-height: 240px; overflow-y: auto;
  z-index: 20; box-shadow: var(--shadow);
  display: none;
}
.combo.aberto .combo-lista { display: block; animation: fade .15s; }
.combo-opt {
  padding: 12px 15px; cursor: pointer; font-size: 15px;
  border-bottom: 1px solid var(--line); transition: background .12s;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.combo-opt:last-child { border-bottom: none; }
.combo-opt:hover, .combo-opt.ativo { background: rgba(255, 122, 26, .12); }
.combo-opt.ocupado { opacity: .45; cursor: not-allowed; }
.combo-opt.ocupado:hover { background: transparent; }
.combo-opt small { color: var(--txt-mut); font-size: 11px; }
.combo-vazio { padding: 14px; text-align: center; color: var(--txt-mut); font-size: 13px; }

.check {
  display: flex; align-items: center; gap: 11px;
  font-size: 14px; color: var(--txt); cursor: pointer;
  user-select: none; padding: 2px 0;
}
.check input { accent-color: var(--fox); width: 19px; height: 19px; flex-shrink: 0; }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--fox-deep), var(--fox) 55%, var(--fox-2));
  color: #1a1206; font-weight: 800; font-size: 16px; letter-spacing: .3px;
  border: none; padding: 15px; border-radius: 13px; cursor: pointer;
  transition: transform .1s, filter .18s, box-shadow .18s;
  box-shadow: 0 8px 24px rgba(255, 122, 26, .3);
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 10px 30px rgba(255, 122, 26, .4); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.btn.ghost {
  background: transparent; color: var(--fox); border: 1px solid var(--fox);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 122, 26, .08); }
/* Spinner dentro do botão */
.btn .spin {
  display: inline-block; width: 16px; height: 16px; vertical-align: -3px;
  border: 2px solid rgba(26, 18, 6, .35); border-top-color: #1a1206;
  border-radius: 50%; animation: spin .7s linear infinite; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.privacy {
  font-size: 12px; color: var(--txt-mut); line-height: 1.6;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 13px 14px; border-radius: 13px;
}

/* ── Sucesso ──────────────────────────────────────────── */
.sucesso { text-align: center; padding: 16px 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.check-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 204, 113, .25), rgba(46, 204, 113, .08));
  color: var(--ok); display: flex; align-items: center; justify-content: center;
  font-size: 46px; font-weight: 700;
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1);
  box-shadow: 0 0 0 6px rgba(46, 204, 113, .08);
}
@keyframes pop {
  0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); }
}
.sucesso h2 { font-size: 24px; }
.sucesso p { color: var(--txt-mut); line-height: 1.55; }

.foot { text-align: center; margin-top: 24px; }
.foot a { color: var(--txt-mut); font-size: 13px; text-decoration: none; transition: color .15s; }
.foot a:hover { color: var(--fox); }

.hidden { display: none !important; }

@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Toasts ───────────────────────────────────────────── */
.toasts {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 10px;
  width: calc(100% - 32px); max-width: 420px; pointer-events: none;
}
.toast {
  background: var(--card-2); border: 1px solid var(--line);
  border-left: 4px solid var(--fox);
  border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--txt);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s cubic-bezier(.2, .8, .2, 1);
  pointer-events: auto;
}
.toast.saindo { animation: toastOut .3s forwards; }
.toast.ok  { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
.toast.info{ border-left-color: var(--blue); }
.toast .ico { font-size: 18px; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }

/* Desktop ampliado */
@media (min-width: 600px) {
  .card { padding: 40px 36px; }
}
