*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f5edd6;
  --ink: #0d0d0d;
  --ink-soft: #1a1714;
  --ink-mid: #2c2820;
  --muted: #7a6e5f;
  --accent: #7b4f2e;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
.stars-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(201, 168, 76, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(123, 79, 46, 0.08) 0%,
      transparent 50%
    ),
    var(--ink);
}
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-light);
  animation: twinkle var(--dur, 3s) ease-in-out infinite alternate;
}
@keyframes twinkle {
  0% {
    opacity: 0.1;
    transform: scale(0.8);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
header {
  padding: 48px 0 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.arabic-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}
.latin-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.tagline {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px auto;
  max-width: 300px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider-ornament {
  color: var(--gold);
  font-size: 1.2rem;
}
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 12px;
  padding: 6px;
  max-width: 520px;
}
.nav-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.nav-tab.active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
}
.nav-tab:hover:not(.active) {
  color: var(--cream);
  background: rgba(201, 168, 76, 0.1);
}
.section {
  display: none;
  animation: fadeIn 0.4s ease;
}
.section.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink-mid) 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 70%
  );
}
.prayer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.prayer-date {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.prayer-city {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
}
.city-selector {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  z-index: 1;
}
.city-selector option {
  background: #1a1714;
}
.prayer-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.prayer-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  transition: all 0.3s ease;
}
.prayer-item.highlighted {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}
.prayer-name {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.prayer-time {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  font-weight: 700;
}
.prayer-item.highlighted .prayer-time {
  color: var(--gold);
}
.prayer-item.highlighted .prayer-name {
  color: var(--gold-light);
}
.next-info {
  text-align: center;
  padding: 14px;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 10px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.next-info span {
  color: var(--gold-light);
  font-weight: 500;
}
.countdown-label {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.countdown-type {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 24px;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.countdown-unit {
  min-width: 80px;
}
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  display: block;
}
.countdown-sep {
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 300;
}
.countdown-unit-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.progress-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
}
.progress-pct {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}
.progress-bar-bg {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(to right, var(--accent), var(--gold));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-sub {
  font-size: 0.8rem;
  color: var(--muted);
}
.doa-grid {
  display: grid;
  gap: 16px;
}
.doa-card {
  background: linear-gradient(135deg, var(--ink-soft), var(--ink-mid));
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 16px;
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.doa-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--accent));
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.3s;
}
.doa-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-2px);
}
.doa-card:hover::after,
.doa-card.expanded::after {
  opacity: 1;
}
.doa-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.doa-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--cream);
  line-height: 1.8;
  text-align: right;
  direction: rtl;
  margin-bottom: 14px;
}
.doa-latin {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.doa-arti {
  font-size: 0.82rem;
  color: var(--cream);
  line-height: 1.7;
  opacity: 0.8;
  display: none;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  margin-top: 4px;
}
.doa-card.expanded .doa-arti {
  display: block;
}
.doa-toggle {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
}
.tracker-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 6px;
}
.tracker-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.amalan-list {
  display: grid;
  gap: 10px;
}
.amalan-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
}
.amalan-item:hover {
  background: rgba(201, 168, 76, 0.06);
}
.amalan-check {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(201, 168, 76, 0.4);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.amalan-item.done .amalan-check {
  background: var(--gold);
  border-color: var(--gold);
}
.amalan-check-icon {
  display: none;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.amalan-item.done .amalan-check-icon {
  display: block;
}
.amalan-text {
  flex: 1;
}
.amalan-name {
  font-size: 0.9rem;
  color: var(--cream);
}
.amalan-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
.amalan-item.done .amalan-name {
  color: var(--muted);
  text-decoration: line-through;
}
.amalan-badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.tracker-summary {
  margin-top: 20px;
  text-align: center;
  padding: 16px;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.1);
}
.tracker-summary-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.tracker-summary-text {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
footer {
  text-align: center;
  padding: 40px 0 32px;
  font-size: 0.75rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
  letter-spacing: 0.1em;
}
@media (max-width: 540px) {
  .card {
    padding: 22px 18px;
  }
  .prayer-times {
    grid-template-columns: repeat(3, 1fr);
  }
  .countdown-grid {
    gap: 10px;
  }
}
