:root {
  --bg-deep: #050811;
  --bg-card: #0b1120;
  --bg-elevated: #111a2e;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --accent-emerald: #10b981;
  --accent-cyan: #38bdf8;
  --accent-amber: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #111c38 0%, var(--bg-deep) 70%);
  color: var(--text-main);
  font-family: var(--font-sans);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.player-shell {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.station-header {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.station-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.station-disc {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.station-brand h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.station-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.station-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-live {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 800;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.pill-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pill-weather strong {
  color: #fff;
}

.now-playing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.program-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.prog-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prog-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.prog-item strong {
  font-size: 0.92rem;
  color: #fff;
}

.listeners-num {
  color: var(--accent-cyan) !important;
  font-family: var(--font-mono);
}

.prog-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

.track-showcase {
  display: flex;
  align-items: center;
  gap: 22px;
}

.vinyl-visualizer {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 0%, #090d16 68%, #334155 70%, #090d16 100%);
  border: 3px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.vinyl-visualizer.spinning {
  animation: spinVinyl 6s linear infinite;
  border-color: var(--accent-emerald);
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-center {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
  color: #042f2e;
}

.track-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-now {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.track-meta h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  word-break: break-word;
}

.track-meta h3 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.next-track-box {
  margin-top: 4px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-amber);
  border-radius: 4px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.next-label {
  font-weight: 800;
  color: var(--accent-amber);
  margin-right: 6px;
}

.eq-bars {
  height: 22px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 4px;
}

.eq-bars span {
  flex: 1;
  height: 5px;
  background: rgba(56, 189, 248, 0.25);
  border-radius: 3px;
  transition: height 0.2s ease;
}

.eq-bars.active span {
  background: linear-gradient(180deg, #34d399, #0284c7);
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bars.active span:nth-child(odd) { animation-duration: 0.55s; }
.eq-bars.active span:nth-child(3n) { animation-duration: 0.95s; }

@keyframes eqBounce {
  0% { height: 5px; }
  100% { height: 20px; }
}

.player-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.btn-play-main {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #042f2e;
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-play-main:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-play-main.playing {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1b4b;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.volume-box input[type="range"] {
  width: 110px;
  cursor: pointer;
}

#lblVolumePct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-width: 36px;
}

.session-timer-box {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.session-timer-box strong {
  color: #34d399;
}

/* FASES 2 & 3: GRID DE MÓDULOS (RADAR DE NOTÍCIAS + CHAT AO VIVO) */
.portal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.portal-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.module-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.module-badge-cyan {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

.module-badge-emerald {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.btn-logout-mini {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.65rem;
  cursor: pointer;
}

.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.news-item {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--text-muted);
}

.news-source {
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.news-headline {
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}

.news-headline:hover {
  color: var(--accent-cyan);
}

/* CHAT DIRETO COM O LOCUTOR */
.chat-messages-box {
  background: #070b15;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  height: 175px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-empty-msg {
  color: var(--text-muted);
  font-size: 0.76rem;
  text-align: center;
  margin: auto 0;
}

.chat-bubble {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-bubble.from-locutor {
  background: rgba(16, 185, 129, 0.13);
  border-color: rgba(16, 185, 129, 0.45);
}

.chat-bubble-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.chat-bubble-top strong {
  color: var(--accent-cyan);
}

.chat-bubble.from-locutor .chat-bubble-top strong {
  color: #34d399;
}

.chat-song-req {
  font-size: 0.7rem;
  color: var(--accent-amber);
  font-weight: 700;
}

.chat-auth-box,
.chat-compose-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.auth-tab-btn {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: rgba(56, 189, 248, 0.16);
  color: #fff;
  border-color: var(--accent-cyan);
}

.auth-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.portal-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  font-size: 0.76rem;
}

.portal-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.auth-actions-row,
.chat-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-feedback-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-portal-submit {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-chat-expand {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chat-expand:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: var(--accent-cyan);
}

/* Modo Expandido / Modal Full do Chat */
.portal-module-card.chat-expanded {
  position: fixed;
  inset: 20px;
  z-index: 99999;
  background: #0b1120;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
}

.portal-module-card.chat-expanded .chat-messages-box {
  height: calc(100vh - 280px);
  max-height: none;
}

.portal-footer {
  padding-top: 4px;
}

.footer-copy {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* =========================================================================
   ASSISTENTE DE INSTALAÇÃO & PRIMEIRO ACESSO (WORKSITE SETUP WIZARD)
   ========================================================================= */
.setup-wizard-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: wizardFadeIn 0.3s ease;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.setup-wizard-backdrop.wizard-closing {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.35s ease;
}

.setup-wizard-card {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  max-width: 840px;
  width: 100%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.92), 0 0 40px rgba(16, 185, 129, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  overflow: hidden;
}

.wizard-header {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wizard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wizard-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.wizard-brand h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.wizard-brand p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.wizard-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-version-chip {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.wizard-live-pill {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Stepper */
.wizard-stepper {
  background: rgba(5, 8, 17, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.25s ease;
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed .step-num {
  background: #10b981;
  color: #04140c;
  border-color: #34d399;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #cbd5e1;
}

.step-indicator.active .step-num {
  background: linear-gradient(135deg, #10b981, #0284c7);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
}

.step-indicator.active .step-label {
  color: #38bdf8;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px;
}

.step-line.completed {
  background: #10b981;
}

/* Corpo dos passos */
.wizard-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
}

.wizard-step-pane {
  display: none;
  animation: paneFadeIn 0.25s ease;
}

.wizard-step-pane.active {
  display: block;
}

@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-pane-intro {
  margin-bottom: 18px;
}

.wizard-pane-intro h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
}

.wizard-pane-intro p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Grid de Diagnóstico */
.setup-diag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.diag-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.badge-diag-ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge-diag-cyan {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.diag-card p {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 4px 0 6px 0;
}

.diag-tech-info {
  font-size: 0.68rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.diag-url-box {
  display: block;
  background: rgba(5, 8, 17, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  overflow-x: auto;
  white-space: nowrap;
}

.setup-hint-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Formulários do Wizard */
.wizard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.wizard-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wizard-form-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
}

.input-with-action {
  display: flex;
  gap: 8px;
}

.btn-wizard-action {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-wizard-action:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
}

.wizard-feedback-msg {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-top: 6px;
}

.wizard-feedback-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.wizard-feedback-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Tester Box */
.wizard-player-tester-box {
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.player-tester-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fbbf24;
}

.badge-tester-idle {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.badge-tester-playing {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
}

.btn-wizard-play {
  background: linear-gradient(135deg, #059669, #047857);
  border: 1px solid #34d399;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Guia de Estúdio */
.setup-guide-box {
  background: rgba(9, 13, 22, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 16px;
}

.setup-guide-box h4 {
  font-size: 0.86rem;
  color: #38bdf8;
  margin-bottom: 10px;
}

.setup-steps-list {
  padding-left: 18px;
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.wizard-bridge-credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.bridge-credential-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bridge-cred-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.bridge-copy-input-group {
  display: flex;
  gap: 8px;
}

.btn-copy-cred {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy-cred:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #ffffff;
}

/* Resumo Final */
.setup-summary-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.setup-summary-card h4 {
  font-size: 0.86rem;
  color: #34d399;
  margin-bottom: 12px;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}

.summary-item-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: #94a3b8;
}

.summary-val {
  color: #f8fafc;
  text-align: right;
}

.setup-vanishing-notice {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.45;
}

/* Rodapé de Ações */
.wizard-footer {
  background: rgba(5, 8, 17, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-wizard-secondary {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.wizard-footer-right {
  display: flex;
  gap: 10px;
}

.btn-wizard-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid #38bdf8;
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}

.btn-wizard-success {
  background: linear-gradient(135deg, #059669, #047857);
  border: 1px solid #34d399;
  color: #ffffff;
  padding: 9px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: pulseSuccessBtn 2s infinite;
}

@keyframes pulseSuccessBtn {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 760px) {
  .setup-diag-grid { grid-template-columns: 1fr; }
  .wizard-form-grid { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .wizard-footer { flex-direction: column-reverse; gap: 10px; }
  .wizard-footer-right { width: 100%; justify-content: stretch; }
  .btn-wizard-primary, .btn-wizard-success { width: 100%; text-align: center; }
}

@media (max-width: 760px) {
  .track-showcase { flex-direction: column; text-align: center; }
  .badge-now { align-self: center; }
  .portal-grid-2col { grid-template-columns: 1fr; }
  .auth-fields-grid { grid-template-columns: 1fr; }
}
