/* ==========================================================================
   HAZE CLOUD — ÁREA DO CLIENTE (conta.html)
   Só a casca: os controles vêm de components.css.
   Céu gelo, cartões brancos de 28px, títulos DynaPuff, texto Nunito.
   ========================================================================== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;                 /* ajuste 9 */
}
/* Céu: faixa azul-clara no topo (reserva sem oklch antes, ajuste 4) */
html:not([data-theme='dark']) body {
  background-image: linear-gradient(180deg, #e1ecfd, rgb(225 236 253 / 0) 360px);
  background-image: linear-gradient(180deg in oklch, var(--hz-100, #e1ecfd), rgb(225 236 253 / 0) 360px);
  background-repeat: no-repeat;
}

.ct-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 760px; margin: 0 auto; padding: 16px;
}
.ct-top__marca { display: block; border-radius: 12px; }
.ct-top__marca img { display: block; width: 84px; height: auto; }

.ct { max-width: 760px; margin: 0 auto; padding: 8px 16px 64px; outline: none; }
.ct-carregando { color: var(--text-muted); }

.ct h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0; color: var(--text-strong);
  font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 8px 0 6px;
}
/* Estrela ciano antes do título (substitui o ✦ da loja antiga) */
.ct h1::before {
  content: ''; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.3em;
  background: url('../img/elementos/estrela-ciano.svg') center / contain no-repeat;
  vertical-align: 0.05em;
}
.ct h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; color: var(--text-strong); font-size: 20px; line-height: 1.2; margin: 0 0 12px; }
.ct-sub { color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }

.ct-card {
  background: var(--surface); border-radius: var(--radius-xl); padding: 24px;
  box-shadow: inset 0 0 0 1px var(--border); margin-bottom: 16px;
}
.ct-form { display: grid; gap: 14px; }
.ct-form--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .ct-form--2 { grid-template-columns: 1fr 1fr; } .ct-span { grid-column: 1 / -1; } }
.ct-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ct-link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ct-link:hover { color: var(--hz-700, var(--brand)); }

/* Abas: entrar × criar conta, e as seções da conta */
.ct-abas { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.ct-aba {
  border: 0; cursor: pointer; font-family: var(--font-label); font-weight: 600; font-size: var(--text-sm);
  padding: 9px 16px; border-radius: var(--radius-full); background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border); text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.ct-aba:hover { background: var(--hz-100, var(--surface-2)); }
.ct-aba[aria-current='page'], .ct-aba[aria-pressed='true'] { background: var(--brand); color: var(--on-brand, #fff); box-shadow: none; }
.ct-aba:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Pedidos */
.ct-pedido { display: grid; gap: 10px; }
.ct-pedido__topo { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; justify-content: space-between; }
.ct-pedido__codigo { font-weight: 700; color: var(--text-strong); font-family: var(--font-label); }
.ct-pedido__itens { color: var(--text-muted); font-size: var(--text-sm); }
.ct-pedido__total { font-family: var(--font-label); font-weight: 600; color: var(--text-strong); }
.ct-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-full);
  font-family: var(--font-label); font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text);
}
.ct-status[data-st='confirmado'], .ct-status[data-st='preparo'] { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); color: var(--text-strong); }
.ct-status[data-st='enviado'] { background: color-mix(in srgb, var(--pix) 18%, var(--surface)); color: var(--pix); }
.ct-status[data-st='concluido'] { background: color-mix(in srgb, var(--pix) 12%, var(--surface)); color: var(--text-strong); }
.ct-status[data-st='cancelado'] { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }

/* Linha do tempo do pedido em andamento */
.ct-passos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ct-passos li { display: grid; gap: 6px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-align: center; }
.ct-passos li::before { content: ''; height: 8px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.ct-passos li[data-feito]::before { background: var(--brand); box-shadow: none; }
.ct-passos li[data-feito] { color: var(--text-strong); }
.ct-passos small { display: block; font-weight: 500; color: var(--text-muted); }

.ct-info { font-size: var(--text-sm); color: var(--text-muted); display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }
/* Ajuste 5: ícone 16px ao lado de texto 14px regular: traço 1.9 */
.ct-info .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; stroke-width: 1.9; }
.ct-vazio { text-align: center; color: var(--text-muted); padding: 24px 8px; }

/* Endereços */
.ct-end { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.ct-end + .ct-end { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.ct-end__nome { font-weight: 700; color: var(--text-strong); }
.ct-end__txt { font-size: var(--text-sm); color: var(--text-muted); }

.ct-escolha { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.ct-perigo { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .ct-aba { transition: none; }
}
