@font-face {
  font-family: 'Alvi Nastaleeq';
  src: url('../fonts/AlviNastaliq.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Amiri Quran';
  src: url('../fonts/AmiriQuran.ttf') format('truetype');
  font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: #FAF7F0;
  color: #0A1A33;
  line-height: 1.6;
}
a { color: #0A1A33; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: #0A1A33;
  border-bottom: 3px solid #D4AF37;
}
.brand { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.brand-mark { color: #D4AF37; }
.site-header nav a {
  color: #e8e2d2; text-decoration: none; margin-left: 16px; font-size: .92rem; font-weight: 500;
}
.site-header nav a:hover { color: #D4AF37; }

main { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }

/* Hero */
.hero { text-align: center; padding: 34px 8px 6px; }
.hero h1 { font-size: 2rem; font-weight: 700; }
.hero-sub { color: #44536b; max-width: 560px; margin: 8px auto 0; }

/* Counter */
.counter-wrap { text-align: center; padding: 18px 0 8px; }
.zikr-now { min-height: 120px; padding: 6px 10px; }
.zikr-arabic, .card-arabic {
  font-family: 'Amiri Quran', serif;
  direction: rtl;
}
.zikr-arabic { font-size: 2rem; line-height: 1.9; color: #0A1A33; }
.zikr-trans { font-style: italic; color: #33465f; margin-top: 4px; }
.zikr-ref, .card-ref { color: #8a6d1d; font-size: .85rem; font-weight: 600; }

.tap-zone {
  width: min(78vw, 300px); height: min(78vw, 300px);
  margin: 18px auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #16345f, #0A1A33 68%);
  border: 6px solid #D4AF37;
  box-shadow: 0 14px 34px rgba(10, 26, 51, .35), inset 0 0 0 6px rgba(212, 175, 55, .18);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; outline: none;
  transition: transform .06s ease;
}
.tap-zone:active, .tap-zone.tapped { transform: scale(.965); }
.tap-zone:focus-visible { box-shadow: 0 0 0 4px #D4AF37, 0 14px 34px rgba(10,26,51,.35); }
.count-num { font-size: 4.6rem; font-weight: 700; line-height: 1; color: #D4AF37; }
.count-of { font-size: 1rem; color: #cfd8e6; margin-top: 4px; }
.tap-hint { margin-top: 14px; letter-spacing: 3px; font-size: .72rem; color: #9fb2cc; font-weight: 600; }
.round-done { min-height: 1.6em; color: #1c7a3d; font-weight: 600; }

.stats-row { display: flex; gap: 14px; justify-content: center; margin: 14px 0 4px; }
.stat {
  background: #fff; border: 1px solid #e6ddc8; border-top: 3px solid #D4AF37;
  border-radius: 12px; padding: 10px 22px; min-width: 140px;
  display: flex; flex-direction: column;
}
.stat-num { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: .8rem; color: #5a6a80; }

.controls { margin-top: 16px; }
.controls-label { font-weight: 600; font-size: .9rem; color: #44536b; margin-bottom: 8px; }
.target-row, .preset-row, .btn-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tbtn, .preset-chip, .ctl-btn {
  font-family: inherit; cursor: pointer; border-radius: 999px; border: 2px solid #0A1A33;
  background: #fff; color: #0A1A33; padding: 8px 18px; font-weight: 600; font-size: .92rem;
}
.tbtn.active { background: #0A1A33; color: #D4AF37; }
.preset-chip { border-color: #D4AF37; background: #fffdf4; font-weight: 500; }
.preset-chip:active { background: #f3e9cd; }
.btn-row { margin-top: 14px; }
.ctl-btn { border-color: #b9c2cf; color: #44536b; }
.ctl-btn.danger:hover { border-color: #b03a2e; color: #b03a2e; }
.presets { margin-top: 20px; }

/* Sections */
.section { margin-top: 44px; }
.section h2 { font-size: 1.45rem; margin-bottom: 10px; }
.section-intro, .seo-text p { color: #33465f; margin-bottom: 12px; }
.seo-text h2 { margin-top: 22px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.narrow h1 { font-size: 1.7rem; margin-bottom: 12px; }
.narrow h2 { font-size: 1.15rem; margin: 18px 0 6px; }
.narrow p { color: #33465f; margin-bottom: 10px; }
.center { text-align: center; }
.cta-btn {
  display: inline-block; margin-top: 10px; background: #0A1A33; color: #D4AF37;
  padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
}

/* Azkar cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.azkar-card {
  background: #fff; border: 1px solid #e6ddc8; border-radius: 16px;
  padding: 18px; box-shadow: 0 3px 10px rgba(10, 26, 51, .05);
  display: flex; flex-direction: column; gap: 8px;
}
.card-title { font-size: 1rem; color: #0A1A33; }
.card-arabic { font-size: 1.45rem; line-height: 2; text-align: right; }
.card-trans { font-style: italic; color: #33465f; font-size: .92rem; }
.card-urdu {
  font-family: 'Alvi Nastaleeq', 'Poppins', sans-serif;
  font-size: 1.05rem; line-height: 2.1; color: #20334d;
}
.card-virtue { font-size: .85rem; color: #5a6a80; }
.card-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.set-btn {
  font-family: inherit; cursor: pointer; border: none; border-radius: 999px;
  background: #0A1A33; color: #D4AF37; padding: 8px 16px; font-weight: 600; font-size: .88rem;
}
.set-btn:active { transform: scale(.97); }

/* Shop */
.shop-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
.shop-card {
  background: #fff; border: 1px solid #e6ddc8; border-radius: 16px; padding: 20px 14px;
  text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; font-weight: 600;
}
.shop-emoji { font-size: 2rem; }
.shop-btn { color: #8a6d1d; font-size: .9rem; }
.shop-note { font-size: .85rem; color: #5a6a80; }

/* Footer */
.site-footer {
  background: #0A1A33; color: #cfd8e6; text-align: center;
  padding: 26px 18px; border-top: 3px solid #D4AF37; font-size: .9rem;
}
.footer-brand { color: #D4AF37; font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.site-footer p { margin-bottom: 6px; }
.footer-links a { color: #e8e2d2; }
