/* === Phone screen content styles === */

/* === Screen: Prayer Times === */
.scr-prayer {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(16, 185, 129, 0.18), transparent 70%),
    linear-gradient(180deg, #0c1612, #0a110e);
}
.scr-prayer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 4px;
}
.scr-prayer-place {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scr-prayer-date {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 4px;
}
.scr-prayer-hijri {
  font-size: 11px;
  color: var(--emerald-glow);
  margin-top: 4px;
}
.scr-prayer-next {
  margin-top: 22px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.28);
  position: relative;
  overflow: hidden;
}
.scr-prayer-next::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.4), transparent 60%);
  filter: blur(20px);
}
.scr-prayer-next-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-glow);
}
.scr-prayer-next-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.scr-prayer-next-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.scr-prayer-next-time {
  font-size: 30px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.scr-prayer-next-until {
  font-size: 11.5px;
  color: var(--ink-mute);
}
.scr-prayer-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.scr-prayer-item {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.scr-prayer-item:last-child { border-bottom: none; }
.scr-prayer-item-i {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: var(--ink-faint);
}
.scr-prayer-item-name {
  font-weight: 500;
  color: var(--ink-soft);
}
.scr-prayer-item-time {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.scr-prayer-item-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  display: grid; place-items: center;
  font-size: 10px;
  color: transparent;
}
.scr-prayer-item.is-done .scr-prayer-item-check {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #021712;
}
.scr-prayer-item.is-done .scr-prayer-item-name { color: var(--ink); }
.scr-prayer-item.is-info .scr-prayer-item-check {
  border-style: dashed;
  opacity: 0.5;
}
.scr-prayer-item.is-current {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.07), transparent);
  border-radius: 8px;
  border-bottom-color: transparent;
}
.scr-prayer-item.is-current .scr-prayer-item-name { color: var(--ink); font-weight: 600; }

/* === Screen: Quran === */
.scr-quran {
  background:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(212, 163, 92, 0.1), transparent 70%),
    linear-gradient(180deg, #0c1310, #0a110e);
}
.scr-quran-head {
  text-align: center;
  margin-top: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.scr-quran-surah {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}
.scr-quran-sub {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.scr-quran-bismillah {
  font-family: "Amiri Quran", "Scheherazade New", serif;
  text-align: center;
  font-size: 22px;
  margin: 22px 0 18px;
  color: var(--gold);
  direction: rtl;
  line-height: 1.6;
}
.scr-quran-ayah {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.scr-quran-ayah:last-child { border-bottom: none; }
.scr-quran-arabic {
  font-family: "Amiri Quran", "Scheherazade New", serif;
  font-size: 21px;
  line-height: 1.95;
  text-align: right;
  direction: rtl;
  color: var(--ink);
}
.scr-quran-ayah-num {
  display: inline-block;
  font-size: 13px;
  font-family: "Manrope", sans-serif;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(212, 163, 92, 0.12);
  border: 1px solid rgba(212, 163, 92, 0.3);
  color: var(--gold);
  text-align: center;
  line-height: 24px;
  margin: 0 4px;
  vertical-align: middle;
}
.scr-quran-meal {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 8px;
  line-height: 1.55;
}
.scr-quran-foot {
  margin-top: auto;
  padding: 14px 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
}
.scr-quran-play {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--emerald);
  display: grid; place-items: center;
  color: #021712;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
}
.scr-quran-wave {
  flex: 1;
  height: 22px;
  margin: 0 14px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.scr-quran-wave span {
  flex: 1;
  background: var(--emerald);
  border-radius: 2px;
  opacity: 0.8;
}
.scr-quran-offline {
  font-size: 10px;
  color: var(--emerald-glow);
  letter-spacing: 0.05em;
}

/* === Screen: AI Koc === */
.scr-coach {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(16, 185, 129, 0.15), transparent 70%),
    linear-gradient(180deg, #0a110e, #0c1612);
}
.scr-coach-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-top: 4px;
}
.scr-coach-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scr-coach-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-glow);
  box-shadow: 0 0 10px var(--emerald-glow);
}
.scr-coach-name {
  font-size: 14px;
  font-weight: 600;
}
.scr-coach-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 8px;
  background: rgba(212, 163, 92, 0.1);
  border: 1px solid rgba(212, 163, 92, 0.25);
  border-radius: 6px;
}
.scr-coach-body {
  flex: 1;
  padding: 18px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.bubble {
  font-size: 13px;
  line-height: 1.5;
  padding: 11px 14px;
  border-radius: 16px;
  max-width: 88%;
}
.bubble-user {
  align-self: flex-end;
  background: var(--emerald-deep);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}
.bubble-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-bottom-left-radius: 6px;
}
.bubble-ai-source {
  font-size: 10.5px;
  margin-top: 6px;
  color: var(--gold);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.scr-coach-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.scr-coach-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-mute);
  animation: typing 1.4s infinite;
}
.scr-coach-typing span:nth-child(2) { animation-delay: 0.2s; }
.scr-coach-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.scr-coach-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-mute);
}
.scr-coach-input-btn {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--emerald);
  display: grid; place-items: center;
  color: #021712;
}

/* === Screen: Qibla === */
.scr-qibla {
  background:
    radial-gradient(circle at 50% 55%, rgba(16, 185, 129, 0.18), transparent 60%),
    linear-gradient(180deg, #0a110e, #060a09);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scr-qibla-head {
  width: 100%;
  text-align: center;
  margin-top: 6px;
}
.scr-qibla-place {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.scr-qibla-degree {
  font-size: 13px;
  color: var(--emerald-glow);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.scr-qibla-compass {
  margin: 24px auto 18px;
  width: 220px; height: 220px;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(255, 255, 255, 0.04) 61%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
}
.scr-qibla-compass::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}
.scr-qibla-tick {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
}
.scr-qibla-tick span {
  position: absolute;
  top: 8px; left: 50%;
  width: 1px; height: 8px;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: 50% 102px;
}
.scr-qibla-needle {
  position: absolute;
  width: 4px;
  height: 95px;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) rotate(28deg);
  transform-origin: 50% 100%;
  z-index: 2;
}
.scr-qibla-needle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--emerald-glow), var(--emerald-deep));
  clip-path: polygon(50% 0%, 100% 80%, 50% 100%, 0% 80%);
  filter: drop-shadow(0 0 6px var(--emerald));
}
.scr-qibla-kaaba {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translate(-50%, -8px);
  font-size: 20px;
  color: var(--gold);
}
.scr-qibla-center {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 16px var(--emerald);
  z-index: 3;
  position: relative;
}
.scr-qibla-status {
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
  padding: 0 12px;
}

/* === Screen: Tasbih === */
.scr-tasbih {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(16, 185, 129, 0.18), transparent 60%),
    linear-gradient(180deg, #0a110e, #0c1612);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.scr-tasbih-head {
  text-align: center;
  margin-top: 10px;
}
.scr-tasbih-label {
  font-family: "Amiri Quran", "Scheherazade New", serif;
  font-size: 26px;
  color: var(--gold);
  direction: rtl;
}
.scr-tasbih-sub {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.scr-tasbih-count {
  font-size: 86px;
  font-weight: 200;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 18px 0;
}
.scr-tasbih-progress {
  width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.scr-tasbih-progress-fill {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-glow));
  border-radius: 999px;
}
.scr-tasbih-target {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.scr-tasbih-button {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--emerald), var(--emerald-deep));
  margin: 12px 0;
  box-shadow:
    0 0 60px -10px var(--emerald),
    inset 0 -10px 30px rgba(0,0,0,0.3),
    inset 0 10px 30px rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #02120c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === Screen: Home / Hero === */
.scr-home {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(16, 185, 129, 0.2), transparent 70%),
    linear-gradient(180deg, #0c1612, #0a110e);
}
.scr-home-greeting {
  margin-top: 6px;
}
.scr-home-greeting-sub {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scr-home-greeting-name {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}
.scr-home-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}
.scr-home-card-eye {
  font-size: 10px;
  color: var(--emerald-glow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scr-home-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.scr-home-card-time {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.scr-home-card-time strong {
  font-size: 22px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.scr-home-card-time span {
  font-size: 11px;
  color: var(--ink-mute);
}
.scr-home-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.scr-home-tile {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scr-home-tile-icon {
  width: 22px; height: 22px;
  color: var(--emerald-glow);
  margin-bottom: 4px;
}
.scr-home-tile-title { font-size: 13px; font-weight: 600; }
.scr-home-tile-sub { font-size: 10.5px; color: var(--ink-mute); }

.scr-home-streak {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scr-home-streak-left { display: flex; flex-direction: column; gap: 2px; }
.scr-home-streak-label { font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase; }
.scr-home-streak-val { font-size: 14px; font-weight: 600; }
.scr-home-streak-bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.scr-home-streak-bars span {
  width: 4px;
  background: var(--emerald-deep);
  border-radius: 2px;
}
.scr-home-streak-bars span:nth-child(2n) { background: var(--emerald); height: 70%; }
.scr-home-streak-bars span:nth-child(3) { height: 50%; }
.scr-home-streak-bars span:nth-child(1) { height: 30%; }
.scr-home-streak-bars span:nth-child(4) { height: 90%; }
.scr-home-streak-bars span:nth-child(5) { height: 60%; }
.scr-home-streak-bars span:nth-child(6) { height: 80%; }
.scr-home-streak-bars span:nth-child(7) { height: 100%; background: var(--emerald-glow); }
.scr-home-streak-bars span { height: 50%; }
