html, body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text);
  font-size: 15px;
}

a { color: var(--navy); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { color: var(--dark); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }

/* ----- Botões ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover:not(:disabled) { background: var(--gold-lt); box-shadow: var(--shadow); }

.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover:not(:disabled) { background: var(--navy-2); }

.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-2); }

.btn-block { width: 100%; }

/* ----- Inputs ----- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; color: var(--text); font-size: 14px; }
.field .hint { font-size: 13px; color: var(--text-3); }
.field input,
.field select,
.field textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--text); font-size: 15px; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.field textarea { resize: vertical; min-height: 90px; }

/* ----- Cards ----- */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px;
}

/* ----- Topbar ----- */
.topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--dark); font-size: 17px; letter-spacing: -.01em; }
.topbar .brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.2); }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--text-2); font-weight: 500; font-size: 14px; }
.topbar nav a:hover { color: var(--navy); }
.topbar .user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: var(--bg-2); border-radius: 999px; font-size: 13px; color: var(--text-2);
}

/* ----- Page container ----- */
.page { max-width: 1100px; margin: 0 auto; padding: 32px 24px 60px; }
.page-narrow { max-width: 720px; margin: 0 auto; padding: 32px 24px 60px; }

/* ----- Toasts / status ----- */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-error   { background: #FCEAE7; color: var(--danger); border: 1px solid #F2C9C2; }
.alert-success { background: #E5F6EC; color: var(--success); border: 1px solid #C2E5CF; }
.alert-info    { background: #EAF2F8; color: var(--info); border: 1px solid #C2D9EC; }

/* ----- Badges ----- */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-trial   { background: var(--gold-bg); color: var(--gold); }
.badge-active  { background: #E5F6EC; color: var(--success); }
.badge-canceled { background: #FCEAE7; color: var(--danger); }
.badge-expired { background: var(--bg-2); color: var(--muted); }

/* ----- Loader ----- */
.loader {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white); border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loader-dark { border: 2px solid rgba(13,31,53,.2); border-top-color: var(--dark); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Util */
.hidden { display: none !important; }
.text-muted { color: var(--text-3); }
.text-center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 12px; }
