 .site-footer {
  margin-bottom: -60px !important;
  width: 100%;
  margin: 2px 0 0;
  padding: 18px 0 0;
  background: #11152d;
  color: #ffffff;
}

.dmax-footer-shell {
  width: min(1300px, calc(100% - 4px));
  margin: 0 auto -120px;
  padding: 20px 16px 10px;
  transform: translateY(-150px) !important;
  background: #11152d;
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(2, 6, 23, 0.6);
  position: relative;
  overflow: hidden;
}

.dmax-footer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(99, 102, 241, 0.2), transparent 58%);
}

.dmax-footer-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e 0%, #38bdf8 50%, #6366f1 100%);
}

.dmax-footer-title {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #0b1228 0%, #111a3f 70%, #1a2560 100%);
  color: #f8fafc;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 12px;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  position: relative;
  z-index: 1;
}

.dmax-footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.dmax-contact-card h3 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.dmax-contact-card p {
  margin: 2px 0;
  font-size: 18px;
  line-height: 1.35;
  color: #ffffff;
}

.dmax-contact-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f172a, #1e2a5f);
  color: #e2e8f0;
  font-size: 20px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.dmax-payments {
  margin: 16px 0 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.dmax-payments-label {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.dmax-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
}

.dmax-pay-mpesa {
  background: #00a651;
  color: #fff;
}

.dmax-pay-bank {
  background: #0f172a;
  color: #e2e8f0;
}

.dmax-pay-paypal {
  background: #003087;
  color: #fff;
}

.dmax-footer-bottom {
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  color: #ffffff;
}

.dmax-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-link,
.footer-link.footer-inline-link {
  color: #ffffff;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}

.footer-legal-link:hover,
.footer-link.footer-inline-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .dmax-footer-title { font-size: 22px; }
  .dmax-contact-card h3 { font-size: 22px; }
  .dmax-contact-card p { font-size: 16px; }
  .dmax-payments-label { font-size: 16px; }
  .dmax-pay-badge { font-size: 14px; }
  .dmax-footer-bottom { font-size: 14px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .dmax-footer-contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .dmax-footer-title { width: 100%; text-align: center; font-size: 18px; }
  .dmax-contact-card h3 { font-size: 19px; }
  .dmax-contact-card p { font-size: 14px; }
  .dmax-footer-bottom { font-size: 13px; }
}

/* Mobile only: move footer card 30px left */
@media (max-width: 768px) {
  .dmax-footer-shell {
    margin: 0 auto -75px !important;
    position: relative !important;
    left: 0 !important;
    width: calc(100% + 28px) !important;
    max-width: calc(100% + 28px) !important;
    box-sizing: border-box !important;
    padding-left: 44px !important;
    padding-right: 16px !important;
    transform: translate(-60px, -150px) !important;
  }
}

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  #siteFooter .dmax-footer-shell {
    margin: 0 auto -75px !important;
    position: relative !important;
    left: 0 !important;
    width: calc(100% + 28px) !important;
    max-width: calc(100% + 28px) !important;
    box-sizing: border-box !important;
    padding-left: 44px !important;
    padding-right: 16px !important;
    transform: translate(-60px, -150px) !important;
  }
}
