:root {
  --ink: #123c3a;
  --muted: #6b8280;
  --paper: #fffaf2;
  --cream: #f7f0e4;
  --turquoise: #0ca6a0;
  --turquoise-dark: #087c78;
  --turquoise-soft: #dff5f1;
  --turquoise-rgb: 12, 166, 160;
  --orange: #f5823b;
  --orange-soft: #fff0df;
  --orange-rgb: 245, 130, 59;
  --line: rgba(18, 60, 58, 0.09);
  --shadow: 0 12px 30px rgba(30, 71, 67, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.guide-preview-frame {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  z-index: 1000;
  background: var(--paper);
}

html,
body {
  margin: 0;
  width: 372px;
  min-height: 560px;
  overflow-x: hidden;
}

body {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 5%, rgba(var(--orange-rgb), 0.14), transparent 27%),
    var(--paper);
  background-position: center;
  background-size: cover;
  transition: opacity 180ms ease;
}

body[data-background="rose"]::before {
  background-image: linear-gradient(rgba(255, 250, 252, 0.52), rgba(255, 250, 252, 0.52)), url("assets/backgrounds/rose-garden.jpg");
}

body[data-background="flowers"]::before {
  background-image: linear-gradient(rgba(255, 252, 246, 0.54), rgba(255, 252, 246, 0.54)), url("assets/backgrounds/spring-flowers.jpg");
}

body[data-background="waves"]::before {
  background-image: linear-gradient(rgba(247, 253, 255, 0.46), rgba(247, 253, 255, 0.46)), url("assets/backgrounds/blue-waves.jpg");
}

body[data-background="pearl"]::before {
  background-color: #fff9fc;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(var(--turquoise-rgb), 0.1) 0 2px, transparent 2.5px),
    linear-gradient(45deg, transparent 47%, rgba(var(--orange-rgb), 0.08) 48% 52%, transparent 53%);
  background-size: 28px 28px, 40px 40px;
}

body[data-background="sakura"]::before {
  background-image: linear-gradient(rgba(255, 250, 247, 0.5), rgba(255, 250, 247, 0.5)), url("assets/backgrounds/sakura-dream.jpg");
}

body[data-background="butterflies"]::before {
  background-image: linear-gradient(rgba(252, 249, 255, 0.5), rgba(252, 249, 255, 0.5)), url("assets/backgrounds/lavender-butterflies.jpg");
}

body[data-background="midnight"]::before {
  background-image: linear-gradient(rgba(244, 248, 255, 0.67), rgba(244, 248, 255, 0.67)), url("assets/backgrounds/midnight-sky.jpg");
}

body[data-background="arches"]::before {
  background-image: linear-gradient(rgba(250, 253, 247, 0.7), rgba(250, 253, 247, 0.72)), url("assets/backgrounds/serenity-arches.png");
}

body[data-background="mihrab"]::before {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 18%, rgba(var(--orange-rgb), .2), transparent 24%),
    radial-gradient(ellipse at 50% 18%, transparent 0 19%, rgba(var(--turquoise-rgb), .1) 19.3% 19.8%, transparent 20.1%),
    linear-gradient(135deg, transparent 46%, rgba(var(--turquoise-rgb), .06) 46.5% 48%, transparent 48.5%);
  background-size: auto, auto, 46px 46px;
}

body[data-background="dawn"]::before {
  background-image:
    radial-gradient(circle at 16% 16%, rgba(255, 191, 130, .38), transparent 32%),
    radial-gradient(circle at 84% 10%, rgba(135, 155, 224, .28), transparent 35%),
    linear-gradient(145deg, #fff8ef, #f4f2ff 52%, #e9f6f2);
}

body[data-background="geometry"]::before {
  background-color: var(--paper);
  background-image:
    linear-gradient(30deg, rgba(var(--turquoise-rgb), .07) 12%, transparent 12.5%, transparent 87%, rgba(var(--turquoise-rgb), .07) 87.5%),
    linear-gradient(150deg, rgba(var(--orange-rgb), .06) 12%, transparent 12.5%, transparent 87%, rgba(var(--orange-rgb), .06) 87.5%),
    linear-gradient(30deg, rgba(var(--turquoise-rgb), .07) 12%, transparent 12.5%, transparent 87%, rgba(var(--turquoise-rgb), .07) 87.5%);
  background-position: 0 0, 0 0, 31px 54px;
  background-size: 62px 108px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 560px;
  padding: 14px 14px 12px;
}

.topbar,
.brand,
.hero__topline,
.countdown,
.section-heading,
.prayer-card,
.error-card {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  padding: 0 2px 12px;
}

.topbar__actions {
  display: flex;
  gap: 6px;
}

.brand {
  gap: 10px;
}

.brand-button {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-button:focus-visible {
  outline: 3px solid rgba(var(--orange-rgb), 0.38);
  outline-offset: 3px;
  border-radius: 13px;
}

.brand-button:hover .brand__logo {
  transform: translateY(-1px) rotate(-2deg);
}

.brand-button:disabled {
  cursor: progress;
}

.brand__logo {
  filter: drop-shadow(0 5px 7px rgba(12, 124, 120, 0.18));
  transition: transform 160ms ease;
}

.brand-button.is-refreshing .brand__logo {
  animation: logo-refresh 720ms cubic-bezier(.3, .8, .3, 1) infinite alternate;
}

.brand h1,
.section-heading h2,
.section-heading span,
.error-card p {
  margin: 0;
}

.brand h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--turquoise-dark);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button:hover {
  background: var(--turquoise-soft);
  transform: translateY(-1px);
}

.icon-button:focus-visible,
.error-card button:focus-visible,
.hero__verse a:focus-visible,
.text-button:focus-visible,
.save-button:focus-visible,
.name-input-wrap input:focus-visible,
.custom-colors input:focus-visible {
  outline: 3px solid rgba(var(--orange-rgb), 0.38);
  outline-offset: 2px;
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.icon-button.is-spinning svg {
  animation: spin 650ms linear infinite;
}

.hero {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  padding: 16px;
  border-radius: 25px 25px 25px 9px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 38%),
    linear-gradient(140deg, var(--turquoise-dark) 0%, var(--turquoise) 58%, color-mix(in srgb, var(--turquoise) 78%, white) 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -15px -25px 40%;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero__orb--one {
  width: 88px;
  height: 88px;
  right: -30px;
  top: 25px;
  background: rgba(var(--orange-rgb), 0.34);
}

.hero__orb--two {
  width: 45px;
  height: 45px;
  right: 68px;
  bottom: -21px;
  background: rgba(255, 237, 198, 0.15);
}

.hero__motif {
  position: absolute;
  width: 98px;
  height: 98px;
  right: 4px;
  top: 55px;
  opacity: 0.16;
  fill: #fff;
  transform: rotate(7deg);
}

.hero__topline {
  position: relative;
  z-index: 1;
  justify-content: space-between;
}

.location-chip,
.live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.location-chip {
  gap: 5px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.location-chip svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.live-pill {
  gap: 6px;
  padding: 0 8px;
  color: #eafffd;
  background: rgba(5, 93, 89, 0.36);
}

.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9fff5;
  box-shadow: 0 0 0 4px rgba(185, 255, 245, 0.12);
}

.live-pill.is-cached i {
  background: #ffd39e;
  box-shadow: 0 0 0 4px rgba(255, 211, 158, 0.14);
}

.hero__verse {
  position: relative;
  z-index: 1;
  min-height: 90px;
  margin-top: 12px;
  padding-right: 20px;
}

.verse-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(224, 255, 251, 0.72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.verse-label svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero__arabic {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 2px;
  color: #fff9eb;
  font-family: "Traditional Arabic", "Noto Naskh Arabic", "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.55;
  text-align: right;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero__reading {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 5px;
  color: rgba(232, 255, 251, .68);
  font-size: 8px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero__verse blockquote {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.1px;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.hero__verse a,
.verse-reference {
  display: inline-block;
  margin-top: 5px;
  color: #ffe3c7;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.hero__verse a:hover {
  text-decoration: underline;
}

.countdown {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px 14px 14px 5px;
  background: rgba(7, 92, 88, 0.42);
  backdrop-filter: blur(8px);
}

.countdown__eyebrow {
  display: block;
  color: rgba(228, 255, 251, 0.7);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.countdown strong {
  display: block;
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.countdown__time {
  color: #fff6e7;
  font-size: 22px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.prayer-section {
  padding: 14px 2px 0;
}

.section-heading {
  justify-content: space-between;
  margin: 0 3px 9px;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.section-heading span {
  max-width: 48%;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.prayer-card,
.skeleton-card {
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.78);
}

.prayer-card {
  position: relative;
  gap: 10px;
  padding: 9px 10px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: card-in 320ms both;
}

.prayer-card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--turquoise-rgb), 0.22);
}

.prayer-card.is-next {
  border-color: rgba(var(--orange-rgb), 0.24);
  background: linear-gradient(120deg, #fff 8%, var(--orange-soft));
  box-shadow: 0 6px 17px rgba(199, 102, 41, 0.1);
}

.prayer-card.is-next::after {
  content: "sıradaki";
  position: absolute;
  right: 7px;
  top: 5px;
  color: #bf5b20;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prayer-card__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px 11px 11px 4px;
  color: var(--turquoise-dark);
  background: var(--turquoise-soft);
}

.is-next .prayer-card__icon {
  color: #c45f22;
  background: #ffe2c2;
}

.prayer-card__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.prayer-card__text span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.prayer-card__text strong {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  background: #f2eee6;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.1s infinite;
}

.error-card {
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(var(--orange-rgb), 0.25);
  border-radius: 16px 16px 16px 6px;
  background: var(--orange-soft);
}

.error-card[hidden] {
  display: none;
}

.error-card__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-weight: 800;
}

.error-card strong {
  font-size: 11px;
}

.error-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.error-card button {
  margin-left: auto;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--turquoise-dark);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

body:not([data-background="plain"]) .prayer-card,
body:not([data-background="plain"]) .icon-button {
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(7px);
}

body.settings-open {
  overflow: hidden;
}

.settings-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  align-items: end;
}

.settings-overlay__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(27, 39, 38, 0.36);
  backdrop-filter: blur(3px);
  cursor: default;
  opacity: 0;
  transition: opacity 190ms ease;
}

.settings-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100vh - 18px);
  max-height: 590px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(var(--turquoise-rgb), 0.14);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 96%, white);
  box-shadow: 0 -18px 48px rgba(25, 45, 43, 0.2);
  transform: translateY(28px);
  opacity: 0;
  transition: transform 210ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease;
}

.settings-overlay.is-open .settings-overlay__backdrop,
.settings-overlay.is-open .settings-panel {
  opacity: 1;
}

.settings-overlay.is-open .settings-panel {
  transform: translateY(0);
}

.settings-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 5%, rgba(var(--orange-rgb), 0.14), transparent 31%),
    color-mix(in srgb, var(--paper) 94%, white);
}

.settings-panel__header span {
  display: block;
  margin-bottom: 3px;
  color: var(--turquoise-dark);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.settings-panel__header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: -0.3px;
}

.settings-panel__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.settings-panel__body {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 15px 22px;
  scrollbar-color: rgba(var(--turquoise-rgb), 0.28) transparent;
  scrollbar-width: thin;
}

.setting-group {
  min-width: 0;
  margin: 0 0 19px;
  padding: 0;
  border: 0;
}

.setting-group:last-child {
  margin-bottom: 0;
}

.setting-label {
  display: block;
  margin: 0 0 9px;
  padding: 0;
}

.setting-label > span {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.setting-label > small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 550;
}

.name-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 1px rgba(20, 50, 47, 0.03);
}

.name-input-wrap:focus-within {
  border-color: rgba(var(--turquoise-rgb), 0.46);
  box-shadow: 0 0 0 3px rgba(var(--turquoise-rgb), 0.09);
}

.name-input-wrap svg {
  flex: 0 0 auto;
  width: 16px;
  fill: none;
  stroke: var(--turquoise-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.name-input-wrap input {
  min-width: 0;
  flex: 1;
  padding: 9px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 700 13px/1 Inter, "Segoe UI", sans-serif;
}

.name-input-wrap > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.location-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.location-settings label {
  min-width: 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.location-settings select {
  width: 100%;
  min-height: 39px;
  margin-top: 4px;
  padding: 0 25px 0 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  font: 700 9px/1.2 Inter, "Segoe UI", sans-serif;
}

.location-settings select:focus {
  border-color: rgba(var(--turquoise-rgb), .46);
  box-shadow: 0 0 0 3px rgba(var(--turquoise-rgb), .09);
}

.location-settings select:disabled { opacity: .58; cursor: wait; }
.location-feedback { min-height: 13px; margin: 7px 2px 0; color: var(--muted); font-size: 8px; }
.location-feedback.is-error { color: #a34a42; }

.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.palette-choice,
.background-choice,
.logo-choice {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.palette-choice input,
.background-choice input,
.logo-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.palette-choice {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.palette-choice:hover,
.background-choice:hover,
.logo-choice:hover {
  transform: translateY(-1px);
}

.palette-choice:has(input:checked),
.background-choice:has(input:checked),
.logo-choice:has(input:checked) {
  border-color: rgba(var(--turquoise-rgb), 0.52);
  background: var(--turquoise-soft);
  box-shadow: 0 0 0 2px rgba(var(--turquoise-rgb), 0.09);
}

.palette-choice:has(input:focus-visible),
.background-choice:has(input:focus-visible),
.logo-choice:has(input:focus-visible) {
  outline: 3px solid rgba(var(--orange-rgb), 0.35);
  outline-offset: 2px;
}

.palette-choice__swatches {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.palette-choice__swatches i {
  width: 17px;
  height: 27px;
  display: block;
  border: 2px solid #fff;
  border-radius: 8px;
  background: var(--swatch, var(--turquoise));
  box-shadow: 0 2px 5px rgba(30, 54, 52, 0.13);
}

.palette-choice__swatches i + i {
  margin-left: -9px;
}

.palette-choice b,
.background-choice b,
.logo-choice b {
  overflow: hidden;
  color: var(--ink);
  font-size: 8px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.custom-colors label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px dashed rgba(var(--turquoise-rgb), 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.43);
  cursor: pointer;
}

.custom-colors input {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.custom-colors span {
  min-width: 0;
}

.custom-colors b,
.custom-colors small {
  display: block;
}

.custom-colors b {
  font-size: 9px;
}

.custom-colors small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-settings {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.66);
}

.notification-toggle {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  cursor: pointer;
}

.notification-toggle > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.notification-toggle svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 9px 9px 9px 3px;
  fill: none;
  stroke: var(--turquoise-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  background: var(--turquoise-soft);
}

.notification-toggle b,
.notification-toggle small {
  display: block;
}

.notification-toggle b {
  font-size: 10px;
}

.notification-toggle small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.notification-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.notification-toggle > i {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: #d9dfdc;
  box-shadow: inset 0 1px 3px rgba(24, 48, 45, 0.12);
  transition: background 160ms ease;
}

.notification-toggle > i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(32, 53, 50, 0.22);
  transition: transform 160ms ease;
}

.notification-toggle:has(input:checked) > i {
  background: var(--turquoise);
}

.notification-toggle:has(input:checked) > i::after {
  transform: translateX(16px);
}

.notification-toggle:has(input:focus-visible) > i {
  outline: 3px solid rgba(var(--orange-rgb), 0.35);
  outline-offset: 2px;
}

.notification-time {
  padding: 10px 11px 11px;
  border-top: 1px solid var(--line);
  background: rgba(var(--turquoise-rgb), 0.035);
  transition: opacity 160ms ease;
}

.notification-time.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.notification-time > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 720;
}

.notification-time output {
  padding: 4px 7px;
  border-radius: 99px;
  color: var(--turquoise-dark);
  background: var(--turquoise-soft);
  font-size: 8px;
  font-weight: 800;
}

.notification-time > input[type="range"] {
  width: 100%;
  height: 5px;
  display: block;
  margin: 0;
  accent-color: var(--turquoise);
  cursor: pointer;
}

.notification-time > input[type="range"]:focus-visible {
  outline: 3px solid rgba(var(--orange-rgb), 0.35);
  outline-offset: 4px;
}

.notification-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.notification-presets button {
  min-width: 0;
  min-height: 27px;
  padding: 0 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 7px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-presets button[aria-pressed="true"] {
  border-color: rgba(var(--turquoise-rgb), 0.4);
  color: var(--turquoise-dark);
  background: var(--turquoise-soft);
}

.notification-time p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.35;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.background-choice {
  min-width: 0;
  overflow: hidden;
  padding: 5px 5px 7px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 6px;
  background: rgba(255, 255, 255, 0.64);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.background-choice__preview {
  height: 58px;
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
  border-radius: 10px 10px 10px 4px;
  background-position: center;
  background-size: cover;
}

.background-choice__preview i {
  width: 70%;
  height: 29px;
  display: block;
  margin: 14px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px 9px 9px 3px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 12px rgba(35, 56, 53, 0.12);
}

.background-choice b {
  display: block;
  padding: 0 3px;
  text-align: center;
}

.background-choice--plain .background-choice__preview {
  background: radial-gradient(circle at 78% 10%, rgba(245, 130, 59, 0.25), transparent 35%), #fffaf2;
}

.background-choice--rose .background-choice__preview {
  background-image: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)), url("assets/backgrounds/rose-garden.jpg");
}

.background-choice--flowers .background-choice__preview {
  background-image: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)), url("assets/backgrounds/spring-flowers.jpg");
}

.background-choice--waves .background-choice__preview {
  background-image: url("assets/backgrounds/blue-waves.jpg");
}

.background-choice--pearl .background-choice__preview {
  background-color: #fff8fc;
  background-image:
    radial-gradient(circle at 8px 8px, rgba(173, 119, 161, 0.23) 0 2px, transparent 2.5px),
    linear-gradient(45deg, transparent 47%, rgba(221, 148, 168, 0.18) 48% 52%, transparent 53%);
  background-size: 19px 19px, 30px 30px;
}

.background-choice--sakura .background-choice__preview {
  background-image: url("assets/backgrounds/sakura-dream.jpg");
}

.background-choice--butterflies .background-choice__preview {
  background-image: url("assets/backgrounds/lavender-butterflies.jpg");
}

.background-choice--midnight .background-choice__preview {
  background-image: url("assets/backgrounds/midnight-sky.jpg");
}

.background-choice--arches .background-choice__preview {
  background-image: url("assets/backgrounds/serenity-arches.png");
}

.background-choice--mihrab .background-choice__preview {
  background:
    radial-gradient(ellipse at 50% 20%, #f6d28d 0 12%, transparent 35%),
    radial-gradient(ellipse at 50% 22%, transparent 0 35%, rgba(21,122,103,.32) 36% 38%, transparent 39%),
    #eef5ec;
}

.background-choice--dawn .background-choice__preview {
  background: radial-gradient(circle at 18% 18%, #ffc58e, transparent 35%), linear-gradient(145deg,#fff4e7,#e8e9fa 55%,#ddf1ea);
}

.background-choice--geometry .background-choice__preview {
  background-color: #f7f3e8;
  background-image: linear-gradient(30deg, rgba(22,122,103,.16) 12%, transparent 12.5%, transparent 87%, rgba(22,122,103,.16) 87.5%), linear-gradient(150deg, rgba(211,164,59,.14) 12%, transparent 12.5%, transparent 87%, rgba(211,164,59,.14) 87.5%);
  background-size: 24px 42px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.logo-choice {
  min-width: 0;
  padding: 5px 4px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.logo-choice > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
}

.logo-choice img {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-choice b {
  display: block;
  font-size: 7px;
}

.settings-panel__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 61px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 -9px 22px rgba(29, 55, 52, 0.06);
}

.settings-panel__footer > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.settings-feedback {
  min-width: 0;
  flex: 1;
  color: var(--turquoise-dark);
  font-size: 8px;
  font-weight: 700;
}

.text-button,
.save-button {
  min-height: 37px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 780;
}

.text-button {
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.save-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border: 0;
  color: #fff;
  background: var(--turquoise-dark);
  box-shadow: 0 6px 14px rgba(var(--turquoise-rgb), 0.22);
}

.save-button svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-refresh {
  from { transform: rotate(-5deg) scale(0.96); }
  to { transform: rotate(5deg) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2.1 — popup için daha canlı, katmanlı mikro etkileşimler */
.app-shell { padding:15px 15px 14px; }
.topbar { min-height:58px; }
.brand__logo { filter:drop-shadow(0 7px 12px rgba(var(--turquoise-rgb),.18)); }
.icon-button { backdrop-filter:blur(10px); box-shadow:0 7px 18px rgba(var(--turquoise-rgb),.07); }
.hero { border-radius:25px 25px 25px 8px; box-shadow:0 22px 45px rgba(var(--turquoise-rgb),.2); isolation:isolate; }
.hero::before { content:""; position:absolute; z-index:-1; inset:0; opacity:.14; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='58' viewBox='0 0 58 58'%3E%3Cpath d='m29 3 6 19 20 7-20 7-6 19-6-19-20-7 20-7Z' fill='none' stroke='white'/%3E%3C/svg%3E"); mask-image:linear-gradient(135deg,transparent,black); }
.hero__orb--one { animation:popup-orbit-one 7s ease-in-out infinite alternate; }
.hero__orb--two { animation:popup-orbit-two 6s ease-in-out infinite alternate; }
.hero__motif { animation:popup-motif 8s linear infinite; transform-origin:center; }
.live-pill i { animation:live-glow 1.8s ease-in-out infinite; }
.countdown { position:relative; overflow:hidden; border-color:rgba(255,255,255,.2); backdrop-filter:blur(10px); }
.countdown::after { content:""; position:absolute; inset:0; transform:translateX(-115%); background:linear-gradient(90deg,transparent,rgba(255,255,255,.09),transparent); animation:countdown-sheen 4.5s ease-in-out infinite; }
.countdown__time { font-variant-numeric:tabular-nums; letter-spacing:.4px; text-shadow:0 5px 18px rgba(0,0,0,.13); }
.prayer-card { position:relative; overflow:hidden; border-radius:16px 16px 16px 5px; box-shadow:0 9px 22px rgba(var(--turquoise-rgb),.06); }
.prayer-card::before { content:""; position:absolute; width:58px; height:58px; right:-35px; bottom:-37px; border:10px solid rgba(var(--turquoise-rgb),.06); border-radius:50%; transition:transform .25s ease; }
.prayer-card:hover::before { transform:scale(1.35); }
.prayer-card.is-next { box-shadow:0 12px 28px rgba(var(--turquoise-rgb),.18); }
.prayer-card.is-next .prayer-card__icon { animation:next-prayer-breathe 2.4s ease-in-out infinite; }
.settings-panel { border-radius:25px 25px 25px 8px; box-shadow:-20px 0 70px rgba(var(--turquoise-rgb),.18); }
.settings-panel__header { background:linear-gradient(145deg,color-mix(in srgb,var(--turquoise-soft) 52%,white),rgba(255,255,255,.86)); }
.palette-choice,.background-choice,.logo-choice { box-shadow:0 5px 13px rgba(var(--turquoise-rgb),.035); }
.palette-choice:has(input:checked),.background-choice:has(input:checked),.logo-choice:has(input:checked) { transform:translateY(-2px); box-shadow:0 8px 18px rgba(var(--turquoise-rgb),.11); }

@keyframes popup-orbit-one { to{transform:translate(15px,9px) scale(1.12)} }
@keyframes popup-orbit-two { to{transform:translate(-12px,-8px) scale(.9)} }
@keyframes popup-motif { 50%{transform:rotate(4deg) scale(1.03)} }
@keyframes live-glow { 0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.35)} 50%{box-shadow:0 0 0 5px rgba(255,255,255,0)} }
@keyframes countdown-sheen { 0%,55%{transform:translateX(-115%)} 82%,100%{transform:translateX(115%)} }
@keyframes next-prayer-breathe { 50%{transform:scale(1.08);box-shadow:0 0 0 5px rgba(var(--turquoise-rgb),.08)} }

@media (prefers-reduced-motion:reduce) {
  .hero__orb,.hero__motif,.live-pill i,.countdown::after,.prayer-card.is-next .prayer-card__icon{animation:none!important}
}
