:root {
  --bg: #0f0f12;
  --bg-soft: #17181d;
  --card: #1e2027;
  --card-secondary: #13151a;
  --text: #f5f5f5;
  --muted: #b7bdc9;
  --primary: #f28c28;
  --primary-dark: #d9740e;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea {
  font: inherit;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.topo {
  background: #131418;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.topo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 180px;
  height: auto;
}

.page {
  min-height: calc(100vh - 96px);
}

.hero {
  background: var(--bg);
  padding: 50px 0 30px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.duvidas-section {
  padding: 10px 0 70px;
}

.duvidas-lista {
  display: grid;
  gap: 18px;
}

.duvida-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 35px var(--shadow);
}

.duvida-button {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 24px 26px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.duvida-button span {
  font-weight: 700;
  font-size: 1.05rem;
}

.duvida-button strong {
  color: var(--primary);
  font-size: 1.5rem;
}

.duvida-resposta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  padding: 0 26px;
}

.duvida-card.open .duvida-resposta {
  max-height: 500px;
  padding: 22px 26px 26px;
}

.duvida-resposta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #111;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #2a2d35;
  color: var(--text);
}

.btn-link {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.admin-body {
  background: var(--bg-soft);
}

.auth-container {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.auth-box {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 18px 35px var(--shadow);
}

.auth-box h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.8rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.full {
  width: 100%;
}

.admin-page {
  padding: 40px 0 70px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 28px;
}

.admin-panel,
.admin-lista {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 35px var(--shadow);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-panel h2,
.admin-header h3 {
  margin: 0 0 20px;
  font-size: 1.5rem;
}

.form-duvida {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-duvida label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
}

.form-duvida input,
.form-duvida textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.form-duvida input:focus,
.form-duvida textarea:focus {
  outline: 2px solid rgba(242, 140, 40, 0.35);
  border-color: rgba(242, 140, 40, 0.65);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-item.deleting {
  opacity: 0.35;
  transform: scale(0.98);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.modal-card h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.modal-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-item h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-btn.danger {
  border-color: rgba(255, 77, 77, 0.5);
  color: #ff8d8d;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .duvida-button {
    flex-direction: column;
    align-items: flex-start;
  }
}
