/* ============================================================
   HAFILAT CARD RECHARGE — Global Styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #1a5c35;
  --green-main:  #1f7a46;
  --green-mid:   #2b9459;
  --green-light: #e8f5ee;
  --gold:        #e8a020;
  --text-dark:   #111827;
  --text-mid:    #374151;
  --text-light:  #6b7280;
  --border:      #e5e7eb;
  --white:       #ffffff;
  --bg-page:     #f9fafb;
  --red:         #dc2626;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.10);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --radius:      10px;
  --radius-lg:   16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--green-main);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--text-dark); }
.logo-text span { font-size: 12px; color: var(--text-light); }
.topbar-right { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--text-light); }
.topbar-secure { display: flex; align-items: center; gap: 5px; }
.topbar-secure svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: var(--text-dark);
}
.lang-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #1a5c35 0%, #1f7a46 60%, #2b9459 100%);
  color: var(--white);
  padding: 72px 24px 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--gold); }
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-recharge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-recharge:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.btn-recharge svg { width: 18px; height: 18px; stroke: var(--green-dark); fill: none; stroke-width: 2.5; }
.hero-ssl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.hero-ssl svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.hero-image { flex: 0 0 360px; display: flex; justify-content: flex-end; }
.hero-image img {
  width: 360px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
  transform: rotate(-6deg);
}
@media(max-width: 768px) {
  .hero-image { display: none; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- FORM SECTION ---- */
.form-section {
  background: var(--white);
  padding: 64px 24px;
}
.form-section-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--border);
  z-index: 0;
  transition: background .4s;
}
.step-item.done:not(:last-child)::after { background: var(--green-main); }
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  transition: background .3s, color .3s, box-shadow .3s;
}
.step-item.active .step-circle {
  background: var(--green-main);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(31,122,70,.2);
}
.step-item.done .step-circle {
  background: var(--green-main);
  color: var(--white);
}
.step-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
  max-width: 76px;
  line-height: 1.3;
}
.step-item.active .step-label { color: var(--green-main); font-weight: 600; }

/* Form panels */
.form-panel { display: none; }
.form-panel.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.panel-icon {
  width: 56px; height: 56px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.panel-icon svg { width: 28px; height: 28px; stroke: var(--green-main); fill: none; stroke-width: 2; }
.panel-title { text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.panel-subtitle { text-align: center; color: var(--text-light); font-size: 15px; margin-bottom: 28px; }

/* Inputs */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.field input,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: border .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus { border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(31,122,70,.1); }
.field input.error { border-color: var(--red); }
.field-error { font-size: 12px; color: var(--red); margin-top: 4px; display: none; }
.field-error.visible { display: block; }

/* Card number */
.card-number-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border .2s, box-shadow .2s;
  background: var(--white);
}
.card-number-field:focus-within { border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(31,122,70,.1); }
.card-number-field.error { border-color: var(--red); }
.card-seg {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-dark);
  background: transparent;
  width: 0;
}
.card-seg-sep { padding: 0 2px; color: var(--text-light); font-size: 16px; user-select: none; }

/* Amount grid */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.amount-btn {
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  transition: all .2s;
}
.amount-btn:hover { border-color: var(--green-main); color: var(--green-main); }
.amount-btn.selected {
  border-color: var(--green-main);
  background: var(--green-light);
  color: var(--green-dark);
}
.amount-btn.custom-btn { grid-column: 1 / -1; }
.custom-amount-row { display: none; margin-bottom: 16px; }
.custom-amount-row.visible { display: block; }
.aed-prefix { position: relative; }
.aed-prefix::before {
  content: 'AED';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  pointer-events: none;
}
.aed-prefix input { padding-left: 52px; font-size: 18px; font-weight: 700; text-align: center; }

/* Payment card visual */
.card-visual {
  background: linear-gradient(135deg, #1a5c35, #2b9459);
  border-radius: 16px;
  padding: 24px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}
.card-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.card-visual::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.card-chip {
  width: 38px; height: 28px;
  background: linear-gradient(135deg, #f0c040, #d4a010);
  border-radius: 5px;
  margin-bottom: 16px;
}
.card-num-display {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-family: 'Courier New', monospace;
  position: relative;
  z-index: 1;
}
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.card-info-col { }
.card-bottom-label { font-size: 10px; opacity: .7; text-transform: uppercase; margin-bottom: 2px; }
.card-bottom-val { font-size: 14px; font-weight: 600; }
.card-brand-text { font-size: 15px; font-weight: 800; font-style: italic; }

.card-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Hint box */
.hint-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  color: #92400e;
  margin-top: 16px;
}
.hint-box strong { color: #78350f; }

/* Summary box */
.summary-box {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.summary-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.summary-row .lbl { color: var(--text-light); }
.summary-row .val { font-weight: 600; color: var(--text-dark); }
.summary-row.total .lbl { font-weight: 700; color: var(--text-dark); }
.summary-row.total .val { font-size: 20px; color: var(--green-dark); }

/* Confirmation */
.confirm-icon {
  width: 72px; height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: popIn .4s ease;
}
.confirm-icon svg { width: 36px; height: 36px; stroke: var(--green-main); fill: none; stroke-width: 2.5; }
@keyframes popIn {
  0% { transform: scale(.5); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  background: var(--green-main);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
  margin-top: 8px;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  transition: border-color .2s, color .2s;
  margin-bottom: 10px;
}
.btn-secondary:hover { border-color: var(--green-main); color: var(--green-main); }
.btn-secondary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Secure row */
.secure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.secure-badge { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-light); }
.secure-badge svg { width: 14px; height: 14px; stroke: var(--text-light); fill: none; }
.card-logos { display: flex; gap: 6px; }
.card-logo {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
}
.card-logo.visa { color: #1434cb; }
.card-logo.mc { color: #eb001b; }

/* ---- HOW IT WORKS ---- */
.how-section { padding: 80px 24px; background: var(--bg-page); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-main);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--text-light); font-size: 16px; max-width: 520px; margin: 0 auto; }
.how-inner { max-width: 1140px; margin: 0 auto; }
.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.how-step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.how-step:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  top: 44px;
  right: -12px;
  font-size: 20px;
  color: #9ca3af;
}
.how-step-icon {
  width: 64px; height: 64px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  position: relative;
}
.how-step-icon svg { width: 30px; height: 30px; stroke: var(--green-main); fill: none; stroke-width: 2; }
.how-num {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  background: var(--green-main);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.how-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ---- TESTIMONIALS ---- */
.testi-section { padding: 80px 24px; background: var(--white); }
.testi-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.testi-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stars { color: var(--gold); font-size: 16px; margin-bottom: 14px; }
.testi-quote { font-size: 14.5px; color: var(--text-mid); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px;
  background: var(--green-main);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 700; }
.testi-role { font-size: 12px; color: var(--text-light); }

/* ---- FAQ ---- */
.faq-section { padding: 80px 24px; background: var(--bg-page); }
.faq-inner { max-width: 740px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-q svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--text-light); fill: none; stroke-width: 2; transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); stroke: var(--green-main); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ---- FOOTER ---- */
.footer { background: #111827; color: rgba(255,255,255,.75); padding: 56px 24px 28px; }
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media(max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media(max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-icon {
  width: 36px; height: 36px;
  background: var(--green-main);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.footer-logo strong { font-size: 15px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
.footer-contacts { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-contacts li { font-size: 13px; display: flex; align-items: center; gap: 7px; }
.footer-contacts li svg { width: 14px; height: 14px; stroke: var(--green-mid); fill: none; flex-shrink: 0; }
.footer-contacts a:hover { color: #fff; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-ssl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.footer-ssl svg { width: 14px; height: 14px; stroke: var(--green-mid); fill: none; }
.footer-cards { display: flex; gap: 7px; }
.footer-card-logo {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
}
.footer-card-logo.visa { color: #7b9ef0; }
.footer-card-logo.mc { color: #f08070; }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
  text-align: center;
}
