/* Indicações — tema "bilhete de sorteio". Usa as cores do portal do cliente (--primary) e funciona no modo escuro. */
.ind { --ind-paper: var(--panel); --ind-ease: cubic-bezier(.2, .7, .2, 1); max-width: 1080px; font-weight: 400; }
.ind-head h1 { margin: 0 0 4px; font-weight: 800; letter-spacing: -.02em; }
.ind-head .small { font-size: .86rem; font-weight: 500; }

/* ---------- Abas ---------- */
.ind-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 16px 0 20px; overflow-x: auto; scrollbar-width: none; }
.ind-tabs::-webkit-scrollbar { display: none; }
.ind-tab { appearance: none; position: relative; background: none; border: 0; padding: 11px 14px; font: 600 .9rem/1 inherit; color: var(--muted); cursor: pointer; white-space: nowrap; display: flex; gap: 8px; align-items: center; border-radius: 10px 10px 0 0; transition: color .18s, background .18s; }
.ind-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ind-ease); }
.ind-tab:hover:not([disabled]) { color: var(--text); background: var(--primary-light); }
.ind-tab.on { color: var(--primary-dark); font-weight: 700; }
.ind-tab.on::after { transform: scaleX(1); }
.ind-tab[disabled] { cursor: default; opacity: .55; }
.ind-tab:focus-visible, .ind-btn:focus-visible, .ind-btn-sec:focus-visible, .ind-link:focus-visible, .ind-check input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ind-count { background: var(--primary); color: #fff; border-radius: 20px; font-size: .7rem; font-weight: 700; padding: 2px 8px; }
.ind-soon { font-size: .68rem; font-weight: 600; border: 1px dashed var(--border); border-radius: 20px; padding: 2px 8px; }

/* ---------- Faixa de situação ---------- */
.ind-status { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; border-radius: 18px; padding: 20px 24px; margin-bottom: 20px; border: 1px solid var(--border); background: var(--ind-paper); }
.ind-status .ind-big { font: 800 2.7rem/1 Poppins, sans-serif; min-width: 70px; text-align: center; color: var(--muted); letter-spacing: -.03em; }
.ind-status .ind-big span { font-size: 1.1rem; font-weight: 600; opacity: .7; letter-spacing: 0; }
.ind-status h2 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.ind-status p { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 500; line-height: 1.5; }
.ind-status.in { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: transparent; color: #fff; box-shadow: 0 14px 28px -16px var(--primary); }
.ind-status.in .ind-big, .ind-status.in p, .ind-status.in h2 { color: #fff; }
.ind-status.in p { opacity: .94; }
/* picote do bilhete à direita */
.ind-status.in::after { content: ""; position: absolute; top: 0; bottom: 0; right: 22px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 6px, transparent 6px 12px); }
.ind-status.in > div:last-child { padding-right: 24px; }

/* ---------- Como funciona ---------- */
.ind-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.ind-how div { font-size: .84rem; font-weight: 500; color: var(--muted); line-height: 1.5; padding-left: 14px; border-left: 3px solid var(--primary); }
.ind-how b { display: block; color: var(--text); font-size: .92rem; font-weight: 700; margin-bottom: 2px; }

.ind-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }

/* ---------- Formulário ---------- */
.ind-form { position: relative; background: var(--ind-paper); border: 1px solid var(--border); border-radius: 18px; padding: 24px 24px 20px; box-shadow: 0 10px 30px -22px rgba(20, 20, 25, .35); }
.ind-form.modo-edicao { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light), 0 10px 30px -22px rgba(20, 20, 25, .35); }
.ind-form h3 { margin: 0 0 4px; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.ind-form .ind-lead { margin: 0 0 16px; color: var(--muted); font-size: .86rem; font-weight: 500; line-height: 1.5; }
.ind-field { margin-bottom: 13px; }
.ind-field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 5px; }
.ind-field label i { font-style: normal; font-weight: 500; color: var(--muted); }
.ind-field input { padding: 11px 13px; border-radius: 11px; font-size: .92rem; font-weight: 500; transition: border-color .15s, box-shadow .15s, background .15s; }
.ind-field input:hover { border-color: var(--muted); }
.ind-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); background: var(--panel); }
.ind-field input::placeholder { color: var(--muted); opacity: .7; font-weight: 400; }
.ind-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ind-check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; font-weight: 500; color: var(--muted); line-height: 1.45; margin: 8px 0 16px; cursor: pointer; }
.ind-check input { width: auto; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }

.ind-acoes { display: flex; gap: 10px; }
.ind-btn { position: relative; overflow: hidden; flex: 1; justify-content: center; padding: 14px; font-size: .96rem; font-weight: 700; letter-spacing: .01em; border-radius: 13px; box-shadow: 0 10px 20px -10px var(--primary); transition: transform .18s var(--ind-ease), box-shadow .18s, filter .18s; }
.ind-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s var(--ind-ease); }
.ind-btn:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 16px 26px -12px var(--primary); filter: brightness(1.05); }
.ind-btn:hover:not([disabled])::after { transform: translateX(120%); }
.ind-btn:active:not([disabled]) { transform: translateY(0) scale(.985); box-shadow: 0 6px 12px -8px var(--primary); filter: brightness(.97); }
.ind-btn[disabled] { opacity: .65; cursor: wait; }
.ind-btn-sec { appearance: none; padding: 14px 18px; border-radius: 13px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 .92rem/1 inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.ind-btn-sec:hover { background: var(--bg); border-color: var(--muted); transform: translateY(-1px); }
.ind-btn-sec:active { transform: none; }

.ind-msg { font-size: .86rem; font-weight: 600; border-radius: 11px; padding: 11px 13px; margin-bottom: 14px; line-height: 1.45; }
.ind-msg.err { background: #fbe6e3; color: #8f261a; }
.ind-msg.ok { background: #e3f7ee; color: #146b3d; }
.ind-rules { font-size: .76rem; font-weight: 500; color: var(--muted); line-height: 1.55; margin-top: 16px; }
.ind-completo { background: linear-gradient(180deg, var(--primary-light), var(--ind-paper)); }

/* ---------- Bilhetes ---------- */
.ind-list h3 { margin: 2px 0 12px; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.ind-ticket { position: relative; display: flex; background: var(--ind-paper); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; transition: transform .2s var(--ind-ease), box-shadow .2s, border-color .2s; }
.ind-ticket:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -20px rgba(20, 20, 25, .5); border-color: var(--primary); }
.ind-ticket.editando { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.ind-ticket::before, .ind-ticket::after { content: ""; position: absolute; right: 95px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); z-index: 1; transition: border-color .2s; }
.ind-ticket:hover::before, .ind-ticket:hover::after, .ind-ticket.editando::before, .ind-ticket.editando::after { border-color: var(--primary); }
.ind-ticket::before { top: -10px; clip-path: inset(50% 0 0 0); }
.ind-ticket::after { bottom: -10px; clip-path: inset(0 0 50% 0); }
.ind-t-main { flex: 1; min-width: 0; padding: 15px 18px; }
.ind-t-main strong { display: block; font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.ind-t-main span { display: block; font-size: .84rem; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
.ind-t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.ind-t-foot small { font-size: .74rem; font-weight: 500; color: var(--muted); }
.ind-link { appearance: none; background: none; border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font: 700 .74rem/1.2 inherit; color: var(--primary-dark); cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.ind-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-1px); }
.ind-link:active { transform: none; }
.ind-t-stub { width: 104px; flex: none; border-left: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--primary-light); border-radius: 0 16px 16px 0; padding: 8px; }
.ind-t-stub small { font-size: .66rem; font-weight: 600; color: var(--muted); }
.ind-t-stub strong { font: 800 1.45rem/1.1 Poppins, sans-serif; color: var(--primary-dark); letter-spacing: .01em; }
.ind-t-stub em { font-style: normal; font-size: .66rem; font-weight: 700; margin-top: 4px; color: var(--primary-dark); opacity: .75; text-align: center; }
.ind-ticket.novo { animation: ind-emitir .7s var(--ind-ease); }
@keyframes ind-emitir { 0% { transform: translateY(-28px) rotate(-2deg); opacity: 0; } 60% { transform: translateY(4px) rotate(.4deg); opacity: 1; } 100% { transform: none; } }

/* vagas ainda não preenchidas (campanhas com limite) */
.ind-slot { display: flex; align-items: center; min-height: 82px; border: 2px dashed var(--border); border-radius: 16px; margin-bottom: 14px; padding: 14px 18px; color: var(--muted); }
.ind-slot b { display: block; font-size: .92rem; font-weight: 700; color: var(--text); opacity: .6; }
.ind-slot span { font-size: .8rem; font-weight: 500; }

.ind-empty { border: 2px dashed var(--border); border-radius: 16px; padding: 28px 18px; text-align: center; color: var(--muted); font-size: .88rem; font-weight: 500; line-height: 1.5; }
.ind-empty b { display: block; color: var(--text); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }

@media (max-width: 860px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-how { grid-template-columns: 1fr; gap: 12px; }
  .ind-row2 { grid-template-columns: 1fr; gap: 0; }
  .ind-form { padding: 20px 18px 18px; }
  .ind-status { padding: 16px; gap: 12px; }
  .ind-status .ind-big { font-size: 2.1rem; min-width: 50px; }
  .ind-status.in::after { right: 14px; }
  .ind-status.in > div:last-child { padding-right: 18px; }
  .ind-acoes { flex-direction: column-reverse; }
  .ind-btn-sec { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ind-ticket.novo { animation: none; }
  .ind *, .ind *::before, .ind *::after { transition: none !important; }
}
