/* ==========================================================================
   Premium (vitrine) + páginas de conta: /entrar, /pagar, /conta.
   Usa os tokens de style.css.
   ========================================================================== */

/* ---- Secção Premium na vitrine: visualmente separada das funcionalidades gratuitas ---- */
.section-premium {
  background: linear-gradient(160deg, var(--brand-dark) 0%, #1e3a52 100%);
  color: #fff;
}
.section-premium .section-head h2,
.section-premium .section-head p,
.section-premium .feature-card h3 { color: #fff; }
.section-premium .section-head p,
.section-premium .feature-card p { color: rgba(255, 255, 255, 0.82); }
.section-premium .eyebrow { background: rgba(255, 255, 255, 0.14); color: #fff; }
.section-premium .feature-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}
.section-premium .feature-icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.premium-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  vertical-align: middle;
}
.premium-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.premium-note { text-align: center; margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }

/* ---- Páginas de conta ---- */
.account-page { min-height: 100vh; background: var(--page); color: var(--text); }
.account-header { padding: 18px 0; border-bottom: 1px solid var(--border); background: var(--surface-raised); }
.account-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-main { padding: 48px 0 80px; }
.account-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}
.account-card h1 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.account-card .lead { color: var(--text-muted); margin-bottom: 24px; }
.muted { color: var(--text-muted); font-size: 14px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.field small { color: var(--text-muted); font-size: 12.5px; }

.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.alert-info { background: var(--brand-tint); color: var(--text); border: 1px solid var(--border); }

.plans-list { display: grid; gap: 10px; margin-bottom: 20px; }
.plan-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface);
}
.plan-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint); }
.plan-option-body { display: grid; gap: 2px; }
.plan-option-price { font-size: 20px; font-weight: 800; color: var(--brand-dark); }

.payment-status { margin-top: 20px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.payment-status[data-tone="info"] { background: var(--brand-tint); }
.payment-status[data-tone="success"] { background: #e8f7ee; border-color: #b6e3c6; color: #14532d; }
.payment-status[data-tone="error"] { background: #fdecec; border-color: #f5c2c2; color: #9b1c1c; }
.payment-status h2 { font-size: 17px; margin-bottom: 6px; }
.payment-status a { display: inline-block; margin-top: 10px; font-weight: 700; }

.secure-note { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-muted); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: #fff; }

/* ---- Entradas para o Premium (cabeçalho, hero, faixa fixa no telemóvel) ---- */
.btn-premium {
  background: linear-gradient(135deg, var(--accent), #e39a3b);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(201, 121, 30, .8);
}
.btn-premium:hover { filter: brightness(1.05); }
.btn-premium .icon { fill: currentColor; stroke: none; }

.premium-ribbon {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px; padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.premium-ribbon:hover { border-color: var(--accent); }
.premium-ribbon-tag {
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
}

.premium-sticky {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  display: none; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #e39a3b);
  color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
}
.premium-sticky .icon { fill: currentColor; stroke: none; }
.premium-sticky-price { font-weight: 500; opacity: .9; }
@media (max-width: 760px) { .premium-sticky { display: flex; } body { padding-bottom: 80px; } }

/* ---- Lista Premium (vitrine) ---- */
.premium-price {
  display: inline-block; margin-top: 14px; padding: 8px 18px;
  border-radius: 999px; background: rgba(255, 255, 255, .14);
  color: #fff; font-weight: 700; font-size: 17px;
}
.premium-group { margin-top: 36px; }
.premium-group-title {
  color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.premium-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.premium-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.premium-card:hover, .premium-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, .12);
}
.premium-card .feature-icon { flex: none; }
.premium-card-body { display: grid; gap: 6px; }
.premium-card-body strong { font-size: 16.5px; }
.premium-card-body > span:not(.premium-card-cta) { color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.premium-card-cta { color: #ffd39c; font-size: 13.5px; font-weight: 700; }

/* ---- Página /conta ---- */
.account-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1040px; margin: 0 auto;
}
.account-grid .account-card { max-width: none; margin: 0; }
.account-wide { grid-column: 1 / -1; }
.account-card h2 { font-size: 18px; margin-bottom: 14px; }

.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-dark); font-size: 30px; font-weight: 800;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h1 { margin-bottom: 4px; }

.plan-card-account[data-state="active"] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(201, 121, 30, .25), var(--shadow); }
.plan-status { color: var(--text-muted); margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat strong { display: block; font-size: 20px; color: var(--brand-dark); }
.stat span { font-size: 12.5px; color: var(--text-muted); }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--text-muted); font-size: 14px; }
.details dd { margin: 0; font-weight: 600; word-break: break-word; }

.education-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.education-list li { display: grid; gap: 2px; }

.table-scroll { overflow-x: auto; }
.payments-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.payments-table th, .payments-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.payments-table th { color: var(--text-muted); font-weight: 600; font-size: 13px; }
.status { font-weight: 700; }
.status-paid { color: #15803d; }
.status-pending { color: var(--brand-dark); }
.status-failed, .status-expired { color: #b91c1c; }

.account-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.plan-option-features { margin: 6px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 13.5px; }
