/* ============================================================
   WorkTrack — Shared stylesheet
   HTML5 + CSS3 only (no frameworks, no build tools)
   ============================================================ */

/* ---------- 1. Design tokens & base ---------- */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #eef2ff;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #0369a1;
  --info-bg: #e0f2fe;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 34px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main {
  flex: 1;
}

h1, h2, h3, h4 {
  line-height: 1.25;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
}

code {
  font-family: Consolas, "Courier New", monospace;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.86em;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: #c7d2fe;
}

/* ---------- 2. Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 3. Buttons, pills, chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- 4. Layout, hero, sections ---------- */
.page {
  padding: 40px 0 64px;
}

.hero {
  padding: 64px 0 48px;
  background: radial-gradient(1000px 420px at 82% -10%, #e0e7ff 0%, rgba(244, 246, 251, 0) 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary);
}

.hero .lead {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 700;
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.mini-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.mini-stat strong {
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.hero-panel-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.page-title {
  margin: 0 0 6px;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.page-sub {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- 5. Stat cards ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.stat-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
}

.stat-icon.indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.stat-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.stat-icon.amber {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.stat-icon.rose {
  background: #ffe4e6;
  color: #e11d48;
}

.stat-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-value {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: pre-line;
  word-break: break-word;
}

.stat-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- 6. Panels, toolbar, form controls ---------- */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  margin: 0;
  font-size: 1.05rem;
}

.panel-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.panel-body {
  padding: 22px;
}

.panel-link {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.panel-link:hover {
  text-decoration: underline;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(150px, 1fr)) auto;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
}

.toolbar.toolbar-2 {
  grid-template-columns: minmax(240px, 2fr) minmax(170px, 1fr) auto;
}

.toolbar .btn {
  align-self: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input.invalid,
.textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-msg {
  min-height: 16px;
  margin: 0;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.success-box {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 600;
}

.success-box.show {
  display: block;
}

.notice {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.88rem;
}

.notice svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* ---------- 7. Tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.table-payments table {
  min-width: 1000px;
}

thead th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.89rem;
  vertical-align: middle;
}

tbody tr {
  transition: background 0.15s;
}

tbody tr:hover {
  background: #f8faff;
}

tbody tr:last-child td {
  border-bottom: none;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable:hover {
  color: var(--primary);
}

th.sorted {
  color: var(--primary);
}

.sort-mark {
  margin-left: 4px;
  font-size: 0.68rem;
  opacity: 0.55;
}

th.sorted .sort-mark {
  opacity: 1;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.cell-strong {
  font-weight: 600;
}

.amount {
  font-weight: 700;
  white-space: nowrap;
}

.category-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.empty-cell {
  padding: 42px 16px;
  color: var(--muted);
  text-align: center;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}

.range-text {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- 8. Status badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

/* ---------- 9. Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--muted);
}

/* ---------- 10. Progress, activity & breakdowns ---------- */
.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #4338ca);
  transition: width 0.8s ease;
}

.progress-bar.green {
  background: linear-gradient(90deg, #34d399, #059669);
}

.progress-bar.amber {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.progress-bar.rose {
  background: linear-gradient(90deg, #fb7185, #e11d48);
}

.progress-block + .progress-block {
  margin-top: 22px;
}

.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.progress-top strong {
  font-size: 0.95rem;
}

.progress-top .muted {
  color: var(--muted);
  font-size: 0.8rem;
}

.progress-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row .bar-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.bar-top span:first-child {
  font-weight: 600;
}

.bar-top span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.activity {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.activity li:first-child {
  padding-top: 0;
}

.activity li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.activity-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
}

.activity-dot.work {
  background: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.activity-dot.pay {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.activity-body {
  min-width: 0;
}

.activity-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.activity-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.activity-time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.breakdown-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.breakdown-values {
  text-align: right;
}

.breakdown-values strong {
  display: block;
  font-size: 0.94rem;
}

.breakdown-values span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- 11. Hero panel, CTA, prose, FAQ, footer ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 36px;
  border-radius: 20px;
  background: linear-gradient(120deg, #4f46e5, #3730a3);
  color: #fff;
  box-shadow: 0 20px 40px rgba(67, 56, 202, 0.25);
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.cta-band p {
  max-width: 620px;
  margin: 0;
  color: #c7d2fe;
  font-size: 0.92rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: #eef2ff;
}

.prose p {
  color: var(--muted);
  font-size: 0.93rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 800;
}

.contact-direct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-direct-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-direct-info .stat-icon {
  margin-bottom: 0;
}

.contact-number {
  margin: 0 0 2px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.contact-direct-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question .plus {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.25s;
}

.faq-item.open .faq-question .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 18px 16px;
}

.site-footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

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

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 20px 16px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 14px;
  }

  .page {
    padding: 28px 0 48px;
  }

  .page-title {
    font-size: 1.55rem;
  }

  .toolbar,
  .toolbar.toolbar-2 {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .toolbar .btn {
    width: 100%;
  }

  .stat-value {
    font-size: 1.55rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .activity-time {
    display: none;
  }

  .table-footer {
    padding: 14px 16px;
  }

  .panel-head {
    padding: 16px;
  }

  .panel-body {
    padding: 16px;
  }

  .cta-band {
    padding: 26px 22px;
  }

  .hero-actions .btn {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 1.05rem;
  }

  .section {
    padding: 24px 0;
  }

  .section-head h2 {
    font-size: 1.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* ---------- 13. Ticker (Home) ---------- */
.ticker-section {
  padding: 10px 0 0;
}

.ticker-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0%, #f8faff 50%, #fff 100%);
  box-shadow: var(--shadow);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  transition: transform 0.6s ease;
  will-change: transform;
}

.ticker-item {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0 28px;
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 640px) {
  .ticker-wrap {
    border-radius: 12px;
  }

  .ticker-item {
    padding: 0 18px;
    font-size: 0.8rem;
  }
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ticker-pill.work {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.ticker-pill.pay {
  background: var(--success-bg);
  color: var(--success);
}

/* ---------- 14. WhatsApp Widget ---------- */
.wa-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-toggle {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-toggle:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.42);
}

.wa-panel {
  width: min(320px, calc(100vw - 36px));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  display: none;
  transform-origin: bottom right;
}

.wa-panel.open {
  display: block;
  animation: wa-pop 0.25s ease;
}

@keyframes wa-pop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #25d366, #128c7e);
  color: #fff;
}

.wa-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}

.wa-header-text h3 {
  margin: 0;
  font-size: 0.95rem;
}

.wa-header-text p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

.wa-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 0 14px 14px 14px;
  background: #f1f5f9;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s;
}

.wa-cta:hover {
  filter: brightness(0.95);
}

/* ---------- 15. Accessibility helpers ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
