* { box-sizing: border-box; }

:root {
  --bg: #100E0A;
  --bg-deep: #0C0A07;
  --surface: #16130D;
  --surface-input: #100E0A;
  --card-problema: #141109;
  --border: #2A2619;
  --border-subtle: #221F17;
  --border-input: #33301F;
  --border-neutral: #3A3527;
  --gold: #C9A227;
  --gold-light: #E3C05A;
  --gold-hover: #F0D580;
  --text-high: #F4EFE6;
  --text-medium: #C4BCAB;
  --text-body: #B3AB99;
  --text-body-2: #A39C8B;
  --text-secondary: #9A9282;
  --text-dim: #8F8878;
  --text-dim-2: #8A8270;
  --text-faint: #6B6455;
  --success: #5FB98A;
  --success-bg: rgba(95,185,138,0.14);
  --info: #6FA8DC;
  --info-bg: rgba(111,168,220,0.12);
  --warn: #E3C05A;
  --warn-bg: rgba(201,162,39,0.12);
  --danger: #C4674F;
  --danger-bg: rgba(196,103,79,0.14);
  --font-display: 'Spectral', Georgia, serif;
  --font-ui: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
}

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  color: var(--text-high);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold-hover); }

::selection { background: rgba(201,162,39,0.3); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2E2A21; border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #453f30; }

@keyframes cpFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cpToast { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}
.container-sm { max-width: 540px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 768px; margin: 0 auto; padding: 0 20px; }

.gold { color: var(--gold-light); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.btn-gold, .btn-outline, .btn-danger {
  display: inline-block;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  text-align: center;
  font-family: var(--font-ui);
  transition: border-color 0.2s, transform 0.2s, opacity 0.2s;
}
.btn-gold { background-color: var(--gold); color: var(--bg); }
.btn-gold:hover { opacity: 0.88; color: var(--bg); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline {
  border-color: var(--border-neutral);
  color: var(--text-high);
  background: #1F1B13;
}
.btn-outline:hover { border-color: var(--gold); color: var(--text-high); }
.btn-ghost {
  border: 1px solid var(--border-neutral);
  color: var(--text-medium);
  background: transparent;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-ui);
}
.btn-ghost:hover { color: var(--text-high); border-color: var(--gold); }
.btn-danger { border-color: #6b3a30; color: var(--danger); background: transparent; font-size: 13px; padding: 8px 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

input, textarea, select {
  background-color: var(--surface-input);
  border: 1px solid var(--border-input);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text-high);
  width: 100%;
  font-size: 15px;
  font-family: var(--font-ui);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
label { font-size: 13px; color: var(--text-body); font-weight: 600; display: block; margin-bottom: 7px; }

.field-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.field-hint { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

.header {
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(16,14,10,0.82);
  backdrop-filter: blur(14px);
  z-index: 50;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: 0.01em; white-space: nowrap; color: var(--text-high); }
.brand-sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim-2); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; flex-wrap: wrap; }
.nav-links a { color: var(--text-medium); font-weight: 500; }
.nav-links a:hover { color: var(--gold-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 6vw;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.footer img { height: 104px; width: auto; margin: 0 auto 20px; display: block; }
.footer p { max-width: 640px; margin: 0.5rem auto; }
.footer .copyright { font-size: 13px; color: var(--text-dim-2); margin: 0 0 14px; }
.footer .disclaimer { font-size: 12px; color: var(--text-faint); line-height: 1.6; }

.hero { padding: 88px 6vw 44px; max-width: 1180px; margin: 0 auto; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-input); background: #171510;
  border-radius: 999px; padding: 7px 16px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 30px;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: 58px; line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 auto 24px; max-width: 900px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { font-size: 19px; line-height: 1.6; color: var(--text-body); max-width: 680px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.section { padding: 70px 6vw; }
.section-tight { padding: 20px 6vw 80px; }
.section-alt { background: var(--bg-deep); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section h2, .section-head h2 { font-size: 40px; }
.section-sub { color: var(--text-secondary); font-size: 16px; max-width: 660px; margin: 16px auto 0; line-height: 1.6; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .section h2, .section-head h2 { font-size: 30px; }
}

.chip {
  background: #171510; border: 1px solid #2E2A1C; color: var(--text-medium);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  display: inline-block;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-block;
}
.status-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.status-success { background: var(--success-bg); color: var(--success); }
.status-info { background: var(--info-bg); color: var(--info); }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-danger { background: var(--danger-bg); color: var(--danger); }

.step { }
.step-number {
  font-family: var(--font-display); font-size: 15px; color: var(--gold);
  font-weight: 700; margin-bottom: 16px; letter-spacing: 0.1em;
}
.step h4 { font-size: 21px; margin: 0 0 10px; }
.step p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin: 0; }

.resource-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.resource-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: rgba(201,162,39,0.1); border: 1px solid var(--border-neutral);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--gold-light);
}
.resource-card h4 { font-size: 21px; margin: 0 0 10px; }
.resource-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.split-card { border-radius: 18px; padding: 34px; border: 1px solid var(--border); }
.split-card.problema { background: var(--card-problema); border-left: 3px solid var(--border-neutral); }
.split-card.virada { background: linear-gradient(160deg,#211C11,#151109); border: 1px solid var(--border-neutral); border-left: 3px solid var(--gold); }
.split-card .eyebrow-sm { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim-2); font-weight: 700; margin-bottom: 14px; }
.split-card.virada .eyebrow-sm { color: var(--gold); }
.split-card h3 { font-size: 23px; margin: 0 0 12px; }
.split-card p { font-size: 15px; line-height: 1.65; margin: 0; color: var(--text-body-2); }

.cta-band {
  background: radial-gradient(120% 160% at 50% 0%, #241F14, #100E0A);
  border: 1px solid var(--border-input); border-radius: 24px;
  padding: 60px 40px; text-align: center;
}
.cta-band h2 { font-size: 38px; margin: 0 0 14px; }
.cta-band p { color: var(--text-body-2); font-size: 17px; margin: 0 auto 32px; max-width: 540px; line-height: 1.6; }

.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-high);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { color: var(--gold); font-size: 22px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; margin: 0 0 20px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.layout-with-nav { display: flex; gap: 0; max-width: none; margin: 0; padding: 0; min-height: calc(100vh - 89px); }
.side-nav {
  width: 256px; flex-shrink: 0; background: var(--bg-deep);
  border-right: 1px solid var(--border-subtle); padding: 24px 16px;
  display: flex; flex-direction: column;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500;
  padding: 11px 12px; border-radius: 9px; color: var(--text-medium); margin-bottom: 4px;
  border: 1px solid transparent;
}
.side-nav a:hover, .side-nav a.active {
  background: rgba(201,162,39,0.1); border-color: var(--border-neutral); color: var(--text-high);
}
.side-nav .logout {
  background: none; border: none; color: var(--text-dim-2); text-decoration: underline;
  cursor: pointer; font-size: 13px; margin-top: auto; text-align: left; padding: 12px 8px 0;
}
.content-area { flex: 1; min-width: 0; padding: 40px 48px; }
@media (max-width: 900px) {
  .layout-with-nav { flex-direction: column; }
  .side-nav { width: 100%; }
  .content-area { padding: 28px 20px; }
}

.avatar-preview { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); margin-top: 0.75rem; }
.avatar-circle {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(201,162,39,0.14); border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--gold-light); overflow: hidden; font-family: var(--font-display);
}

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.875rem; }

.specialty-chip {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-input);
  color: var(--text-medium);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
}
.specialty-chip.selected { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.chips-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.flex-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; }
.text-gray { color: var(--text-dim); }
.text-center { text-align: center; }
.capitalize { text-transform: capitalize; }
.flex-gap { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.space-y > * + * { margin-top: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
