/* ---- Base container (reusable across all Amanah sections) ---- */
.amanah-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
  position: relative;
  z-index: 2;
}

/* ---- Color tokens (scoped, won't leak into theme) ---- */
.amanah-hero {
  --amanah-primary: #0B1E40;
  --amanah-secondary: #129478;
  --amanah-accent-green: #0BDD7C;
  --amanah-gold: #BD9332;
  --amanah-gold-light: #C9952A;
  --amanah-dark-bg: #0A1533;
  --amanah-light-gray: #E5E5E5;
  --amanah-dark-accent: #1A170F;
  --amanah-white: #FFFFFF;

  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 70px 0 40px;
  color: var(--amanah-white);
  background-color: var(--amanah-dark-bg);
  box-sizing: border-box;
}
.amanah-hero *,
.amanah-hero *::before,
.amanah-hero *::after { box-sizing: border-box; }

/* ---- Background layers ---- */
.amanah-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.amanah-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.55;
}
.amanah-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(6, 15, 15, 0.97) 0%,
      rgba(8, 27, 24, 0.94) 38%,
      rgba(10, 21, 51, 0.85) 62%,
      rgba(10, 21, 51, 0.55) 100%);
}
/* Subtle Islamic geometric pattern overlay */
.amanah-hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23BD9332' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
}

/* ---- Layout grid ---- */
.amanah-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 60px;
}

/* ---- Eyebrow badge ---- */
.amanah-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(189, 147, 50, 0.35);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--amanah-light-gray);
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.amanah-badge__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amanah-gold);
  color: var(--amanah-dark-accent);
  font-size: 12px;
}

/* ---- Headline ---- */
.amanah-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
  margin: 0 0 22px;
  color: var(--amanah-white);
  letter-spacing: -0.5px;
}
.amanah-text-gold {
  color: var(--amanah-gold-light);
  background: linear-gradient(92deg, var(--amanah-gold-light), var(--amanah-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.amanah-hero__subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(229, 229, 229, 0.85);
  max-width: 560px;
  margin: 0 0 28px;
  font-weight: 300;
}

/* ---- Trust strip ---- */
.amanah-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}
.amanah-trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--amanah-white);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}
.amanah-trust-strip__item i {
  color: var(--amanah-accent-green);
  font-size: 13px;
}
.amanah-trust-strip__item:hover {
  background: rgba(11, 221, 124, 0.1);
  border-color: rgba(11, 221, 124, 0.4);
  transform: translateY(-2px);
}

/* ---- Verse block ---- */
.amanah-verse {
  margin: 0 0 34px;
  padding: 22px 26px;
  border-left: 3px solid var(--amanah-gold);
  background: linear-gradient(90deg, rgba(189, 147, 50, 0.08), rgba(189, 147, 50, 0));
  border-radius: 0 14px 14px 0;
}
.amanah-verse__arabic {
  font-family: 'Traditional Arabic', 'Amiri', 'Poppins', serif;
  font-size: 24px;
  line-height: 2;
  color: var(--amanah-gold-light);
  margin: 0 0 12px;
  font-weight: 600;
}
.amanah-verse__translation {
  font-size: 14.5px;
  font-style: italic;
  color: rgba(229, 229, 229, 0.8);
  margin: 0;
  font-weight: 300;
}
.amanah-verse__translation cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 600;
  color: var(--amanah-gold);
  font-size: 13px;
}

/* ---- CTAs / Buttons ---- */
.amanah-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.amanah-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.amanah-btn--primary {
  background: linear-gradient(135deg, var(--amanah-gold-light), var(--amanah-gold));
  color: var(--amanah-dark-accent);
  box-shadow: 0 8px 24px rgba(189, 147, 50, 0.35);
}
.amanah-btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(189, 147, 50, 0.5);
}
.amanah-btn--primary i { transition: transform 0.3s ease; }
.amanah-btn--primary:hover i { transform: translateX(4px); }

.amanah-btn--secondary {
  background: transparent;
  color: var(--amanah-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.amanah-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}
.amanah-btn__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amanah-secondary);
  color: var(--amanah-white);
  font-size: 10px;
}

/* =========================================================
   DASHBOARD MOCKUP VISUAL
   ========================================================= */
.amanah-hero__visual {
  position: relative;
  min-height: 480px;
}

.amanah-device--tablet {
  position: relative;
  background: linear-gradient(160deg, #0d1f1c, #071310);
  border: 10px solid #0e1b16;
  border-radius: 22px;
  padding: 4px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(189, 147, 50, 0.2);
  max-width: 620px;
  margin: 0 auto;
}
.amanah-device--tablet .amanah-device__screen {
  background: linear-gradient(165deg, #0c2420, #081a18 60%, #0a1e2b);
  border-radius: 14px;
  padding: 22px;
}

.amanah-dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.amanah-dash__title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.amanah-dash__title i {
  color: var(--amanah-gold);
  font-size: 16px;
}
.amanah-dash__title h2 {
  font-size: 14px;
  margin: 0;
  color: var(--amanah-white);
  font-weight: 600;
}
.amanah-dash__title p {
  font-size: 11px;
  margin: 2px 0 0;
  color: rgba(229, 229, 229, 0.55);
  font-weight: 300;
}
.amanah-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amanah-accent-green);
  background: rgba(11, 221, 124, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
}
.amanah-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amanah-accent-green);
  animation: amanahPulse 1.6s infinite;
}
@keyframes amanahPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.amanah-dash__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.amanah-dash__stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.amanah-dash__stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--amanah-white);
  margin-bottom: 3px;
}
.amanah-dash__stat span {
  font-size: 10.5px;
  color: rgba(229, 229, 229, 0.55);
  font-weight: 300;
}

.amanah-dash__panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.amanah-dash__panel h3 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(229, 229, 229, 0.55);
  margin: 0 0 12px;
  font-weight: 500;
}

.amanah-allocation-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}
.amanah-allocation-bar__seg { height: 100%; }
.amanah-allocation-bar__seg--maintenance { background: var(--amanah-accent-green); }
.amanah-allocation-bar__seg--zakat { background: var(--amanah-gold); }
.amanah-allocation-bar__seg--education { background: var(--amanah-secondary); }
.amanah-allocation-bar__seg--community { background: rgba(229, 229, 229, 0.4); }

.amanah-allocation-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}
.amanah-allocation-legend li {
  font-size: 11px;
  font-weight: 600;
  color: var(--amanah-white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.amanah-allocation-legend span {
  display: block;
  font-size: 9.5px;
  font-weight: 300;
  color: rgba(229, 229, 229, 0.5);
}
.amanah-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  display: inline-block;
}
.amanah-dot--maintenance { background: var(--amanah-accent-green); }
.amanah-dot--zakat { background: var(--amanah-gold); }
.amanah-dot--education { background: var(--amanah-secondary); }
.amanah-dot--community { background: rgba(229, 229, 229, 0.4); }

.amanah-dash__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
}
.amanah-dash__panel--activity,
.amanah-dash__panel--score {
  margin-bottom: 0;
}

.amanah-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.amanah-activity-list li {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
}
.amanah-activity-list i {
  grid-row: 1 / 3;
  color: var(--amanah-gold);
  font-size: 12px;
  opacity: 0.85;
}
.amanah-activity-list__label {
  font-size: 11.5px;
  color: var(--amanah-white);
  font-weight: 500;
}
.amanah-activity-list__amount {
  font-size: 11.5px;
  color: var(--amanah-accent-green);
  font-weight: 600;
  text-align: right;
}
.amanah-activity-list__date {
  grid-column: 2 / 3;
  font-size: 9.5px;
  color: rgba(229, 229, 229, 0.45);
  font-weight: 300;
}

/* Score ring (CSS conic-gradient donut) */
.amanah-score-ring {
  --amanah-score: 92;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 4px auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: conic-gradient(
    var(--amanah-accent-green) calc(var(--amanah-score) * 1%),
    rgba(255, 255, 255, 0.08) 0
  );
  position: relative;
}
.amanah-score-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #0c2420;
}
.amanah-score-ring__value {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--amanah-white);
}
.amanah-score-ring__label {
  position: relative;
  font-size: 8px;
  color: var(--amanah-accent-green);
  font-weight: 600;
  text-transform: uppercase;
}
.amanah-dash__updated {
  text-align: center;
  font-size: 9.5px;
  color: rgba(229, 229, 229, 0.45);
  margin: 0;
}

/* ---- Phone mockup (peeking bottom right) ---- */
.amanah-device--phone {
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 190px;
  background: #0e1b16;
  border: 8px solid #0e1b16;
  border-radius: 26px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55);
  z-index: 3;
}
.amanah-device--phone .amanah-device__screen {
  background: linear-gradient(165deg, #0c2420, #081a18 60%, #0a1e2b);
  border-radius: 18px;
  padding: 14px;
}
.amanah-dash__title--mini h2 { font-size: 10px; }
.amanah-dash__title--mini p { font-size: 8px; }
.amanah-dash__title--mini i { font-size: 12px; }

.amanah-dash__stats--mini {
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 12px 0;
}
.amanah-dash__stats--mini .amanah-dash__stat { padding: 8px 10px; }
.amanah-dash__stats--mini strong { font-size: 14px; }
.amanah-dash__stats--mini span { font-size: 8.5px; }

.amanah-dash__panel--mini { padding: 10px; }
.amanah-mini-donut {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 6px auto 10px;
  background: conic-gradient(
    var(--amanah-accent-green) 0% 38%,
    var(--amanah-gold) 38% 67%,
    var(--amanah-secondary) 67% 87%,
    rgba(229, 229, 229, 0.35) 87% 100%
  );
  position: relative;
}
.amanah-mini-donut::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #0c2420;
}
.amanah-mini-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.amanah-mini-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  color: rgba(229, 229, 229, 0.75);
  font-weight: 500;
}
.amanah-mini-legend span {
  margin-left: auto;
  color: var(--amanah-white);
  font-weight: 600;
}

/* =========================================================
   FLOATING STATS STRIP (bottom of hero)
   ========================================================= */
.amanah-hero-stats {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(189, 147, 50, 0.25);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.amanah-hero-stats__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: linear-gradient(160deg, rgba(12, 36, 32, 0.9), rgba(10, 21, 51, 0.9));
  transition: background 0.3s ease;
}
.amanah-hero-stats__item:hover {
  background: linear-gradient(160deg, rgba(11, 221, 124, 0.12), rgba(10, 21, 51, 0.9));
}
.amanah-hero-stats__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amanah-gold-light), var(--amanah-gold));
  color: var(--amanah-dark-accent);
  font-size: 17px;
}
.amanah-hero-stats__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.amanah-hero-stats__text {
  display: flex;
  flex-direction: column;
}
.amanah-hero-stats__text strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--amanah-white);
  line-height: 1.2;
}
.amanah-hero-stats__text em {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  color: rgba(229, 229, 229, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
[data-amanah-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-amanah-animate].amanah-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .amanah-hero__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .amanah-hero__visual { min-height: auto; padding-bottom: 40px; }
  .amanah-device--phone { right: 10px; bottom: -40px; width: 170px; }
  .amanah-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .amanah-container { padding-left: 18px; padding-right: 18px; }
  .amanah-hero { padding: 50px 0 30px; }
  .amanah-hero__title { font-size: 30px; }
  .amanah-verse__arabic { font-size: 19px; }
  .amanah-dash__row { grid-template-columns: 1fr; }
  .amanah-device--phone { display: none; } /* avoid clutter on small screens */
  .amanah-hero-stats { grid-template-columns: 1fr; }
  .amanah-hero__actions { flex-direction: column; }
  .amanah-btn { width: 100%; justify-content: center; }
}
/* ---- Base container (shared across Amanah sections — skip if already added) ---- */
.amanah-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* =========================================================
   THE GAP SECTION
   ========================================================= */
.amanah-gap {
  --amanah-primary: #0B1E40;
  --amanah-secondary: #129478;
  --amanah-accent-green: #0BDD7C;
  --amanah-gold: #BD9332;
  --amanah-gold-light: #C9952A;
  --amanah-dark-bg: #0A1533;
  --amanah-light-gray: #E5E5E5;
  --amanah-dark-accent: #1A170F;
  --amanah-panel-dark: #0C2420;
  --amanah-panel-darker: #081A18;

  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 90px 0;
  background: #FAF8F4;
  box-sizing: border-box;
}
.amanah-gap *,
.amanah-gap *::before,
.amanah-gap *::after { box-sizing: border-box; }

.amanah-gap__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 56px;
  align-items: center;
}

/* ---- Left intro column ---- */
.amanah-gap__intro { max-width: 360px; }

.amanah-gap__title {
  font-family: 'Poppins', serif;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.28;
  color: var(--amanah-primary);
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}

.amanah-gap__text {
  font-size: 15.5px;
  line-height: 1.8;
  color: #5B5F66;
  font-weight: 300;
  margin: 0;
}
.amanah-gap__text strong {
  color: var(--amanah-primary);
  font-weight: 600;
}

/* ---- Comparison wrapper ---- */
.amanah-gap__compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---- VS badge, centered between the two cards ---- */
.amanah-gap__vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF8F4;
  border: 2.5px solid var(--amanah-gold);
  color: var(--amanah-primary);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ---- Comparison cards ---- */
.amanah-gap-card {
  background: linear-gradient(165deg, var(--amanah-panel-dark), var(--amanah-panel-darker) 70%, var(--amanah-primary));
  border-radius: 18px;
  padding: 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 45px rgba(10, 21, 51, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.amanah-gap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(10, 21, 51, 0.24);
}

.amanah-gap-card__title {
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amanah-gap-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.amanah-gap-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(229, 229, 229, 0.9);
  font-weight: 300;
}

/* ---- Icon badges (X and check) ---- */
.amanah-gap-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  margin-top: 2px;
}
.amanah-gap-icon--no {
  background: rgba(217, 83, 79, 0.15);
  color: #E9857F;
  border: 1px solid rgba(217, 83, 79, 0.4);
}
.amanah-gap-icon--yes {
  background: rgba(11, 221, 124, 0.15);
  color: var(--amanah-accent-green);
  border: 1px solid rgba(11, 221, 124, 0.4);
}

/* Subtle distinguishing top-border accent per card type */
.amanah-gap-card--negative { border-top: 3px solid rgba(217, 83, 79, 0.55); }
.amanah-gap-card--positive { border-top: 3px solid var(--amanah-accent-green); }

/* =========================================================
   ANIMATIONS (shared pattern with other Amanah sections)
   ========================================================= */
[data-amanah-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-amanah-animate].amanah-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .amanah-gap__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .amanah-gap__intro { max-width: 100%; }
}

@media (max-width: 700px) {
  .amanah-gap { padding: 60px 0; }
  .amanah-container { padding-left: 18px; padding-right: 18px; }
  .amanah-gap__compare {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .amanah-gap__vs {
    top: auto;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
  }
  .amanah-gap-card { padding: 26px 22px; }
}
/* ---- Base container (shared across Amanah sections — skip if already added) ---- */
.amanah-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* =========================================================
   HOW IT WORKS SECTION
   ========================================================= */
.amanah-how {
  --amanah-primary: #0B1E40;
  --amanah-secondary: #129478;
  --amanah-accent-green: #0BDD7C;
  --amanah-gold: #BD9332;
  --amanah-gold-light: #C9952A;
  --amanah-panel-dark: #0C2420;
  --amanah-panel-darker: #081A18;

  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 100px 0;
  background: #FAF8F4;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.amanah-how *,
.amanah-how *::before,
.amanah-how *::after { box-sizing: border-box; }

/* Subtle geometric watermark, consistent with hero pattern */
.amanah-how::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%230B1E40' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  pointer-events: none;
}

/* ---- Heading ---- */
.amanah-how__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
}
.amanah-how__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amanah-gold);
  background: rgba(189, 147, 50, 0.1);
  border: 1px solid rgba(189, 147, 50, 0.3);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.amanah-how__title {
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  color: var(--amanah-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

/* ---- Loop row: cards + arrows ---- */
.amanah-how__loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* ---- Stage card ---- */
.amanah-how-card {
  position: relative;
  background: linear-gradient(165deg, var(--amanah-panel-dark), var(--amanah-panel-darker) 70%, var(--amanah-primary));
  border-radius: 18px;
  padding: 34px 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(10, 21, 51, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.amanah-how-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(10, 21, 51, 0.22);
}
.amanah-how-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 1px;
}
.amanah-how-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amanah-gold-light), var(--amanah-gold));
  color: var(--amanah-panel-darker);
  margin-bottom: 20px;
}
.amanah-how-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 10px;
}
.amanah-how-card__text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(229, 229, 229, 0.75);
  font-weight: 300;
  margin: 0;
}

/* ---- Arrow connector between cards ---- */
.amanah-how-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amanah-gold);
  opacity: 0.6;
}

/* ---- Loop-back indicator strip ---- */
.amanah-how__cycle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
  padding: 16px 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: rgba(11, 221, 124, 0.08);
  border: 1px dashed rgba(11, 221, 124, 0.4);
  color: var(--amanah-primary);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.amanah-how__cycle-icon {
  color: var(--amanah-secondary);
  flex-shrink: 0;
}

/* =========================================================
   ANIMATIONS (shared pattern with other Amanah sections)
   ========================================================= */
[data-amanah-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-amanah-animate].amanah-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .amanah-how__loop {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .amanah-how-card { margin-bottom: 8px; }
  .amanah-how-arrow {
    transform: rotate(90deg);
    padding: 6px 0;
  }
}

@media (max-width: 640px) {
  .amanah-how { padding: 64px 0; }
  .amanah-container { padding-left: 18px; padding-right: 18px; }
  .amanah-how__head { margin-bottom: 40px; }
  .amanah-how__cycle {
    flex-direction: column;
    text-align: center;
    border-radius: 18px;
  }
}

/* ---- Base container (shared across Amanah sections — skip if already added) ---- */
.amanah-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* =========================================================
   THE AMANAH DASHBOARD SECTION
   ========================================================= */
.amanah-livedash-section {
  --amanah-primary: #0B1E40;
  --amanah-secondary: #129478;
  --amanah-accent-green: #0BDD7C;
  --amanah-gold: #BD9332;
  --amanah-gold-light: #C9952A;
  --amanah-panel-dark: #0C2420;
  --amanah-panel-darker: #081A18;

  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 100px 0;
  background: #FAF8F4;
  box-sizing: border-box;
}
.amanah-livedash-section *,
.amanah-livedash-section *::before,
.amanah-livedash-section *::after { box-sizing: border-box; }

.amanah-livedash-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.55fr 1fr;
  gap: 26px;
  align-items: start;
}

/* ---- COLUMN 1: Intro + feature list ---- */
.amanah-livedash-intro__title {
  font-weight: 700;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.35;
  color: var(--amanah-primary);
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}
.amanah-livedash-intro__text {
  font-size: 13.5px;
  line-height: 1.75;
  color: #6B6F76;
  font-weight: 300;
  margin: 0 0 30px;
}

.amanah-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.amanah-feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.amanah-feature-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  margin-top: 1px;
  background: rgba(18, 148, 120, 0.1);
  color: var(--amanah-secondary);
}
.amanah-feature-list__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.amanah-feature-list__body strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--amanah-primary);
}
.amanah-feature-list__body em {
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  color: #83878E;
}

/* ---- COLUMN 2: Light dashboard mockup card ---- */
.amanah-livedash-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 30, 64, 0.08);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 25px 55px rgba(11, 30, 64, 0.1);
  backdrop-filter: blur(10px);
}

.amanah-livedash-card__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.amanah-livedash-card__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amanah-secondary);
  background: rgba(18, 148, 120, 0.1);
  padding: 6px 13px;
  border-radius: 999px;
}
.amanah-livedash-card__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amanah-accent-green);
  animation: amanahLiveDashPulse 1.6s infinite;
}
@keyframes amanahLiveDashPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.amanah-livedash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.amanah-livedash-stat {
  background: #F3F1EC;
  border-radius: 12px;
  padding: 16px 16px;
}
.amanah-livedash-stat strong {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--amanah-primary);
  margin-bottom: 4px;
}
.amanah-livedash-stat span {
  font-size: 11.5px;
  color: #8A8D93;
  font-weight: 400;
}

.amanah-livedash-panel {
  background: #F3F1EC;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.amanah-livedash-panel h3 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amanah-primary);
  margin: 0 0 16px;
}

.amanah-livedash-bar {
  display: flex;
  width: 100%;
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 30, 64, 0.08);
  margin-bottom: 16px;
}
.amanah-livedash-bar__seg {
  height: 100%;
  width: 0;
  transition: width 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}
[data-amanah-animate].amanah-in-view .amanah-livedash-bar__seg { width: var(--amanah-w); }
.amanah-livedash-bar__seg--maintenance { background: var(--amanah-accent-green); }
.amanah-livedash-bar__seg--zakat { background: var(--amanah-gold); }
.amanah-livedash-bar__seg--education { background: var(--amanah-secondary); }
.amanah-livedash-bar__seg--community { background: #B7BAC0; }

.amanah-livedash-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.amanah-livedash-legend li {
  font-size: 12px;
  font-weight: 600;
  color: var(--amanah-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.amanah-livedash-legend span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #8A8D93;
}
.amanah-livedash-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  display: inline-block;
}
.amanah-livedash-dot--maintenance { background: var(--amanah-accent-green); }
.amanah-livedash-dot--zakat { background: var(--amanah-gold); }
.amanah-livedash-dot--education { background: var(--amanah-secondary); }
.amanah-livedash-dot--community { background: #B7BAC0; }

.amanah-livedash-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}
.amanah-livedash-panel--activity,
.amanah-livedash-panel--score {
  margin-bottom: 0;
}

.amanah-livedash-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.amanah-livedash-activity li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
}
.amanah-livedash-activity__icon {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(18, 148, 120, 0.12);
  color: var(--amanah-secondary);
}
.amanah-livedash-activity__label {
  font-size: 12px;
  color: var(--amanah-primary);
  font-weight: 500;
}
.amanah-livedash-activity__amount {
  font-size: 12px;
  color: var(--amanah-secondary);
  font-weight: 700;
  text-align: right;
}
.amanah-livedash-activity__date {
  grid-column: 2 / 3;
  font-size: 10.5px;
  color: #9A9DA3;
  font-weight: 400;
}

.amanah-livedash-updated {
  text-align: center;
  font-size: 10.5px;
  color: #9A9DA3;
  margin: 10px 0 0;
}

/* ---- Animated Amanah Score ring ---- */
.amanah-score-ring-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 6px;
}
.amanah-score-ring {
  --amanah-score: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  background: conic-gradient(
    var(--amanah-accent-green) calc(var(--amanah-score) * 1%),
    rgba(11, 30, 64, 0.08) 0
  );
  filter: drop-shadow(0 6px 14px rgba(11, 221, 124, 0.28));
}
.amanah-score-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: inset 0 1px 3px rgba(11, 30, 64, 0.06);
}
.amanah-score-ring__value {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  color: var(--amanah-primary);
  line-height: 1;
}
.amanah-score-ring__label {
  position: relative;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--amanah-secondary);
  margin-top: 4px;
}

/* ---- COLUMN 3: Dark "How Donors Use" card ---- */
.amanah-donoruse {
  background: linear-gradient(165deg, var(--amanah-panel-dark), var(--amanah-panel-darker) 75%, var(--amanah-primary));
  border-radius: 22px;
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 48px rgba(10, 21, 51, 0.18);
}
.amanah-donoruse__title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 22px;
}
.amanah-donoruse__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.amanah-donoruse__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(229, 229, 229, 0.85);
  font-weight: 300;
}
.amanah-donoruse__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 9px;
  background: rgba(11, 221, 124, 0.12);
  color: var(--amanah-accent-green);
  margin-top: 1px;
}

.amanah-donoruse__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(18, 148, 120, 0.35), rgba(11, 221, 124, 0.18));
  border: 1px solid rgba(11, 221, 124, 0.3);
  border-radius: 14px;
  padding: 16px 18px;
}
.amanah-donoruse__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--amanah-accent-green);
}
.amanah-donoruse__cta p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 500;
  color: #FFFFFF;
}

/* =========================================================
   ANIMATIONS (shared pattern with other Amanah sections)
   ========================================================= */
[data-amanah-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-amanah-animate].amanah-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .amanah-livedash-grid {
    grid-template-columns: 1fr;
  }
  .amanah-livedash-intro { max-width: 640px; }
}

@media (max-width: 640px) {
  .amanah-livedash-section { padding: 64px 0; }
  .amanah-container { padding-left: 18px; padding-right: 18px; }
  .amanah-livedash-stats { grid-template-columns: 1fr; }
  .amanah-livedash-row { grid-template-columns: 1fr; }
  .amanah-livedash-legend { grid-template-columns: repeat(2, 1fr); }
  .amanah-livedash-card { padding: 20px; }
}