/* ====== Página Conta (dark, responsivo e uniforme com index.css) ====== */
:root {
  --bg: #0E0F12;
  --text: #FFFFFF;
  --panel: #12131A;
  --panel-border: #1C1D26;
  --panel-soft: #0F1014;
  --brand: #FF344E;
  --brand-10: rgba(255, 52, 78, 0.10);
  --brand-16: rgba(255, 52, 78, 0.16);
}

.is-hidden { display: none !important; }

/* Acessibilidade: esconder só visualmente */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Topo com logo alinhada à esquerda */
.account-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(to bottom, rgba(14,15,18,.9) 0%, rgba(14,15,18,.0) 100%);
}

.logo-link { display: inline-flex; align-items: center; padding: 14px 16px 8px; }
.logo { width: 100px; height: auto; display: block; }

/* Wrapper central */
.account-wrapper {
  display: grid;
  place-items: start center;
  min-height: calc(100dvh - 72px);
  padding-top: 10vh;
}

.account-card {
  width: 100%;
  max-width: 540px;
  background: transparent;
}

/* ====== Bloco de perfil simples (avatar + saudação) ====== */
.account-profile {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.account-avatar-wrap {
  width: 180px;
  height: 180px;
  margin-bottom: 10px;
}

.account-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #17181D;
  border: 3px solid var(--brand);
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
}

.account-greeting {
  font-size: 0.98rem;
  color: #E5E7EB;
}

.account-greeting span#accountUserName {
  font-size: 1.05rem;
  font-weight: 700;
  color: #dd344e;
}

/* ====== Ações da conta ====== */
.account-actions {
  width: 100%;
  display: grid;
  gap: 10px;
}

.account-btn {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--panel-border);
  background: #0F1014; color: var(--brand);
  font: 600 1rem/1.1 "Poppins", Arial, sans-serif;
  text-align: center; text-decoration: none;
  padding: 14px 18px; border-radius: 6px;
  transition: background .18s ease, transform .12s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer; user-select: none;
}

.account-btn:hover,
.account-btn:focus-visible {
  background: var(--panel); color: var(--brand);
  border-color: #242634; box-shadow: 0 0 0 2px var(--brand-16); outline: none;
}

.account-btn:active { transform: scale(.99); }

.account-btn.is-danger { background: #0F1014; color: var(--brand); }
.account-btn.is-danger:hover,
.account-btn.is-danger:focus-visible {
  background: var(--panel); border-color: #2A2C35; box-shadow: 0 0 0 2px var(--brand-16);
}

/* Responsivo */
@media (max-width: 480px) {
  .logo { width: 75px; }
  .account-btn { font-size: .98rem; padding: 13px 16px; }
  .account-avatar-wrap {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 1024px) {
  .account-wrapper { padding-top: 14vh; }
}

/* ===========================================
   Estilos específicos de MINHAS OBRAS
   =========================================== */
.obras-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1.1;
  color: var(--text);
}

/* Botão fixo no canto superior direito, texto branco */
.btn.btn-primary.obras-cta {
  position: fixed;
  top: 14px;          /* alinha com a barra do topo */
  right: 16px;
  z-index: 10;        /* acima do conteúdo, abaixo de modais se houver */
  width: auto;        /* não ocupar 100% como .btn padrão */
  padding: 10px 14px; /* proporção próxima ao mock */
  border-radius: 999px;
  color: #FFFFFF !important; /* força texto branco sobre .btn-primary */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .obras-title { font-size: 1.5rem; }
  .btn.btn-primary.obras-cta { top: 12px; right: 12px; padding: 10px 12px; }
}
