/* ===========================
   ZEKAAT — Stylesheet
   =========================== */

:root {
  --green-dark: #1a3a0f;
  --green-mid: #2d5a1b;
  --green-light: #3d7a26;
  --green-pale: #f0f6ec;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #fdf8ee;
  --cream: #faf8f4;
  --white: #ffffff;
  --text-dark: #1c2b14;
  --text-mid: #3d4f35;
  --text-muted: #7a8c71;
  --border: #dde8d5;
  --shadow-sm: 0 2px 8px rgba(45, 90, 27, 0.08);
  --shadow-md: 0 4px 24px rgba(45, 90, 27, 0.12);
  --shadow-lg: 0 12px 48px rgba(45, 90, 27, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-icon {
  font-size: 22px;
  color: var(--gold);
  filter: drop-shadow(0 1px 2px rgba(201, 168, 76, 0.4));
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.3px;
}

.nav-logo-dot {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--green-dark);
  background: var(--green-pale);
}

.nav-cta {
  display: inline-block;
  padding: 9px 20px;
  background: var(--green-mid);
  color: var(--white) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  margin-left: 8px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 60%, #4a8f30 100%);
  color: var(--white);
  padding: 80px 24px 0;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-arabic {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 10vw, 90px);
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 4px 24px rgba(201, 168, 76, 0.3);
  letter-spacing: 2px;
}

.hero-subtitle-line {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: clamp(16px, 2.5vw, 19px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Price ticker */
.price-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}

.ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ticker-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.ticker-value {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold-light);
  font-weight: 700;
}

.ticker-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.ticker-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 120px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.loading {
  background: var(--gold);
  animation: pulse 1.5s infinite;
}

.status-dot.live {
  background: #5ecb62;
}

.status-dot.error {
  background: #e05252;
}

.status-dot.fallback {
  background: #e09c52;
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 96px 24px;
}

.section-alt {
  background: var(--green-pale);
}

.section-calculator {
  background: linear-gradient(180deg, #f4f8f0 0%, var(--white) 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-intro {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===========================
   INFO CARDS
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green-light);
}

.info-card:hover::before {
  opacity: 1;
}

.card-gold {
  border-top: 3px solid var(--gold);
}

.card-gold::before {
  display: none;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.info-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Quote block */
.quote-block {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 44px 48px;
  text-align: center;
  color: var(--white);
  margin-bottom: 40px;
  position: relative;
}

.quote-symbol {
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
}

blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  font-style: italic;
}

cite {
  font-size: 14px;
  color: var(--gold-light);
  font-style: normal;
  font-weight: 600;
}

/* Pillars */
.pillar-banner {
  display: flex;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  flex: 1;
  min-width: 80px;
  text-align: center;
}

.pillar-num {
  width: 32px;
  height: 32px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-mid);
}

.pillar-active {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
}

.pillar-active .pillar-num {
  background: var(--green-mid);
  color: var(--white);
}

/* ===========================
   GOALS
   =========================== */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.goal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.goal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.goal-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.goal-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.goal-card p {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===========================
   STEPS & FORMULA
   =========================== */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Formula box */
.formula-box {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: 88px;
}

.formula-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--gold-light);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.formula-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.formula-op {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
}

.formula-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

.formula-eq {
  font-size: 22px;
  color: var(--gold-light);
}

.formula-final {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
}

.rate-badge {
  background: var(--green-dark);
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nisaab-info {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.nisaab-info h4 {
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.nisaab-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nisaab-row:last-of-type {
  border-bottom: none;
}

.nisaab-row strong {
  color: var(--gold-light);
}

.nisaab-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
  line-height: 1.4;
}

/* Accordion */
.detail-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--green-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background var(--transition);
  user-select: none;
}

.accordion-item summary:hover {
  background: var(--green-pale);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--green-light);
  transition: transform var(--transition);
}

.accordion-item[open] summary::after {
  content: '−';
}

.accordion-body {
  padding: 0 24px 20px;
  background: var(--white);
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

.accordion-body p {
  margin-bottom: 10px;
}

.accordion-body ul {
  padding-left: 20px;
  margin: 8px 0;
}

.accordion-body li {
  margin-bottom: 6px;
}

/* ===========================
   CALCULATOR
   =========================== */
.calc-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.live-prices {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--green-dark);
  padding: 18px 28px;
}

.live-price-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.live-icon {
  font-size: 24px;
}

.live-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.live-val {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--gold-light);
  font-weight: 700;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.refresh-btn.spinning svg {
  animation: spin 1s linear infinite;
}

/* Form */
.calc-form {
  padding: 32px 36px;
}

.form-section {
  margin-bottom: 28px;
}

.form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.form-row {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.form-hint {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
}

.input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
  background: var(--white);
}

.input-group:focus-within {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(61, 122, 38, 0.1);
}

.input-prefix,
.input-suffix {
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--green-pale);
  height: 44px;
  display: flex;
  align-items: center;
  border-right: 1.5px solid var(--border);
  flex-shrink: 0;
}

.input-suffix {
  border-right: none;
  border-left: 1.5px solid var(--border);
}

.form-input {
  flex: 1;
  height: 44px;
  border: none;
  padding: 0 14px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
  outline: none;
  min-width: 0;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.calc-preview {
  font-size: 13px;
  color: var(--green-light);
  font-weight: 600;
  margin-top: 5px;
  min-height: 18px;
  transition: all var(--transition);
}

/* Calc button */
.btn-calc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
  letter-spacing: 0.2px;
}

.btn-calc:hover {
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-calc:active {
  transform: translateY(0);
}

/* Results */
.calc-results {
  padding: 32px 36px;
}

.result-status {
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.result-status.eligible {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
}

.result-status.not-eligible {
  background: var(--green-pale);
  border: 2px solid var(--green-light);
  color: var(--green-dark);
}

.result-status-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.result-status-sub {
  font-size: 14px;
  opacity: 0.8;
}

.result-amount {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 16px 0 4px;
  line-height: 1;
}

.result-amount-label {
  font-size: 13px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-breakdown {
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-label {
  color: var(--text-mid);
}

.breakdown-val {
  font-weight: 700;
  color: var(--green-dark);
}

.breakdown-val.negative {
  color: #c0392b;
}

.breakdown-val.total {
  color: var(--green-mid);
  font-size: 16px;
}

.breakdown-val.zekaat {
  color: var(--gold);
  font-size: 18px;
}

.breakdown-row.total-row {
  background: var(--white);
}

.breakdown-row.zekaat-row {
  background: var(--green-dark);
}

.breakdown-row.zekaat-row .breakdown-label {
  color: rgba(255, 255, 255, 0.7);
}

.nisaab-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.nisaab-status.above {
  background: rgba(94, 203, 98, 0.15);
  color: #2d7a30;
}

.nisaab-status.below {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.btn-recalc {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--white);
  border: 2px solid var(--green-mid);
  color: var(--green-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-recalc:hover {
  background: var(--green-pale);
}

/* ===========================
   RECIPIENTS
   =========================== */
.recipients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.recipient-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.recipient-card.eligible {
  border-top: 3px solid var(--green-light);
}

.recipient-card.not-eligible {
  border-top: 3px solid #e05252;
  background: #fff9f9;
}

.recipient-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.recipient-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.recipient-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.recipient-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
}

.tip-box {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.tip-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.tip-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.tip-box p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===========================
   TERMS
   =========================== */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.term-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.term-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--green-light);
}

.term-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.term-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 24px 36px;
  text-align: center;
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .nav-logo {
  color: var(--white);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-note {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .formula-box {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link,
  .nav-cta {
    padding: 12px 16px;
    border-radius: 8px;
    text-align: left;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 24px 0;
    min-height: auto;
  }

  .hero-container {
    padding-bottom: 60px;
  }

  .price-ticker {
    gap: 16px;
    padding: 16px 20px;
  }

  .ticker-divider {
    display: none;
  }

  .section {
    padding: 64px 20px;
  }

  .calc-form,
  .calc-results {
    padding: 24px 20px;
  }

  .live-prices {
    padding: 16px 20px;
  }

  .quote-block {
    padding: 32px 24px;
  }

  .cards-grid,
  .goals-grid,
  .recipients-grid,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .pillar-banner {
    gap: 4px;
    padding: 16px;
  }

  .pillar-item {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  .price-ticker {
    flex-direction: column;
    gap: 12px;
  }

  .ticker-item {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

/* Price source tooltip */
.price-source-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.price-info-icon {
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition);
  display: block;
}

.price-source-tooltip:hover .price-info-icon {
  color: var(--gold-light);
}

.price-source-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 50;
  pointer-events: none;
}

.price-source-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--green-dark);
}

.price-source-tooltip:hover .price-source-popup {
  display: block;
}

.popup-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup-body {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}