:root {
  --pfa-yellow: #f7d417;
  --pfa-yellow-dark: #e6c400;
  --pfa-dark: #16181d;
  --pfa-navy: #1e2a4a;
  --pfa-green: #8bc93f;
  --pfa-red: #e5484d;
  --pfa-gray: #6b7280;
  --pfa-bg: #f4f5f7;
  --pfa-card: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--pfa-bg);
  color: #222;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 480px; margin: 40px auto; padding: 0 20px; }
.container-md { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--pfa-dark);
  color: #ddd;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--pfa-yellow); font-weight: 600; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--pfa-yellow);
  padding: 14px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar .brand { font-size: 22px; font-weight: 800; color: var(--pfa-dark); }
.navbar .brand span { display: block; font-size: 11px; font-weight: 500; }
.navbar .nav-links a {
  margin-left: 20px;
  font-weight: 600;
  color: var(--pfa-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  transition: transform .1s ease, opacity .15s ease;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-primary { background: var(--pfa-navy); color: #fff; }
.btn-yellow { background: var(--pfa-yellow); color: var(--pfa-dark); }
.btn-green { background: var(--pfa-green); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--pfa-navy); color: var(--pfa-navy); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }
.btn-danger { background: var(--pfa-red); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

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

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=number], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d9dce1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fafbfc;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pfa-yellow-dark); background: #fff; }
.hint { font-size: 12px; color: var(--pfa-gray); margin-top: 4px; }

/* ---------- Alerts / Flash ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.alert-success { background: #e7f6e0; color: #2f7a1f; border: 1px solid #b7e6a4; }
.alert-error { background: #fdeaea; color: #b2211f; border: 1px solid #f5b9b8; }
.alert-info { background: #e8f0fe; color: #1a4fba; border: 1px solid #b9d0f7; }

/* ---------- Badges / Status pills ---------- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-yellow { background: #fff4c2; color: #8a6d00; }
.badge-green  { background: #dcf5cd; color: #2f7a1f; }
.badge-red    { background: #fdeaea; color: #b2211f; }
.badge-gray   { background: #eceef1; color: #555; }
.badge-blue   { background: #e8f0fe; color: #1a4fba; }

/* ---------- Feature list / pricing ---------- */
.feature-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #eee;
}
.feature-row:last-child { border-bottom: none; }
.feature-info { display: flex; align-items: center; gap: 8px; }
.info-dot {
  width: 18px; height: 18px; border-radius: 50%; background: #e5e7eb;
  color: #444; font-size: 11px; display: inline-flex; align-items: center; justify-content: center;
  cursor: help; font-weight: 700;
}
.price-tag { font-weight: 700; color: var(--pfa-navy); }

.included-list { list-style: none; padding: 0; margin: 0; }
.included-list li { padding: 6px 0; padding-left: 22px; position: relative; font-size: 14px; }
.included-list li:before { content: "✓"; position: absolute; left: 0; color: var(--pfa-green); font-weight: 700; }

.summary-box {
  background: #f9fafb; border-radius: var(--radius); padding: 18px; margin-top: 16px;
}
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-total { font-size: 20px; font-weight: 800; color: var(--pfa-navy); border-top: 1px dashed #ccc; margin-top: 8px; padding-top: 10px; }

/* ---------- Progress / Status stepper ---------- */
.progress-bar-track { background: #eceef1; border-radius: 999px; height: 10px; overflow: hidden; }
.progress-bar-fill { background: linear-gradient(90deg, var(--pfa-yellow), var(--pfa-green)); height: 100%; transition: width .3s ease; }

.stepper { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.step-pill {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #eceef1; color: #888;
}
.step-pill.done { background: var(--pfa-green); color: #fff; }
.step-pill.current { background: var(--pfa-navy); color: #fff; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; }
th { background: #f9fafb; font-weight: 700; color: #444; }
tr:hover td { background: #fbfbfc; }

/* ---------- Layout: dashboard sidebar ---------- */
.dash-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; background: var(--pfa-dark); color: #ddd; padding: 20px 0; flex-shrink: 0;
}
.sidebar .brand { color: var(--pfa-yellow); font-weight: 800; font-size: 18px; padding: 0 20px 20px; }
.sidebar a {
  display: block; padding: 12px 20px; color: #c7c9cf; font-weight: 500; font-size: 14px;
  border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,0.06); color: #fff; border-left-color: var(--pfa-yellow); }
.main-content { flex: 1; padding: 26px; max-width: 1100px; }
.main-content h1 { margin-top: 0; }

.topinfo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .dash-wrap { flex-direction: column; }
  .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; }
  .sidebar .brand { display: none; }
  .sidebar a { white-space: nowrap; padding: 8px 14px; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar a.active { border-left: none; border-bottom-color: var(--pfa-yellow); }
}

.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--pfa-navy); }
.stat-card .label { font-size: 13px; color: var(--pfa-gray); font-weight: 600; }

.hero {
  background: linear-gradient(135deg, #fff8dc, #fff);
  padding: 40px 0;
}

footer { background: var(--pfa-dark); color: #999; text-align: center; padding: 20px 0; font-size: 13px; margin-top: 40px; }

.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 24px; max-width: 420px; width: 90%; max-height: 80vh; overflow-y: auto; }
.modal-close { float: right; cursor: pointer; font-size: 20px; color: #888; }

.file-status-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
