/* Painel Auryx Campanhas — Hostinger */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #080808;
  color: #f0f0f0;
  min-height: 100vh;
}

.ax-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.25);
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ax-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ax-header h1 span { color: #ff6b00; }

.ax-status {
  font-size: 0.85rem;
  color: #888;
  padding: 6px 14px;
  border: 1px solid #222;
  border-radius: 999px;
}

.ax-grid {
  display: grid;
  grid-template-columns: 340px 1fr 320px;
  gap: 0;
  min-height: calc(100vh - 72px);
}

@media (max-width: 1100px) {
  .ax-grid { grid-template-columns: 1fr; }

  .ax-panel {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid #1a1a1a;
  }

  .ax-panel:last-child {
    border-bottom: none;
  }
}

.ax-panel {
  padding: 20px;
  border-right: 1px solid #1a1a1a;
  overflow-y: auto;
}

.ax-panel:last-child { border-right: none; border-left: 1px solid #1a1a1a; }

.ax-panel h2 {
  margin: 0 0 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff6b00;
}

label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 6px;
  margin-top: 14px;
}

select, textarea, input[type="text"] {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
}

textarea { min-height: 80px; resize: vertical; }

select:focus, textarea:focus, input:focus {
  outline: none;
  border-color: #ff6b00;
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.15);
}

.fmt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.fmt-tabs button {
  background: #151515;
  border: 1px solid #2a2a2a;
  color: #aaa;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.15s;
}

.fmt-tabs button:hover { border-color: #ff6b00; color: #fff; }
.fmt-tabs button.ativo {
  background: rgba(255, 107, 0, 0.15);
  border-color: #ff6b00;
  color: #ff9500;
}

.preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #050505;
  min-height: 400px;
}

.preview-wrap iframe {
  border: 1px solid #222;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform-origin: top center;
  background: #0a0a0a;
}

.ax-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.15s;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #ff6b00, #ff9500);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn-secondary {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
}

.btn-secondary:hover:not(:disabled) { border-color: #ff6b00; }

.btn-ghost {
  background: transparent;
  color: #888;
  border: 1px solid #2a2a2a;
  padding: 10px;
  font-size: 0.75rem;
}

.progress-wrap {
  margin-top: 16px;
  display: none;
}

.progress-track {
  height: 6px;
  background: #1a1a1a;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff6b00, #ff9500);
  transition: width 0.3s;
}

.progress-text {
  font-size: 0.75rem;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

.log {
  margin-top: 16px;
  max-height: 280px;
  overflow-y: auto;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 10px;
}

.log-line { padding: 3px 0; color: #888; }
.log-ok { color: #4ade80; }
.log-err { color: #f87171; }

.ax-dica {
  margin-top: 20px;
  padding: 12px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 8px;
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.5;
}

.ax-dica strong { color: #ff9500; }
