/* Vegas Mobile — extensões do app (schedule, gales, toasts, unlock) */

:root {
  --font-mono: 'Consolas', 'Courier New', monospace;
  --radius: var(--radius-md);
}

/* ── Botões extras ── */
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-secondary);
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(18, 199, 122, 0.1);
  color: var(--text-primary);
}

.btn-glow,
.btn-shine { pointer-events: none; }

/* ── Toasts ── */
.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--vegas);
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.25s ease;
}
.toast.success { border-left-color: var(--green); color: var(--green); }
.toast.error   { border-left-color: var(--red); color: var(--red); }
.toast.warn    { border-left-color: var(--amber); color: var(--amber); }
.toast.info    { border-left-color: var(--blue); color: var(--blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Gale steps → estilo pipeline Template 1 ── */
.gale-steps {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 4px 0 8px;
  gap: 0;
}
.gale-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  max-width: none;
}
.gale-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 5px;
  left: calc(50% + 8px);
  width: calc(100% - 16px);
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.gale-step.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--vegas), var(--amber));
}
.gale-step span {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  order: 2;
}
.gale-step::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--border-glass-strong);
  transition: all 0.35s ease;
  order: 1;
}
.gale-step.active::before {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 14px rgba(243, 156, 18, 0.65);
  transform: scale(1.15);
}
.gale-step.active span { color: var(--amber); }
.gale-step.done-win::before {
  background: rgba(18, 199, 122, 0.55);
  border-color: var(--vegas);
}
.gale-step.done-loss::before {
  background: rgba(231, 76, 60, 0.45);
  border-color: var(--red);
}

.field-hint { font-size: 11px; margin-top: 4px; display: block; }
.tie-switch-row { align-items: flex-start; }
.tie-switch-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.tie-switch-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 72px;
  text-align: right;
}
.tie-switch-status.is-on { color: var(--vegas-bright); }
.tie-extra-fields {
  padding-left: 12px;
  border-left: 2px solid rgba(18, 199, 122, 0.35);
}

.road-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 8px;
  font-size: 12px;
}

/* ── Schedule ── */
.panel-schedule { margin-bottom: 0; }
.schedule-head-actions { display: flex; align-items: center; gap: 10px; }
.badge-accent {
  background: rgba(18, 199, 122, 0.15);
  color: var(--vegas-bright);
  border: 1px solid rgba(18, 199, 122, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.schedule-editor { display: flex; flex-direction: column; gap: 12px; }
.schedule-format-hint {
  font-size: 12px;
  line-height: 1.55;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--vegas);
}
.schedule-format-hint code {
  font-family: var(--font-mono);
  background: rgba(18, 199, 122, 0.12);
  color: var(--vegas-bright);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}
.schedule-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 13px;
}
.schedule-editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.schedule-preview { display: flex; flex-direction: column; gap: 14px; }
.schedule-preview-info {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.schedule-entries-list { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule-entry-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
}
.sch-time { font-family: var(--font-mono); font-weight: 700; }
.color-blue   { color: var(--color-player-bright); }
.color-red    { color: var(--color-banker-bright); }
.color-yellow { color: var(--color-tie-bright); }
.schedule-live {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}
.schedule-live-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.schedule-live-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.schedule-live-dot.dot-active {
  background: var(--vegas);
  box-shadow: 0 0 8px var(--vegas-glow);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
.schedule-live-dot.dot-waiting { background: var(--blue); opacity: 0.7; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.schedule-fired { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-fired-key {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(18, 199, 122, 0.08);
  border: 1px solid rgba(18, 199, 122, 0.25);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 20px;
}
.sch-fired-check { font-style: normal; font-weight: 700; }

/* ── Unlock modal (login) ── */
.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 18, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.unlock-overlay.is-open { opacity: 1; visibility: visible; }
.unlock-modal {
  width: min(460px, 100%);
  max-height: min(92vh, 640px);
  overflow: auto;
  animation: unlockIn 0.35s var(--ease-premium);
}
@keyframes unlockIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.unlock-modal-inner { padding: 28px 26px; }
.unlock-head h3 { font-size: 20px; margin: 0 0 6px; }
.unlock-head p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.unlock-steps {
  margin: 20px 0 22px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.unlock-steps strong { color: var(--text-primary); }
.unlock-actions { display: flex; flex-direction: column; gap: 10px; }
.unlock-note { margin: 16px 0 0; font-size: 11px; text-align: center; line-height: 1.5; }

.brand-ai {
  font-size: 14px;
  color: var(--vegas-bright);
  vertical-align: super;
  letter-spacing: 0.1em;
}

.engine-radar.state-scanning .radar-sweep { animation-duration: 1.6s; opacity: 1; }
.engine-radar.state-scanning .radar-core { color: var(--vegas-bright); }

@media (max-width: 760px) {
  .engine-radar { width: 160px; height: 160px; }
  .radar-core { inset: 46px; font-size: 22px; }
  .gale-step span { font-size: 8px; }
}
