:root {
  --emerald: #006b54;
  --emerald-dark: #004c3f;
  --emerald-deep: #00372e;
  --gold: #c9a227;
  --gold-soft: #ead58b;
  --cream: #f7faf8;
  --paper: #ffffff;
  --ink: #18352f;
  --muted: #70827d;
  --line: #dce9e4;
  --shadow: 0 18px 55px rgba(0, 75, 60, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #ffffff;
  color: var(--ink);
}

button {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  z-index: -1;
  background-image: radial-gradient(
    rgba(0, 107, 84, 0.1) 0.6px,
    transparent 0.6px
  );
  background-size: 20px 20px;
}

/* =========================
   HEADER
========================= */

.top {
  max-width: 1440px;
  margin: auto;
  padding: 24px 4vw 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 58px;
  height: 58px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 27px;
  background: #ffffff;
}

.brand-title {
  color: var(--emerald-dark);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 18px;
}

.brand-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: 4px;
}

.location {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  box-shadow: 0 6px 20px rgba(0, 75, 60, 0.06);
}

.location b {
  display: block;
  font-size: 12px;
}

.location small {
  color: var(--muted);
}

.green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf73;
}

/* =========================
   MAIN
========================= */

.wrap {
  max-width: 1440px;
  margin: auto;
  padding: 20px 4vw 70px;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.7fr);
  gap: 20px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

/* =========================
   HERO
========================= */

.hero {
  padding: 55px 5vw 40px;
  min-height: 650px;

  background:
    radial-gradient(
      circle at 95% 5%,
      rgba(212, 175, 55, 0.12),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #ffffff 68%,
      #f3faf7 100%
    );

  border-top: 4px solid var(--emerald);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kicker {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.97;
  max-width: 800px;
  color: var(--emerald-dark);
}

.hero-date {
  color: var(--muted);
  font-size: 14px;
  margin-top: 24px;
}

.clock-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.clock {
  font-size: clamp(58px, 7vw, 90px);
  font-weight: 700;
  color: var(--emerald-dark);
  letter-spacing: -4px;
  margin-top: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tz {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

/* =========================
   NEXT PRAYER
========================= */

.next {
  margin-top: 42px;
  border: 1px solid var(--gold-soft);
  background: #f5fbf8;
  box-shadow: inset 4px 0 0 var(--gold);
  border-radius: 20px;
  padding: 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.next small {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.next b {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-top: 4px;
}

.countdown {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

/* =========================
   VERSE
========================= */

.verse {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
  align-items: center;
}

.verse-ar {
  font-family: "Amiri", serif;
  color: var(--gold);
  font-size: 28px;
  direction: rtl;
}

.verse-text {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #766d5e;
  line-height: 1.6;
}

.verse-ref {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  display: block;
  margin-top: 8px;
}

/* =========================
   PRAYER SCHEDULE
========================= */

.schedule {
  padding: 35px 25px;
  border-top: 4px solid var(--gold);
}

.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.schedule-head .kicker {
  margin: 0;
}

.schedule h2,
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: var(--emerald-dark);
}

.refresh {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--gold);
  cursor: pointer;
  transition: 0.3s ease;
}

.refresh:hover {
  background: var(--emerald);
  color: white;
  transform: rotate(180deg);
}

.prayers {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prayer {
  padding: 14px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s ease;
}

.prayer.active {
  background: var(--emerald);
  color: #fff;
  border: 1px solid var(--emerald);
  transform: translateX(4px);
}

.prayer-time {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.method {
  font-size: 9px;
  color: #aaa;
  text-align: center;
  margin-top: 25px;
}

/* =========================
   SECTION
========================= */

.section {
  margin-top: 20px;
  padding: 42px;
}

/* =========================
   QUOTE
========================= */

.quote-section {
  background: linear-gradient(
    135deg,
    var(--emerald-dark),
    var(--emerald)
  );

  color: white;
  overflow: hidden;
  position: relative;
  border: 1px solid #075d4c;
  box-shadow: 0 20px 55px rgba(0, 75, 60, 0.2);
}

.quote-section::after {
  content: "ﷲ";
  position: absolute;
  right: 4%;
  top: -35px;
  font: 260px "Amiri";
  color: rgba(255, 255, 255, 0.035);
}

.quote-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  margin: auto;
}

.quote-label {
  color: var(--gold-soft);
  font-size: 10px;
  letter-spacing: 4px;
}

.quote-no {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 3px;
  margin: 16px 0;
}

.quote-arabic {
  font: clamp(38px, 5vw, 64px) "Amiri";
  direction: rtl;
  line-height: 1.7;
  min-height: 125px;
}

.quote-meaning {
  max-width: 680px;
  margin: 8px auto;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 14px;
}

.quote-source {
  margin-top: 12px;
  color: var(--gold-soft);
  font-size: 10px;
  letter-spacing: 1px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: 0.3s;
  cursor: pointer;
}

.dot.on {
  width: 24px;
  background: var(--gold);
  border-radius: 10px;
}

/* =========================
   AGENDA
========================= */

.agenda-grid,
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.agenda {
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.agenda:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.agenda-icon {
  font-size: 25px;
  margin-bottom: 14px;
}

.agenda h3 {
  font: 28px "Playfair Display", serif;
  color: var(--emerald-dark);
}

.agenda p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}

.agenda-time {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 20px;
  font-variant-numeric: tabular-nums;
}

.agenda-tag {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* =========================
   INFORMATION
========================= */

.info {
  padding: 30px;
}

.info h3 {
  font: 28px "Playfair Display", serif;
  color: var(--emerald-dark);
  margin-bottom: 20px;
}

.day-number {
  font-size: 65px;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1;
}

.day-name {
  font-weight: 600;
  margin-top: 8px;
}

.hijri {
  font-size: 12px;
  color: var(--gold);
  margin-top: 8px;
}

/* =========================
   QIBLA
========================= */

.qibla {
  display: flex;
  align-items: center;
  gap: 25px;
}

.compass {
  width: 145px;
  height: 145px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: #ffffff;
  flex: none;
  box-shadow: 0 8px 24px rgba(0, 75, 60, 0.08);
}

.compass::before {
  content: "N";
  position: absolute;
  top: 9px;
  color: var(--emerald);
  font-weight: 700;
}

.compass::after {
  content: "S";
  position: absolute;
  bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.needle {
  width: 3px;
  height: 92px;
  position: relative;
  transform-origin: center;
  transition: 0.5s;
}

.needle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 44px solid var(--gold);
}

.needle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -5px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 44px solid var(--emerald);
}

.degree {
  font-size: 34px;
  font-weight: 700;
  color: var(--emerald);
}

.direction {
  font-size: 13px;
}

.qnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 7px;
}

/* =========================
   FOOTER
========================= */

footer {
  background: var(--emerald-deep);
  color: white;
  text-align: center;
  padding: 42px 20px;
  border-top: 4px solid var(--gold);
}

footer strong {
  color: var(--gold-soft);
  letter-spacing: 2px;
}

footer p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin-top: 10px;
}

.map {
  display: inline-block;
  margin-top: 20px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  border-radius: 30px;
  padding: 11px 20px;
  font-size: 11px;
  transition: 0.3s ease;
}

.map:hover {
  background: var(--gold);
  color: var(--emerald-deep);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 42px 30px;
  }

  .schedule {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .top {
    padding: 18px;
  }

  .location {
    display: none;
  }

  .wrap {
    padding: 10px 14px 50px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .clock {
    font-size: 58px;
  }

  .next {
    align-items: flex-start;
    flex-direction: column;
  }

  .countdown {
    font-size: 38px;
  }

  .verse {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .agenda-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 28px 20px;
  }

  .qibla {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 30px;
  }
}
