/*
 * Jadwal Sholat Pro — Nūr UI Design System
 * Nūr (نور) = Cahaya dalam bahasa Arab
 * Selaras dengan Kumo UI (Cuaca Pro)
 * Mobile-first | SEO-friendly | Zero dependencies
 * Version: 1.3.0
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
.jsp-wrap {
  --nur-font:       'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Brand — Islamic Green Palette (selaras Kumo UI) */
  --nur-green-1:    #dcfce7;   /* hijau sangat muda */
  --nur-green-2:    #22c55e;   /* hijau cerah */
  --nur-green-3:    #16a34a;   /* hijau sedang — primary */
  --nur-green-4:    #0d4e29;   /* hijau tua — brand deep */
  --nur-gold:       #f59e0b;   /* emas aktif */
  --nur-gold-deep:  #d97706;
  --nur-gold-glow:  rgba(245,158,11,0.30);

  /* Semantic aliases */
  --c-primary:        var(--nur-green-3);
  --c-primary-dark:   var(--nur-green-4);
  --c-primary-deeper: var(--nur-green-4);
  --c-primary-light:  var(--nur-green-2);
  --c-primary-glow:   rgba(22,163,74,0.25);
  --c-primary-tint:   rgba(22,163,74,0.08);
  --c-primary-soft:   rgba(22,163,74,0.12);
  --c-gold:           var(--nur-gold-deep);
  --c-gold-light:     var(--nur-gold);
  --c-gold-glow:      var(--nur-gold-glow);
  --c-gold-soft:      rgba(245,158,11,0.10);

  /* Surfaces */
  --c-bg:             #f0fdf4;
  --c-bg-soft:        #f0fdf4;
  --c-bg-card:        #ffffff;
  --c-bg-elevated:    #f7fdf9;
  --c-bg-muted:       #f7fdf9;
  --c-bg-dark:        #ffffff;
  --c-bg-deep:        #f0fdf4;
  --c-bg-mid:         #f7fdf9;
  --c-bg-surface:     #ffffff;
  --c-bg-card-hover:  #f7fdf9;
  --c-bg-light:       #f7fdf9;

  /* Text */
  --c-text:           #0f2d1a;
  --c-text-bright:    #0f2d1a;
  --c-text-secondary: #1e4d2b;
  --c-text-primary:   #4d7a5a;
  --c-text-muted:     #4d7a5a;
  --c-text-light:     #7eab8a;
  --c-text-faint:     #7eab8a;
  --c-text-dark:      #0f2d1a;

  /* Borders */
  --c-border:         rgba(22,163,74,0.15);
  --c-border-mid:     rgba(22,163,74,0.25);
  --c-border-strong:  rgba(22,163,74,0.30);
  --c-border-glow:    rgba(22,163,74,0.40);

  /* Glass */
  --glass-bg:         rgba(255,255,255,0.82);
  --glass-bg-strong:  rgba(255,255,255,0.95);
  --glass-border:     rgba(22,163,74,0.18);
  --glass-green:      rgba(22,163,74,0.07);
  --glass-blur:       blur(20px) saturate(1.8);

  /* Radii */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs:   0 2px 8px  rgba(13,78,41,0.08);
  --sh-sm:   0 4px 18px rgba(13,78,41,0.10);
  --sh-md:   0 8px 32px rgba(13,78,41,0.13);
  --sh-lg:   0 20px 56px rgba(13,78,41,0.16);
  --sh-glow: 0 0 24px rgba(22,163,74,0.25);
  --sh-gold: 0 0 18px rgba(245,158,11,0.35);
  --shadow-sm: var(--sh-xs);
  --shadow-md: var(--sh-sm);
  --shadow-lg: var(--sh-md);
  --shadow-xl: var(--sh-lg);

  /* Motion */
  --ease:        cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --dur-fast:  0.13s;
  --dur:       0.24s;
  --dur-slow:  0.38s;
  --t-fast:    0.13s ease;
  --t-normal:  0.24s ease;
  --t-slow:    0.38s ease;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
.jsp-wrap *, .jsp-wrap *::before, .jsp-wrap *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}
.jsp-wrap {
  font-family: var(--nur-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text-secondary);
  background: var(--c-bg-soft);
  max-width: 480px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
@media (min-width: 520px) {
  .jsp-wrap {
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--sh-lg), 0 0 0 1px var(--c-border);
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH BAR — Sticky frosted-glass pill
═══════════════════════════════════════════════════════════════ */
.jsp-search {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--c-border);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .625rem;
}
.jsp-search__label { display: none; }
.jsp-search__input-wrap {
  flex: 1;
  position: relative;
}
.jsp-search__input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--c-border-mid);
  border-radius: var(--r-full);
  padding: 0 1rem;
  font-size: .9rem;
  font-family: var(--nur-font);
  font-weight: 500;
  color: var(--c-text-bright);
  background: #fff;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.jsp-search__input::placeholder { color: var(--c-text-faint); }
.jsp-search__input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}
.jsp-search__btn {
  height: 44px;
  padding: 0 1.25rem;
  background: linear-gradient(135deg, var(--nur-green-3), var(--nur-green-4));
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--nur-font);
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: .01em;
  transition: filter var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 14px rgba(22,163,74,0.30);
}
.jsp-search__btn:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.jsp-search__btn:active { transform: scale(.96); }
.jsp-search__btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* Dropdown */
.jsp-search__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border: 1.5px solid var(--c-border-mid);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  max-height: 220px;
  overflow-y: auto;
  list-style: none;
  padding: .375rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-mid) transparent;
}
.jsp-search__dropdown::-webkit-scrollbar { width: 3px; }
.jsp-search__dropdown::-webkit-scrollbar-thumb { background: var(--c-border-mid); border-radius: 4px; }
.jsp-search__dropdown-item {
  padding: .75rem 1.125rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .625rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.jsp-search__dropdown-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-border-mid);
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.jsp-search__dropdown-item:hover,
.jsp-search__dropdown-item--focus {
  background: var(--glass-green);
  color: var(--c-primary);
}
.jsp-search__dropdown-item:hover::before,
.jsp-search__dropdown-item--focus::before { background: var(--c-primary); }
.jsp-search__dropdown-empty {
  padding: 1rem;
  font-size: .8125rem;
  color: var(--c-text-faint);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Islamic gradient (selaras Kumo UI)
═══════════════════════════════════════════════════════════════ */
.jsp-hero {
  background:
    radial-gradient(ellipse 75% 55% at 50% -5%, rgba(34,197,94,.22) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 90% 90%, rgba(245,158,11,.15) 0%, transparent 55%),
    linear-gradient(165deg, #0a3d1f 0%, #145e30 40%, #1a8c48 75%, #22a857 100%);
  color: #fff;
  padding: 2rem 1.375rem 6.5rem;
  position: relative;
  overflow: hidden;
}
/* Mesh pattern overlay */
.jsp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(circle at 65% 70%, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px, 55px 55px, 35px 35px;
  pointer-events: none;
}
/* Decorative ring */
.jsp-hero__ring {
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.jsp-hero__ring::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}

/* Star particles */
.jsp-hero__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.jsp-hero__star {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: jspTwinkle var(--star-dur, 3s) ease-in-out infinite var(--star-delay, 0s);
}
@keyframes jspTwinkle {
    0%, 100% { opacity: var(--star-min, 0.2); transform: scale(1); }
    50%       { opacity: var(--star-max, 0.9); transform: scale(1.3); }
}

/* Star particles */
.jsp-hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.jsp-hero__star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  animation: nurTwinkle var(--star-dur,3s) ease-in-out infinite var(--star-delay,0s);
}
@keyframes nurTwinkle {
  0%,100% { opacity: var(--star-min,.2); transform: scale(1); }
  50%      { opacity: var(--star-max,.9); transform: scale(1.4); }
}

/* Crescent ornament */
.jsp-hero__moon {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 52px; height: 52px;
  pointer-events: none;
  opacity: .6;
  animation: nurMoonFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(245,158,11,.4));
}
@keyframes nurMoonFloat {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-7px) rotate(6deg); }
}

/* Top bar */
.jsp-hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.jsp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--r-full);
  padding: .35rem .9rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(10px);
}
.jsp-hero__location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Big Countdown ─── */
.jsp-hero__countdown-main {
  text-align: center;
  position: relative;
  z-index: 2;
}
.jsp-hero__next-label {
  display: block;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
  margin-bottom: .6rem;
}
.jsp-hero__next-prayer-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--nur-gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  min-height: 1.4em;
  text-shadow: 0 0 22px rgba(245,158,11,.55);
}

/* Digital clock segments */
.jsp-hero__timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  margin: .25rem 0 .75rem;
}
.jsp-hero__timer-seg {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-md);
  padding: .5rem .7rem;
  min-width: 3.125rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.jsp-hero__timer-seg-val {
  display: block;
  font-size: clamp(2.125rem, 12vw, 3.25rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,.22);
}
.jsp-hero__timer-seg-label {
  display: block;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
  margin-top: .25rem;
}
.jsp-hero__timer-colon {
  font-size: clamp(1.875rem, 11vw, 3rem);
  font-weight: 900;
  color: var(--nur-gold);
  line-height: 1;
  margin-bottom: .5rem;
  animation: nurColonBlink 1s step-end infinite;
  text-shadow: 0 0 18px rgba(245,158,11,.45);
  align-self: center;
}
@keyframes nurColonBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: .2; }
}
.jsp-hero__timer { display: none; }

.jsp-hero__next-time {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--r-full);
  padding: .2rem .875rem;
  min-height: 1.6em;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* ─── City & Date ─── */
.jsp-hero__city-date {
  text-align: center;
  position: relative;
  z-index: 2;
  padding-top: 1.375rem;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 1rem;
}
.jsp-hero__city {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: .4rem;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,.22);
}
.jsp-hero__date { font-size: .875rem; color: rgba(255,255,255,.65); }
.jsp-hero__date-hijri {
  display: inline-block;
  background: rgba(245,158,11,.18);
  border: 1px solid rgba(245,158,11,.40);
  border-radius: var(--r-full);
  padding: .275rem .9rem;
  font-size: .8125rem;
  font-weight: 700;
  color: #ffe9a0;
  letter-spacing: .02em;
  text-shadow: 0 1px 4px rgba(0,0,0,.30);
}

/* ─── Wave divider ─── */
.jsp-hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  pointer-events: none;
  line-height: 0;
}
.jsp-hero__wave svg {
  display: block;
  width: 100%;
  height: 68px;
  fill: var(--c-bg-soft);
}

/* ═══════════════════════════════════════════════════════════════
   PRAYER LIST — Floating white card overlapping hero
═══════════════════════════════════════════════════════════════ */
.jsp-prayer-list {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  margin: -4rem 1rem 0;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--c-border), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.jsp-prayer-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(22,163,74,.07);
  transition: background var(--t-fast), transform var(--t-fast);
  position: relative;
  cursor: default;
}
.jsp-prayer-row:last-child { border-bottom: none; }
.jsp-prayer-row:hover:not(.jsp-prayer-row--active) {
  background: var(--glass-green);
}

/* Icon */
.jsp-prayer-row__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: rgba(22,163,74,.07);
  border: 1px solid rgba(22,163,74,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  transition: background var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
}
.jsp-prayer-row__icon svg { width: 19px; height: 19px; }

/* Info */
.jsp-prayer-row__info { flex: 1; min-width: 0; }
.jsp-prayer-row__name {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--c-text-bright);
  line-height: 1.25;
  transition: color var(--t-fast);
}
.jsp-prayer-row__sub {
  display: none;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-top: .15rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Time */
.jsp-prayer-row__time {
  font-size: 1.1875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-muted);
  letter-spacing: -.02em;
  flex-shrink: 0;
  transition: color var(--t-fast);
}

/* Pulse dot */
.jsp-prayer-row__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--nur-gold);
  flex-shrink: 0;
  display: none;
  animation: nurRowPulse 1.8s ease-in-out infinite;
}
@keyframes nurRowPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--nur-gold-glow); transform: scale(1); }
  50%      { box-shadow: 0 0 0 7px rgba(245,158,11,0); transform: scale(1.2); }
}

/* ─── Active Row ─── */
.jsp-prayer-row--active {
  background: linear-gradient(90deg, rgba(22,163,74,.10), rgba(22,163,74,.03)) !important;
}
.jsp-prayer-row--active::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--nur-gold), var(--c-primary));
  box-shadow: 0 0 10px rgba(22,163,74,.30);
}
.jsp-prayer-row--active .jsp-prayer-row__icon {
  background: rgba(22,163,74,.14);
  border-color: var(--c-primary);
  box-shadow: var(--sh-glow), inset 0 1px 0 rgba(255,255,255,.5);
}
.jsp-prayer-row--active .jsp-prayer-row__name  { color: var(--nur-green-4); }
.jsp-prayer-row--active .jsp-prayer-row__time  { color: var(--c-primary); text-shadow: 0 0 12px rgba(22,163,74,.25); }
.jsp-prayer-row--active .jsp-prayer-row__sub   { display: block; }
.jsp-prayer-row--active .jsp-prayer-row__pulse { display: block; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT AREA
═══════════════════════════════════════════════════════════════ */
/* Wrapper per-section — gap & rounded via margin */
.jsp-content {
  padding: 0 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.jsp-content:last-child {
  margin-bottom: 2rem;
}

/* ─── Section Title ─── */
.jsp-section-title {
  font-size: .75rem;
  font-weight: 800;
  color: var(--c-text-bright);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.jsp-section-title svg { color: var(--c-primary); flex-shrink: 0; }
.jsp-section-title__sub {
  margin-left: auto;
  font-size: .625rem;
  font-weight: 700;
  color: var(--c-primary);
  background: rgba(22,163,74,.10);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-full);
  padding: .175rem .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ─── Monthly Table ─── */
.jsp-monthly {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  padding: 1.25rem 1.125rem 1.125rem;
}
.jsp-monthly__wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border-mid);
  box-shadow: var(--sh-sm);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-mid) transparent;
  background: var(--c-bg-card);
}
.jsp-monthly__wrap::-webkit-scrollbar       { height: 3px; }
.jsp-monthly__wrap::-webkit-scrollbar-thumb { background: var(--c-border-mid); border-radius: 4px; }

.jsp-monthly__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.jsp-monthly__table thead th {
  background: linear-gradient(180deg, rgba(22,163,74,.10), rgba(22,163,74,.05));
  border-bottom: 1px solid var(--c-border-mid);
  padding: .8rem .5rem;
  font-weight: 800;
  color: var(--c-primary);
  text-align: center;
  white-space: nowrap;
  font-size: .5875rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
.jsp-monthly__table tbody td {
  padding: .5625rem .5rem;
  border-bottom: 1px solid rgba(22,163,74,.06);
  color: var(--c-text-secondary);
  white-space: nowrap;
  text-align: center;
  transition: background var(--t-fast);
}
.jsp-monthly__table tbody tr:last-child td { border-bottom: none; }
.jsp-monthly__table tbody tr:hover td {
  background: var(--glass-green);
  color: var(--c-text-bright);
}
.jsp-monthly__table tbody tr.jsp-today td {
  background: rgba(245,158,11,.07) !important;
  color: var(--c-text-bright);
  font-weight: 700;
}
.jsp-monthly__table tbody tr.jsp-today td:first-child {
  border-left: 3px solid var(--nur-gold);
  color: var(--nur-gold-deep);
}
.jsp-monthly__table td.jsp-amber { color: var(--nur-gold-deep); font-weight: 600; }

/* ─── FAQ ─── */
.jsp-faq {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  padding: 1.25rem 1.125rem 1.125rem;
}
.jsp-faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: .5rem;
  background: var(--c-bg-card);
  overflow: hidden;
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
}
.jsp-faq__item:hover {
  border-color: var(--c-border-mid);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}
.jsp-faq__item[open] {
  border-color: var(--c-primary);
  box-shadow: var(--sh-sm), 0 0 0 1px var(--c-border-mid);
}
.jsp-faq__q {
  padding: 1rem 1.125rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--c-text-bright);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  user-select: none;
  line-height: 1.45;
  transition: color var(--t-fast);
}
.jsp-faq__q::-webkit-details-marker { display: none; }
.jsp-faq__item[open] .jsp-faq__q { color: var(--c-primary); }
.jsp-faq__q::after {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234d7a5a'%3E%3Cpath fill-rule='evenodd' d='M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--t-normal);
}
.jsp-faq__item[open] .jsp-faq__q::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Cpath fill-rule='evenodd' d='M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.jsp-faq__a {
  padding: .75rem 1.125rem 1.125rem;
  font-size: .9125rem;
  color: var(--c-text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--c-border);
  background: rgba(22,163,74,.025);
}

/* ─── Reference & Nearby ─── */
.jsp-ref {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.125rem 1.125rem;
  box-shadow: var(--sh-sm);
}
.jsp-ref__head {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .875rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--c-border);
}
.jsp-ref__icon  { width: 15px; height: 15px; color: var(--c-primary); }
.jsp-ref__label { font-size: .75rem; font-weight: 800; color: var(--c-primary); letter-spacing: .06em; text-transform: uppercase; }
.jsp-ref__chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.jsp-ref__chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(22,163,74,.08);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-full);
  padding: .4rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.jsp-ref__chip:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22,163,74,.30);
}
.jsp-ref__chip:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.jsp-ref__chip svg { width: 11px; height: 11px; }

/* Nearby cities */
.jsp-nearby { margin-top: .875rem; padding-top: .875rem; border-top: 1px solid var(--c-border); }
.jsp-nearby__label {
  font-size: .6rem;
  font-weight: 700;
  color: var(--c-text-faint);
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: .625rem;
}
.jsp-nearby__grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.jsp-nearby__chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(22,163,74,.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: .35rem .8rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.jsp-nearby__chip:hover {
  background: rgba(22,163,74,.10);
  border-color: var(--c-border-mid);
  color: var(--c-primary);
  transform: translateY(-1px);
}
.jsp-nearby__chip:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.jsp-nearby__chip svg { width: 9px; height: 9px; color: var(--c-primary); }

/* ═══════════════════════════════════════════════════════════════
   STATES: ERROR & LOADING
═══════════════════════════════════════════════════════════════ */
.jsp-error {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.20);
  border-radius: var(--r-md);
  padding: .9rem 1.125rem;
  color: #b91c1c;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.25rem 1rem;
}
.jsp-error svg { flex-shrink: 0; width: 15px; height: 15px; color: #dc2626; }

.jsp-loading {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 3rem;
  color: var(--c-text-faint);
  font-size: .875rem;
  justify-content: center;
}
.jsp-loading__spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: nurSpin .7s linear infinite;
  flex-shrink: 0;
  box-shadow: var(--sh-glow);
}
@keyframes nurSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .jsp-hero               { padding: 1.75rem 1.125rem 6rem; }
  .jsp-hero__city         { font-size: 1.625rem; }
  .jsp-hero__timer-seg-val{ font-size: 1.9rem; }
  .jsp-hero__timer-seg    { min-width: 2.75rem; padding: .4rem .5rem; }
  .jsp-hero__timer-colon  { font-size: 1.75rem; }
  .jsp-prayer-list        { margin: -3.5rem .75rem 0; }
  .jsp-prayer-row         { padding: .875rem 1rem; gap: .75rem; }
  .jsp-prayer-row__icon   { width: 40px; height: 40px; }
  .jsp-prayer-row__name   { font-size: .875rem; }
  .jsp-prayer-row__time   { font-size: 1.0625rem; }
  .jsp-content            { padding: 1.75rem .75rem 0; }
}