/* Á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); }

/* Link em forma de botão (ex.: "Esqueci minha senha", "Voltar"). */
.as-esqueci { text-align: center; margin: 0.6rem 0 0; }
.as-link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 0.88rem;
  color: var(--gold-dark); font-weight: 600; cursor: pointer; text-decoration: underline; }
.as-link-btn:hover { color: var(--navy); }

/* 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; }

/* ===== 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; }


/* ==========================================================================
   ÁREA DO ALUNO — DASHBOARD (cabeçalho + boas-vindas + ações + conteúdo)
   Usado só por membros.html (#area.as-area). As classes de login/checkout
   (topo do arquivo) seguem intactas — compartilhadas com comprar/sucesso.
   Identidade: navy #001432 + gold #f5b025, Poppins/Merriweather.
   ========================================================================== */
.as-area { width: 100%; }

/* ----- Cabeçalho fixo ----- */
.as-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: 0 2px 12px rgba(0, 20, 50, 0.08); border-bottom: 3px solid var(--gold);
}
.as-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.as-header-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.as-header-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.as-header-word { font-family: "Merriweather", serif; font-weight: 900; color: var(--navy); font-size: 1rem; line-height: 1.15; }
.as-header-word > span { color: var(--gold-dark); }
.as-header-word small {
  display: block; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.as-header-right { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.as-header-user { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.as-header-sair {
  display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; border: 0;
  cursor: pointer; font-family: inherit; color: var(--muted); font-weight: 600; font-size: 0.9rem; padding: 0.4rem 0.5rem; border-radius: 8px;
}
.as-header-sair:hover { color: var(--gold-dark); background: #f7f8fb; }

/* ----- Shell central (empilhado) ----- */
.as-body { max-width: 1200px; margin: 0 auto; padding: 1.6rem 1.4rem 3rem; }
.as-dash { display: flex; flex-direction: column; gap: 1.4rem; }

/* ----- Faixa de boas-vindas (navy) ----- */
.as-welcome {
  display: flex; align-items: center; gap: 1.2rem;
  background:
    radial-gradient(700px 220px at 12% -60%, rgba(245, 176, 37, 0.20), transparent 70%),
    linear-gradient(135deg, #001a40, #001026);
  color: #fff; border-radius: 18px; padding: 1.5rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 4px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0, 20, 50, 0.22);
}
.as-welcome-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.as-welcome-nome { color: #fff; font-size: 1.5rem; margin: 0; line-height: 1.2; }
.as-welcome-turma { margin: 0; color: #cdd8ea; font-size: 0.9rem; }

/* Seletor de turma (quando há 2+ turmas) */
.as-turma-picker { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.as-turma-picker-lab { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.as-turma-select {
  max-width: 100%; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px; padding: 0.5rem 2rem 0.5rem 0.8rem; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f5b025' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}
.as-turma-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.35); }
.as-turma-select option { color: #111827; }

/* Avatar (dentro do welcome) */
.as-avatar {
  position: relative; width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.as-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.as-avatar-ini {
  width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: "Merriweather", serif; font-weight: 900; font-size: 1.9rem; color: var(--navy);
  background: linear-gradient(135deg, #fce7b6, #f5b025);
}
.as-avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--navy); border: 2px solid #fff; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: background 0.15s;
}
.as-avatar-edit:hover { background: var(--gold-dark); color: #fff; }
.as-avatar-edit:disabled { opacity: 0.6; cursor: default; }
.as-avatar-edit svg { width: 15px; height: 15px; }
.as-foto-msg { font-size: 0.75rem; color: #cdd8ea; margin: 0.15rem 0 0; }
.as-foto-msg-erro { color: #fecaca; }
.as-foto-remover {
  align-self: flex-start; background: transparent; border: 0; cursor: pointer; font-family: inherit; padding: 0;
  color: #9fb0c9; font-size: 0.74rem; text-decoration: underline;
}
.as-foto-remover:hover { color: #fecaca; }

/* ----- Grade de ações rápidas ----- */
.as-acoes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem;
}
.as-acao {
  display: flex; align-items: center; gap: 0.75rem; text-align: left; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem;
  cursor: pointer; font-family: inherit; color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 20, 50, 0.05);
  transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.as-acao:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 20, 50, 0.12); border-color: #d9dee7; }
.as-acao:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.45); }
.as-acao-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.3rem; background: #f1f3f7;
}
.as-acao-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.as-acao-txt strong { font-size: 0.94rem; font-weight: 700; color: var(--navy); }
.as-acao-txt small { font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Ativa (view selecionada) */
.as-acao.ativa { border-color: var(--gold); background: #fffaf0; box-shadow: 0 8px 22px rgba(245, 176, 37, 0.22); }
.as-acao.ativa .as-acao-ico { background: var(--gold); color: var(--navy); }
/* Destaque (ferramentas externas: Correção / Banco) */
.as-acao.destaque { background: linear-gradient(135deg, #fbbf3b, #f5b025); border-color: var(--gold-dark); }
.as-acao.destaque .as-acao-ico { background: rgba(0, 20, 50, 0.14); }
.as-acao.destaque .as-acao-txt strong { color: var(--navy); }
.as-acao.destaque .as-acao-txt small { color: #5b3f06; }
.as-acao.destaque:hover { box-shadow: 0 12px 28px rgba(245, 176, 37, 0.4); }

/* ----- Seções (heading + grade) ----- */
.as-secao-head { margin-bottom: 1rem; }
.as-secao-titulo { font-size: 1.35rem; margin: 0 0 0.15rem; }

/* Grade de simulados */
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.as-sim-card {
  display: flex; flex-direction: column; gap: 0.6rem; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: 14px; padding: 1.15rem 1.2rem; font-family: inherit;
  box-shadow: 0 5px 18px rgba(0, 20, 50, 0.06);
  transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
}
.as-sim-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 20, 50, 0.15); }
.as-sim-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.45); }
.as-sim-card.bloq { border-left-color: #cbd2dd; background: #fafbfc; }
.as-sim-top { display: flex; align-items: center; gap: 0.55rem; }
.as-sim-ico { font-size: 1.35rem; line-height: 1; }
.as-sim-num { font-family: "Merriweather", serif; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.as-sim-card.bloq .as-sim-num { color: var(--muted); }
.as-sim-status { font-size: 0.84rem; color: var(--muted); }
.as-sim-tipos { display: flex; gap: 0.3rem; min-height: 1.3rem; }
.as-sim-tipo { font-size: 1.05rem; line-height: 1; opacity: 0.9; }
.as-sim-cta { margin-top: 0.1rem; font-weight: 700; color: var(--gold-dark); font-size: 0.88rem; }
.as-sim-cta span { transition: transform 0.12s; display: inline-block; }
.as-sim-card:hover .as-sim-cta span { transform: translateX(4px); }
.as-sim-card.bloq .as-sim-cta { color: var(--muted); }

/* ----- Botão "voltar" (views de detalhe) ----- */
.as-voltar {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-family: inherit;
  color: var(--navy); font-weight: 600; font-size: 0.88rem; padding: 0.5rem 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}
.as-voltar:hover { background: #f7f8fb; border-color: var(--gold); }

/* ----- Painéis (detalhe de simulado / extras / suporte) ----- */
.as-regiao { min-width: 0; }
.as-painel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.7rem 1.7rem; box-shadow: 0 10px 30px rgba(0, 20, 50, 0.07);
}
.as-painel-head { margin-bottom: 1.3rem; }
.as-painel-turma {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-dark); margin: 0 0 0.3rem;
}
.as-painel-titulo { font-size: 1.5rem; margin: 0 0 0.4rem; line-height: 1.25; }
.as-destaque { color: var(--gold-dark); }
.as-painel-vazio { text-align: center; padding: 2.2rem 1rem; }
.as-painel-vazio-ico { font-size: 2.6rem; margin-bottom: 0.4rem; }
.as-painel-vazio h3 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.as-bloco { margin-top: 1.5rem; }
.as-bloco:first-of-type { margin-top: 0; }
.as-bloco-titulo {
  display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem;
  margin: 0 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold);
}
.as-bloco-cont { font-family: "Poppins", sans-serif; font-size: 0.75rem; font-weight: 600; color: var(--muted); }

/* Materiais (linhas em caixa) */
.as-materiais { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.as-material {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem; background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px;
}
.as-material-info { display: flex; flex-direction: row; align-items: center; gap: 0.8rem; min-width: 0; }
.as-material-icone { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.as-material-texto { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.as-material-titulo { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.as-material-sub { font-size: 0.8rem; color: var(--muted); }
.as-material-acao { flex-shrink: 0; }
.as-em-breve { font-size: 0.82rem; }

/* ----- Rodapé escuro ----- */
.as-footer { background: var(--navy); color: #fff; margin-top: 2.5rem; padding: 1.8rem 1.4rem; }
.as-footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.as-footer-sup { margin: 0 0 0.4rem; font-size: 0.9rem; color: #e5e9f0; }
.as-footer-sup a { color: var(--gold); font-weight: 600; text-decoration: none; }
.as-footer-sup a:hover { text-decoration: underline; }
.as-footer-cop { margin: 0; font-size: 0.8rem; color: #9fb0c9; }

/* ----- Estados (carregando / vazio) ----- */
.as-aguardando { text-align: center; padding: 2.6rem 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); } }
.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; }

/* ==========================================================================
   SUPORTE / CHAMADOS (painel de tickets)
   ========================================================================== */
.as-suporte-email { margin-top: 0.5rem; }
.as-suporte-email a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.as-suporte-email a:hover { text-decoration: underline; }
.as-suporte-form { display: flex; flex-direction: column; gap: 0.9rem; }
.as-suporte-form-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 620px) { .as-suporte-form-grid { grid-template-columns: 200px 1fr; } }
.as-campo { display: flex; flex-direction: column; gap: 0.3rem; }
.as-campo-lab { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-left: 0.15rem; }
.as-input-txt, .as-textarea, .as-select {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.98rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.as-textarea { resize: vertical; min-height: 3.2rem; line-height: 1.5; }
.as-input-txt:focus, .as-textarea:focus, .as-select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.22);
}
.as-input-txt::placeholder, .as-textarea::placeholder { color: #9aa3b2; }
.as-suporte-form-acao { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.as-suporte-msg { font-size: 0.82rem; color: var(--muted); }
.as-suporte-msg-ok { color: var(--green); }
.as-suporte-msg-erro { color: var(--err); }
.as-chamados { display: flex; flex-direction: column; gap: 0.7rem; }
.as-chamados-vazio { padding: 0.6rem 0; }
.as-chamado { background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.as-chamado[open] { background: #fff; box-shadow: 0 6px 18px rgba(0, 20, 50, 0.06); }
.as-chamado-top { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; cursor: pointer; list-style: none; user-select: none; }
.as-chamado-top::-webkit-details-marker { display: none; }
.as-chamado-cat { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.as-chamado-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.as-chamado-assunto { font-weight: 600; font-size: 0.95rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-chamado-meta { font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-chamado-status { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.as-st-aberto { background: #fef3c7; color: #92400e; }
.as-st-respondido { background: #dbeafe; color: #1e40af; }
.as-st-resolvido { background: #dcfce7; color: #166534; }
.as-chamado-corpo { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.as-thread { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.9rem 0; }
.as-msg { border-radius: 12px; padding: 0.6rem 0.8rem; max-width: 90%; }
.as-msg-aluno { background: #eef1f6; align-self: flex-start; border-bottom-left-radius: 4px; }
.as-msg-suporte { background: #fff7e6; border: 1px solid #f6e2b3; align-self: flex-end; border-bottom-right-radius: 4px; }
.as-msg-autor { font-size: 0.72rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 0.15rem; }
.as-msg-aluno .as-msg-autor { color: var(--blue); }
.as-msg-texto { font-size: 0.9rem; color: var(--ink); white-space: pre-wrap; word-wrap: break-word; }
.as-msg-hora { font-size: 0.68rem; color: var(--muted); margin-top: 0.25rem; }
.as-resposta { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.3rem; }
.as-resposta-acao { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.as-resposta-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.as-resposta-status .as-select { width: auto; padding: 0.4rem 0.6rem; font-size: 0.85rem; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 640px) {
  .as-body { padding: 1.1rem 1rem 2.5rem; }
  .as-header-user { display: none; }
  .as-welcome { flex-direction: row; align-items: center; gap: 1rem; padding: 1.2rem 1.2rem; }
  .as-avatar { width: 62px; height: 62px; }
  .as-avatar-ini { font-size: 1.4rem; }
  .as-avatar-edit { width: 26px; height: 26px; }
  .as-avatar-edit svg { width: 13px; height: 13px; }
  .as-welcome-nome { font-size: 1.2rem; }
  .as-acoes { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .as-acao { padding: 0.7rem 0.75rem; gap: 0.6rem; }
  .as-acao-ico { width: 36px; height: 36px; font-size: 1.15rem; }
  .as-acao-txt small { display: none; }
  .as-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .as-secao-titulo { font-size: 1.2rem; }
  .as-painel { padding: 1.3rem 1.1rem; }
  .as-painel-titulo { font-size: 1.25rem; }
  .as-material { flex-direction: column; align-items: flex-start; }
  .as-material-acao { width: 100%; }
  .as-material-acao .as-btn { width: 100%; }
  .as-msg { max-width: 100%; }
}
@media (max-width: 380px) {
  .as-acoes { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ÍCONES SVG (inline) — renderizam iguais em qualquer aparelho (sem depender
   da fonte de emoji do sistema). Cor via currentColor de cada contexto.
   ========================================================================== */
.as-ic { width: 22px; height: 22px; display: block; }
/* Ações */
.as-acao-ico { color: var(--navy); }
.as-acao.ativa .as-acao-ico { color: var(--navy); }
.as-acao.destaque .as-acao-ico { color: var(--navy); }
/* Card de simulado */
.as-sim-ico { display: inline-flex; color: var(--gold-dark); }
.as-sim-ico .as-ic { width: 22px; height: 22px; }
.as-sim-card.bloq .as-sim-ico { color: var(--muted); }
.as-sim-tipo { display: inline-flex; color: var(--muted); }
.as-sim-tipo .as-ic { width: 18px; height: 18px; }
/* Linha de material */
.as-material-icone { display: inline-flex; color: var(--gold-dark); }
.as-material-icone .as-ic { width: 24px; height: 24px; }
/* Chamado (categoria) */
.as-chamado-cat { display: inline-flex; color: var(--gold-dark); }
.as-chamado-cat .as-ic { width: 22px; height: 22px; }
/* Placeholder de estado vazio */
.as-painel-vazio-ico { color: var(--muted); display: flex; justify-content: center; }
.as-painel-vazio-ico .as-ic { width: 46px; height: 46px; }
/* Ícone ao lado do título de um painel */
.as-titulo-ic { display: inline-flex; color: var(--gold-dark); vertical-align: -0.28em; }
.as-titulo-ic .as-ic { width: 26px; height: 26px; }
