:root{
  /* Backgrounds */
  --bg:#F8FAFC;
  --card:rgba(255,255,255,0.92);

  /* Brand */
  --primary:#2563EB;
  --accent:#F59E0B;
  --success:#16A34A;

  /* Text */
  --text:#0F172A;
  --muted:#64748B;

  /* UI */
  --radius:18px;
  --shadow:0 14px 34px rgba(2,6,23,0.10);
  --shadow-soft:0 10px 25px rgba(2,6,23,0.06);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:'Inter', sans-serif;
  color:var(--text);

  background:
    radial-gradient(1200px 650px at 15% 10%, rgba(37, 99, 235, 0.20) 0%, transparent 60%),
    radial-gradient(900px 520px at 85% 25%, rgba(245, 158, 11, 0.18) 0%, transparent 55%),
    radial-gradient(900px 520px at 55% 90%, rgba(22, 163, 74, 0.14) 0%, transparent 60%),
    var(--bg);
}

.container{
  width:min(420px,92vw);
  margin:18px auto;
  padding:14px;
}

/* Header */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}

.header h1{
  margin:0;
  font-size:18px;
  font-weight:900;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.back-btn{
  text-decoration:none;
  color:var(--primary);
  font-weight:900;
  font-size:13px;
  white-space:nowrap;

  background: rgba(37, 99, 235, 0.10);
  padding:8px 10px;
  border-radius:999px;
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.back-btn:active{ transform: scale(0.98); }

.header-space{ width:55px; }

/* Card */
.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow-soft);
  margin-bottom:12px;
  border: 1px solid rgba(2,6,23,0.06);
}

.top-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

/* Pills */
.pill{
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
  padding:6px 10px;
  border-radius:999px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  font-weight:900;
  font-size:12px;
}

.muted{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.small-muted{
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

/* Next prayer box (Accent highlight) */
.next-box{
  background: rgba(245, 158, 11, 0.12);
  border-radius:16px;
  padding:12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.next-title{
  font-weight:900;
  font-size:14px;
  margin-bottom:6px;
}

.countdown{
  font-size:20px;
  font-weight:900;
  letter-spacing: 0.5px;
  margin-bottom:6px;
}

/* Refresh button */
.refresh-btn{
  margin-top:12px;
  width:100%;
  border:none;
  border-radius:14px;
  padding:12px 14px;

  background: var(--primary);
  color:#fff;
  font-weight:900;
  font-size:14px;
  cursor:pointer;

  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.refresh-btn:hover{
  filter: brightness(1.03);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.26);
}

.refresh-btn:active{ transform: scale(0.99); }

/* Section title */
.section-h2{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
  color: var(--text);
}

.times-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.time-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-radius:16px;

  background: rgba(2,6,23,0.04);
  border:1px solid rgba(2,6,23,0.06);
}

.time-name{
  font-weight:900;
  font-size:13px;
}

.time-value{
  font-weight:900;
  font-size:13px;
  color: var(--text);
}

/* Highlight للصلاة القادمة (Primary subtle) */
.time-row.active{
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.16);
}

/* ===== City selector ===== */
.city-selector{
  display:flex;
  gap:8px;
  margin:10px 0 12px;
  flex-wrap:wrap;
}

.city-btn{
  border:none;
  background: rgba(2,6,23,0.04);
  padding:8px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  color:var(--text);
  border: 1px solid rgba(2,6,23,0.06);
  transition: background .15s ease, color .15s ease, transform .12s ease, border-color .15s ease;
}

.city-btn:hover{
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
  color: var(--primary);
}

.city-btn.active{
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.18);
}

.city-btn:active{
  transform: scale(0.96);
}
