:root {
  --ap-green: #72A540;
  --ap-purple: #A53692;
  --ap-white: #FFFFFF;
  --ap-gray: #F2F2F2;
  --ap-text: #22242a;
}

body {
  font-family: 'Georgia', 'Segoe UI', serif;
  background: var(--ap-gray);
  color: var(--ap-text);
}

.ap-navbar {
  background: linear-gradient(90deg, var(--ap-green), var(--ap-purple));
}

.ap-logo-img {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.ap-btn-cta {
  color: var(--ap-purple) !important;
  font-weight: 600;
}

.card, .ap-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.btn-ap-primary {
  background-color: var(--ap-green);
  border-color: var(--ap-green);
  color: #fff;
}
.btn-ap-primary:hover { background-color: #175f28; color: #fff; }

.btn-ap-secondary {
  background-color: var(--ap-purple);
  border-color: var(--ap-purple);
  color: #fff;
}
.btn-ap-secondary:hover { background-color: #46216a; color: #fff; }

.ap-hero {
  background: linear-gradient(135deg, rgba(114,165,64,0.95), rgba(165,54,146,0.95));
  color: #fff;
  border-radius: 14px;
  padding: 60px 30px;
}

.ap-footer {
  background: #fff;
  border-top: 1px solid #e2e2e2;
}

.ap-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #A53692;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 999;
}

.stat-card {
  border-left: 4px solid var(--ap-green);
}

.status-badge { text-transform: capitalize; }

/* ---- How It Works ---- */
.ap-howitworks {
  position: relative;
}
.ap-step {
  position: relative;
  padding: 10px;
}
.ap-step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-green), var(--ap-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(30,122,52,0.25);
}
.ap-step-number {
  position: absolute;
  top: 0;
  right: 50%;
  margin-right: -46px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ap-purple);
  color: var(--ap-purple);
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .ap-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(50% + 46px);
    width: calc(100% - 46px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--ap-gray) 0 6px, transparent 6px 12px);
    z-index: 0;
  }
}

/* ---- Dark mode ---- */
html[data-theme="dark"] body {
  background: #14161a;
  color: #e6e6e6;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .ap-card {
  background: #1e2126;
  color: #e6e6e6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
html[data-theme="dark"] .ap-footer {
  background: #1e2126;
  border-top: 1px solid #2c2f36;
  color: #e6e6e6;
}
html[data-theme="dark"] .table {
  color: #e6e6e6;
}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background-color: #262a31;
  color: #e6e6e6;
  border-color: #3a3f47;
}
html[data-theme="dark"] .form-control::placeholder {
  color: #8a8f98;
}
html[data-theme="dark"] .table-hover tbody tr:hover {
  background-color: #262a31;
  color: #e6e6e6;
}
html[data-theme="dark"] .text-muted {
  color: #9aa0a8 !important;
}
html[data-theme="dark"] .alert-light {
  background-color: #262a31;
  color: #e6e6e6;
  border-color: #3a3f47;
}
