/* Área de membros / checkout — Águia Simulados
   Identidade oficial: navy #001432 + gold #f5b025, fontes Poppins/Merriweather. */
:root {
  --gold: #f5b025;
  --gold-dark: #b88214;
  --navy: #001432;
  --blue: #1e3a5f;
  --green: #22c55e;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg: #eef1f6;
  --err: #dc2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(30, 58, 95, 0.20), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
h1, h2, h3 { font-family: "Merriweather", Georgia, serif; color: var(--navy); }

.as-wrap { max-width: 860px; margin: 0 auto; padding: 2rem 1.1rem 4rem; }

/* Cartão central */
.as-card {
  max-width: 440px;
  margin: 2.5rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem 1.9rem;
  box-shadow: 0 18px 50px rgba(0, 20, 50, 0.14);
}
.as-centro { text-align: center; }

/* Marca */
.as-brand { text-align: center; margin-bottom: 1.2rem; }
.as-brand img { width: 76px; height: auto; display: block; margin: 0 auto 0.5rem; }
.as-brand .as-wordmark {
  font-family: "Merriweather", serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--navy);
  font-size: 1.05rem;
}
.as-brand .as-wordmark span { color: var(--gold-dark); }

h1 { font-size: 1.4rem; margin: 0.3rem 0 0.5rem; line-height: 1.3; }
h2 { font-size: 1.2rem; margin: 0; }
.as-muted { color: var(--muted); font-size: 0.92rem; }
.as-mini { font-size: 0.8rem; }
.as-preco { font-size: 1.9rem; font-weight: 800; color: var(--gold-dark); margin: 0.1rem 0 1rem; font-family: "Poppins", sans-serif; }
.as-erro { color: var(--err); font-size: 0.88rem; min-height: 1em; margin: 0.5rem 0 0; }
.as-erro-inline { color: var(--err); }

/* Inputs */
.as-field { position: relative; margin: 0.55rem 0; text-align: left; }
label.as-lab { display: block; font-size: 0.78rem; color: var(--muted); margin: 0 0 0.2rem 0.15rem; font-weight: 500; }
input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.22); }
input::placeholder { color: #9aa3b2; }

/* Botões */
.as-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  padding: 0.82rem 1.1rem; border-radius: 10px; font-size: 0.98rem; font-weight: 600;
  font-family: inherit; text-decoration: none; text-align: center;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}
.as-btn:hover { background: var(--blue); }
.as-btn:active { transform: translateY(1px); }
.as-btn:disabled { opacity: 0.6; cursor: default; }
.as-btn-ouro { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(245, 176, 37, 0.35); }
.as-btn-ouro:hover { background: var(--gold-dark); color: #fff; }
.as-btn-grande { padding: 0.95rem; font-size: 1.05rem; }
.as-btn-sm { width: auto; padding: 0.5rem 0.9rem; font-size: 0.85rem; }

/* Botão Google */
.as-btn-google {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #fff; color: #1f2937; border: 1px solid #dADCE0;
  padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
}
.as-btn-google:hover { background: #f7f8fa; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.as-btn-google:disabled { opacity: 0.6; cursor: default; }
.as-btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Divisor "ou" */
.as-ou { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0; color: #9aa3b2; font-size: 0.8rem; }
.as-ou::before, .as-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Abas Criar conta / Entrar */
.as-tabs { display: flex; background: #f1f3f7; border-radius: 10px; padding: 4px; margin-bottom: 0.4rem; }
.as-tab {
  flex: 1; text-align: center; padding: 0.5rem; border-radius: 8px; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--muted); border: 0; background: transparent; font-family: inherit;
}
.as-tab.ativa { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Selo de confiança */
.as-selo { display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: var(--muted); font-size: 0.8rem; margin-top: 1rem; }
.as-selo svg { width: 14px; height: 14px; color: var(--green); }

/* Topo da área logada */
.as-topo {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1.2rem; margin-bottom: 1.4rem; background: var(--navy);
  border-bottom: 4px solid var(--gold); border-radius: 12px; flex-wrap: wrap;
}
.as-topo .as-topo-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: "Merriweather", serif; font-weight: 700; font-size: 0.98rem; }
.as-topo .as-topo-brand img { width: 30px; height: auto; }
.as-topo .as-topo-brand span { color: var(--gold); }
.as-user { color: #cbd5e1; font-size: 0.85rem; }
.as-user a { color: var(--gold); }

/* Pack + materiais */
.as-pack { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 12px; padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; box-shadow: 0 6px 20px rgba(0,20,50,0.05); }
.as-pack-head { margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.as-pack-head h2 { font-size: 1.15rem; }
.as-materiais { list-style: none; margin: 0; padding: 0; }
.as-material { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.as-material:last-child { border-bottom: 0; }
.as-material-info { display: flex; flex-direction: column; gap: 0.25rem; }
.as-material-titulo { font-weight: 600; font-size: 0.95rem; }
.as-tag { align-self: flex-start; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; background: #f1f3f7; color: var(--blue); padding: 0.12rem 0.5rem; border-radius: 999px; }
.as-material-acao { flex-shrink: 0; }
.as-em-breve { font-size: 0.82rem; }

/* Material com ícone (dentro da turma) */
.as-material-info { flex-direction: row; align-items: center; gap: 0.7rem; }
.as-material-icone { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.as-material-texto { display: flex; flex-direction: column; gap: 0.25rem; }

/* Estados */
.as-aguardando { text-align: center; padding: 2.5rem 1rem; }
.as-aguardando img { width: 64px; margin: 0 auto 1rem; display: block; }
.as-spinner { width: 42px; height: 42px; margin: 0 auto 1.2rem; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: as-gira 1s linear infinite; }
@keyframes as-gira { to { transform: rotate(360deg); } }

/* ===== Turmas: lista de cards ===== */
.as-turmas-intro { margin-bottom: 1.2rem; }
.as-turmas-intro h1 { font-size: 1.5rem; margin: 0 0 0.2rem; }
.as-turmas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.as-turma-card {
  display: flex; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gold);
  border-radius: 14px; padding: 1.2rem 1.3rem 1.1rem; font-family: inherit;
  box-shadow: 0 6px 20px rgba(0,20,50,0.06);
  transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
}
.as-turma-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,20,50,0.14); }
.as-turma-card:active { transform: translateY(0); }
.as-turma-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245,176,37,0.4); }
.as-turma-corpo { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; flex: 1; }
.as-turma-titulo { font-size: 1.05rem; margin: 0; line-height: 1.25; }
.as-turma-conc { font-size: 0.82rem; margin: 0; }
.as-turma-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.as-turma-meta span {
  font-size: 0.72rem; font-weight: 600; color: var(--blue);
  background: #f1f3f7; padding: 0.15rem 0.55rem; border-radius: 999px;
}
.as-turma-cta { margin-top: 0.5rem; font-weight: 700; color: var(--gold-dark); font-size: 0.9rem; }
.as-turma-cta span { transition: transform 0.12s; display: inline-block; }
.as-turma-card:hover .as-turma-cta span { transform: translateX(3px); }

/* ===== Turma: detalhe ===== */
.as-voltar {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  color: var(--blue); font-weight: 600; font-size: 0.92rem; padding: 0.2rem 0;
}
.as-voltar:hover { color: var(--navy); }
.as-turma-head {
  background: var(--navy); color: #fff; border-radius: 14px;
  border-bottom: 5px solid var(--gold); padding: 1.3rem 1.4rem; margin-bottom: 1.4rem;
}
.as-turma-head h1 { color: #fff; font-size: 1.35rem; margin: 0 0 0.25rem; }
.as-turma-head .as-muted { color: #cbd5e1; }

.as-grupo {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.3rem 0.6rem; margin-bottom: 1.1rem; box-shadow: 0 4px 14px rgba(0,20,50,0.05);
}
.as-grupo-titulo {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.05rem; margin: 0 0 0.4rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold);
}
.as-grupo-cont { font-family: "Poppins", sans-serif; font-size: 0.75rem; font-weight: 600; color: var(--muted); }

/* ===== Estado vazio (sem turmas) ===== */
.as-vazio { padding: 2.4rem 1.9rem; }
.as-vazio h2 { font-size: 1.25rem; margin: 0.4rem 0 0.6rem; }
.as-vazio .as-btn { margin-top: 0.6rem; }

/* ===== Informações pessoais ===== */
.as-infopessoal {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; box-shadow: 0 4px 14px rgba(0,20,50,0.05);
}
.as-infopessoal-titulo { font-size: 1rem; margin: 0 0 0.7rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.as-dados { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.1rem; margin: 0; }
.as-dados dt { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.as-dados dd { margin: 0; font-size: 0.92rem; color: var(--ink); word-break: break-word; }

/* ===== Suporte (rodapé) ===== */
.as-suporte {
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 0.86rem;
}
.as-suporte a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.as-suporte a:hover { text-decoration: underline; }
