:root {
  --bg: #0b0f19;
  --paper: rgba(255, 255, 255, 0.03);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --soft: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #3b82f6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45; min-height: 100vh;
}
.page {
  max-width: 600px; margin: 0 auto; padding: 18px 16px 24px;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}
#content { flex: 1 0 auto; display: flex; flex-direction: column; }

/* Barra "vidro" full-bleed (fura o padding do .page), sticky no topo. */
.page-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  min-height: 44px;
  margin: -18px -16px 22px;
  padding: 20px 20px;
  background: linear-gradient(180deg, rgba(15,23,42,.34), rgba(15,23,42,.14));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 24px rgba(2,6,23,.28);
}
/* Botao voltar no mesmo estilo do cabecalho do menu: quadrado arredondado 40px. */
.back-btn {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: #f1f5f9; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
  font-family: inherit; padding: 0;
  transition: background .15s;
}
.back-btn:hover { background: rgba(255,255,255,0.1); }
.back-btn svg { width: 20px; height: 20px; }
.page-title { font-size: 1.15rem; font-weight: 700; }

.loading {
  text-align: center; padding: 40px 20px;
  color: var(--muted); font-size: 13px;
}

/* Bloco superior (CTA ou card de solicitação ativa) */
.sh-top-block { flex-shrink: 0; }

/* Bloco "precisa de ajuda?" (sem chamado ativo). Centralizado só quando não
   há histórico algum — se houver histórico, fica no topo, fluindo normal. */
.sh-empty {
  text-align: center; padding: 30px 20px;
}
.sh-empty--centered {
  padding: 50px 20px; margin: auto 0;
}
.sh-empty-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(37,99,235,.06));
  border: 1px solid rgba(59,130,246,.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: #93c5fd;
}
.sh-empty-icon svg { width: 28px; height: 28px; }
.sh-empty-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.sh-empty-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }

/* Botão "Abrir solicitação" */
.sh-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 14px 0; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
  font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px rgba(37,99,235,.28);
  transition: opacity .2s, transform .2s;
}
.sh-cta-btn:hover { opacity: .92; transform: translateY(-1px); }
.sh-empty .sh-cta-btn { width: auto; padding: 13px 26px; }

/* Card de solicitação em andamento (clicável) */
.sh-active-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  transition: border-color .15s, background .15s;
}
.sh-active-card:hover { border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.06); }
.sh-active-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
  display: inline-flex; align-items: center; justify-content: center; color: #93c5fd;
}
.sh-active-icon svg { width: 22px; height: 22px; }
.sh-active-text { flex: 1; min-width: 0; }
.sh-active-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.sh-active-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sh-active-chevron { flex-shrink: 0; width: 18px; height: 18px; color: var(--soft); }

/* Histórico — empurrado pra parte de baixo da tela quando o conteúdo é curto */
.sh-history { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.sh-history-title { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.sh-history-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--paper); margin-bottom: 8px; cursor: pointer;
  transition: border-color .15s;
}
.sh-history-item:hover { border-color: rgba(59,130,246,.3); }
.sh-history-item-body { flex: 1; min-width: 0; }
.sh-history-item-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--soft); margin-bottom: 4px; }
.sh-history-item-preview { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-history-item-chevron { flex-shrink: 0; width: 16px; height: 16px; color: var(--soft); }

.sc-empty-note { font-size: 13px; color: var(--soft); text-align: center; padding: 10px 0; }
