:root {
  --orange: #F6821F;
  --orange-dark: #E2700B;
  --text: #1D1F20;
  --body: #4B5563;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg: #F7F7F8;
  --white: #FFFFFF;
  --error: #DC2626;
  --ok: #059669;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, #FFE8D1 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #FFF3E6 0%, transparent 50%),
    var(--bg);
  line-height: 1.5;
}

a { color: var(--orange); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
}
.nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--body); font-weight: 600; text-decoration: none; }
.nav a.active, .nav a:hover { color: var(--orange); }

.account-shell { padding: 36px 0 64px; }
.account-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}
.account-card h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
}
.lede { margin: 0 0 22px; color: var(--muted); }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.tabs a {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--body);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  background: #fff;
}
.tabs a.active {
  border-color: var(--orange);
  color: var(--orange);
  background: #FFF8F1;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

label.field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
label.field span.hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #FAFAFA;
  color: var(--text);
}
textarea { min-height: 84px; resize: vertical; }
.full { grid-column: 1 / -1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); text-decoration: none; }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 14px;
}
.alert-error { background: #FEF2F2; color: var(--error); border: 1px solid #FECACA; }
.alert-ok { background: #ECFDF5; color: var(--ok); border: 1px solid #A7F3D0; }

.table-wrap { overflow-x: auto; }
table.purchases {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.purchases th,
table.purchases td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.purchases th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #F3F4F6;
  color: var(--body);
}
.badge-paid { background: #ECFDF5; color: var(--ok); }
.badge-pending { background: #FFF7ED; color: #C2410C; }
.empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: #FAFAFA;
}
.footer-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
