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

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: #ccfbf1;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.navbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 60px; background: rgba(248,250,252,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.nav-logo span { color: var(--accent); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 9px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: background 0.15s, transform 0.1s, box-shadow 0.15s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(13,148,136,0.3); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.hidden { display: none !important; }

/* ── HERO ── */
.hero { padding: 80px 20px 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 900px; height: 500px; background: radial-gradient(ellipse, rgba(13,148,136,0.09) 0%, transparent 65%); pointer-events: none; }
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }

.hero-badge { display: inline-block; background: var(--accent-light); border: 1px solid rgba(13,148,136,0.3); color: var(--accent); font-size: 0.8rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 24px; letter-spacing: 0.04em; text-transform: uppercase; }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, #0d9488, #0891b2, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-sub strong { color: var(--text); }

/* City selector */
.city-selector-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.city-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.city-select { padding: 12px 44px 12px 18px; border: 2px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 1rem; font-weight: 600; cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-color: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; min-width: 260px; }
.city-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }

/* Hero date */
.hero-date { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 0.88rem; color: var(--muted); }
.date-hijri { font-weight: 600; color: var(--accent); }
.date-sep { color: var(--border); }

/* ── PRAYER SECTION ── */
.prayer-section { padding: 60px 20px 80px; border-top: 1px solid var(--border); background: var(--surface-2); }
.section-inner { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.section-inner--narrow { max-width: 700px; }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; text-align: center; margin-bottom: 48px; letter-spacing: -0.02em; }

/* Loading */
.loading-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.loading-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { text-align: center; padding: 40px; color: #dc2626; background: #fee2e2; border: 1px solid #fecaca; border-radius: var(--radius); }

/* Prayer cards */
.prayer-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.prayer-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px 12px 16px; text-align: center; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; cursor: default; }
.prayer-card.is-next { border-color: var(--accent); background: var(--accent-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prayer-card.is-passed { opacity: 0.55; }
.pc-icon { font-size: 1.6rem; margin-bottom: 8px; }
.pc-name { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; }
.prayer-card.is-next .pc-name { color: var(--accent); }
.pc-time { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.prayer-card.is-next .pc-time { color: var(--accent); }
.pc-badge { display: inline-block; background: var(--accent); color: white; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Countdown */
.countdown-wrap { display: flex; justify-content: center; }
.countdown-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 40px; text-align: center; box-shadow: var(--shadow); }
.cd-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.cd-timer { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ── INFO ── */
.info-section { padding: 70px 20px; border-top: 1px solid var(--border); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-icon { font-size: 1.8rem; margin-bottom: 12px; }
.info-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── FAQ ── */
.faq-section { padding: 70px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.15s; }
.faq-item:hover { border-color: rgba(13,148,136,0.3); }
.faq-item summary { padding: 18px 20px; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); font-weight: 700; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.faq-item strong { color: var(--text); }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 56px 20px 36px; display: flex; gap: 48px; flex-wrap: wrap; }
.footer-brand { flex: 2; min-width: 220px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 10px; line-height: 1.7; }
.footer-home-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.footer-home-link:hover { color: var(--accent-hover); }
.footer-links { flex: 1; min-width: 120px; }
.footer-links h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.88rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 18px; font-size: 0.78rem; color: var(--muted); background: var(--surface-2); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .navbar { padding: 0 16px; }
  .hero { padding: 60px 16px 50px; }
  .prayer-cards { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .city-select { min-width: 100%; }
  .countdown-card { padding: 16px 24px; }
  .cd-timer { font-size: 1.6rem; }
  .footer-inner { gap: 28px; }
}
@media (max-width: 420px) {
  .prayer-cards { grid-template-columns: repeat(2, 1fr); }
  .pc-time { font-size: 1.1rem; }
}
