/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds — warm cream, easy on aging eyes */
  --bg:        #f5f1e9;
  --bg2:       #ffffff;
  --bg3:       #faf7f2;
  --bg4:       #ede8dc;

  /* Borders — more visible for low-contrast sensitivity */
  --border:    rgba(0,0,0,0.13);
  --border2:   rgba(0,0,0,0.20);
  --border3:   rgba(0,0,0,0.32);

  /* Gold — rich amber with strong contrast on cream */
  --gold:      #8a5c10;
  --gold2:     #a06c1e;
  --gold3:     #bc832e;
  --gold-dim:  rgba(160,108,30,0.12);

  /* Emerald — strong readable teal-green */
  --green:        #087a54;
  --green-dim:    rgba(8,122,84,0.11);

  /* Text — high-contrast for clarity */
  --text:      #1a1209;   /* near-black, warm */
  --text2:     #3d3020;   /* dark brown — was too light for seniors */
  --text3:     #6b5040;   /* medium warm brown — was far too light */

  --red:       #b02020;

  /* Shape */
  --radius:    20px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  /* Typography */
  --font-body:   'DM Sans', sans-serif;
  --font-arabic: 'Amiri', serif;

  /* Shadows — slightly more prominent for depth perception */
  --shadow-card: 0 3px 22px rgba(100,70,30,0.13), 0 1px 0 rgba(255,255,255,0.9) inset;
  --shadow-sm:   0 2px 12px rgba(100,70,30,0.12);
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 140% 50% at 50% -5%, rgba(255,230,170,0.5) 0%, transparent 65%);
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.18) transparent; }

/* ===== STICKY TOP (header + tabs nav combined) ===== */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  background: rgba(244,240,232,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

/* Gold gradient underline */
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200,149,58,0.5) 25%,
    rgba(232,184,74,0.7) 50%,
    rgba(200,149,58,0.5) 75%,
    transparent 100%);
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-arabic);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold2);
  letter-spacing: 0.3px;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.quote-wrap {
  flex: 1;
  min-width: 0;
  max-width: 500px;
  text-align: right;
}

.quote-text {
  font-family: var(--font-arabic);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  opacity: 0.8;
  line-height: 1.5;
  transition: opacity 0.6s ease;
}

/* ===== BUTTONS ===== */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: rgba(0,0,0,0.04);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.08);
  border-color: var(--border3);
  color: var(--text);
}
.btn-ghost:active { transform: scale(0.97); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: #1a0e00;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 18px rgba(200,149,58,0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold3) 100%);
  box-shadow: 0 6px 26px rgba(200,149,58,0.38);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary.full-width { width: 100%; margin-top: 6px; }

.icon-btn {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text2);
  cursor: pointer;
  padding: 7px 11px;
  font-size: 15px;
  transition: all 0.18s;
  flex-shrink: 0;
  line-height: 1;
}
.icon-btn:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text);
  border-color: var(--border3);
}

/* Modern settings button */
.settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: rgba(0,0,0,0.04);
  color: var(--text2);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.35s ease;
}
.settings-btn svg {
  width: 18px;
  height: 18px;
}
.settings-btn:hover {
  background: rgba(0,0,0,0.07);
  border-color: rgba(184,124,42,0.4);
  color: var(--gold2);
  transform: rotate(45deg);
}

.btn-icon { font-size: 13px; }

/* ===== MAIN LAYOUT ===== */
.main {
  flex: 1;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.45s ease both;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle left gold accent line on hover */
.card::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  width: 2px;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--gold2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 2px 2px 0;
}
.card:hover { border-color: rgba(200,149,58,0.18); }
.card:hover::before { opacity: 1; }

.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.16s; }
.card:nth-child(5) { animation-delay: 0.20s; }
.card:nth-child(6) { animation-delay: 0.24s; }
.card:nth-child(7) { animation-delay: 0.28s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,149,58,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== STATUS ===== */
.status-msg {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-msg.error {
  color: var(--red);
  border-color: rgba(229,84,84,0.2);
  background: rgba(229,84,84,0.06);
}
.hidden { display: none !important; }

/* ===== PRAYER GRID ===== */
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.pt-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  position: relative;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pt-card.is-next {
  border-color: rgba(200,149,58,0.5);
  background: linear-gradient(145deg, rgba(200,149,58,0.1) 0%, rgba(200,149,58,0.05) 100%);
  box-shadow: 0 0 20px rgba(200,149,58,0.12);
}
.pt-card.is-next::after {
  content: 'NEXT';
  position: absolute;
  top: 8px; right: 9px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(200,149,58,0.15);
  padding: 2px 5px;
  border-radius: 4px;
}

.pt-card.is-current {
  border-color: rgba(30,207,149,0.45);
  background: linear-gradient(145deg, rgba(30,207,149,0.1) 0%, rgba(30,207,149,0.05) 100%);
  box-shadow: 0 0 20px rgba(30,207,149,0.1);
}

.pt-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1px;
}

.pt-name-ar {
  font-family: var(--font-arabic);
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 7px;
  line-height: 1.3;
}

.pt-time {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1;
}

.pt-card.is-next .pt-name { color: var(--gold); }
.pt-card.is-next .pt-name-ar { color: rgba(200,149,58,0.7); }
.pt-card.is-next .pt-time { color: var(--gold2); }
.pt-card.is-current .pt-name { color: var(--green); }
.pt-card.is-current .pt-name-ar { color: rgba(30,207,149,0.65); }
.pt-card.is-current .pt-time { color: var(--green); }

/* ===== COUNTDOWN ===== */
.countdown {
  background: linear-gradient(135deg, rgba(200,149,58,0.1) 0%, rgba(200,149,58,0.05) 100%);
  border: 1px solid rgba(200,149,58,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gold2);
}

.countdown-time {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  color: var(--gold3);
  margin-left: auto;
}

/* ===== META ROW ===== */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text3);
  padding-top: 6px;
}
.meta-row span { display: flex; align-items: center; gap: 4px; }
.meta-row b { color: var(--text2); }

/* ===== MOSQUE LIST ===== */
.mosque-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mosque-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.3s ease both;
}
.mosque-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mosque-card:hover {
  border-color: rgba(184,124,42,0.25);
  background: var(--bg4);
  box-shadow: 0 4px 20px rgba(100,70,30,0.1);
}

.mosque-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  flex-shrink: 0;
  margin-top: 1px;
}
.mosque-card:first-child .mosque-rank {
  background: var(--gold-dim);
  border-color: rgba(200,149,58,0.4);
  color: var(--gold2);
}

.mosque-info { flex: 1; min-width: 0; }

.mosque-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mosque-addr {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mosque-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.tag-dist { background: rgba(0,0,0,0.05); color: var(--text2); }
.tag-open { background: rgba(30,207,149,0.12); color: var(--green); }
.tag-closed { background: rgba(229,84,84,0.1); color: var(--red); }
.tag-rating { background: var(--gold-dim); color: var(--gold2); }

.mosque-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--border2);
  background: rgba(0,0,0,0.04);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex: 1;
  transition: all 0.18s;
}
.link-btn:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.link-btn.primary {
  border-color: rgba(200,149,58,0.35);
  color: var(--gold2);
  background: var(--gold-dim);
}
.link-btn.primary:hover { background: rgba(200,149,58,0.2); }

/* ===== QIBLA / COMPASS ===== */
.qibla-body {
  display: flex;
  align-items: center;
  gap: 28px;
}

.compass-wrap { flex-shrink: 0; }

.compass-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1.5px solid rgba(184,124,42,0.35);
  background: radial-gradient(circle at center, var(--bg4) 30%, var(--bg3) 65%, var(--bg2) 100%);
  position: relative;
  box-shadow:
    0 4px 24px rgba(100,70,30,0.12),
    inset 0 0 20px rgba(100,70,30,0.06);
}

/* Outer decorative ring */
.compass-ring::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(200,149,58,0.12);
}

/* Tick marks — subtle */
.compass-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(0,0,0,0.07);
}

.compass-labels {
  position: absolute;
  inset: 0;
  transition: transform 0.2s ease;
}

.compass-labels span {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  color: var(--text3);
  line-height: 1;
  letter-spacing: 0.5px;
}
.cn { top: 8px; left: 50%; transform: translateX(-50%); color: var(--text2) !important; }
.ce { right: 8px; top: 50%; transform: translateY(-50%); }
.cs { bottom: 8px; left: 50%; transform: translateX(-50%); }
.cw { left: 8px; top: 50%; transform: translateY(-50%); }

.compass-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 0.2s ease;
}

.needle-tip {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 46px solid var(--gold2);
  left: -7px;
  bottom: 0;
  filter: drop-shadow(0 0 10px rgba(200,149,58,0.75));
}

.needle-base {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 24px solid var(--text3);
  left: -7px;
  top: 0;
}

.needle-kaaba {
  position: absolute;
  font-size: 16px;
  bottom: 50px;
  left: 0;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}

.compass-kaaba {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  opacity: 0.7;
}

.qibla-info { flex: 1; }

.bearing-display {
  font-size: 46px;
  font-weight: 800;
  color: var(--gold2);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.bearing-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text2);
  margin-left: 4px;
  letter-spacing: 0;
}

.btn-enable-compass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(160,108,30,0.4);
  background: var(--gold-dim);
  color: var(--gold2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.btn-enable-compass:hover { background: rgba(200,149,58,0.2); border-color: rgba(160,108,30,0.6); }

/* ===== SETTINGS PANEL ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,22,16,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border2);
  z-index: 201;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.28s cubic-bezier(0.2, 0, 0.2, 1);
  box-shadow: -14px 0 56px rgba(100,70,30,0.18);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0.8; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.settings-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.settings-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex: 1;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.setting-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text2);
}
.setting-group select {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 10px 12px;
  width: 100%;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5c49' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  transition: border-color 0.15s;
}
.setting-group select:focus { border-color: rgba(200,149,58,0.6); }

.setting-hint {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

.setting-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.report-textarea,
.report-input {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 10px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.report-textarea:focus,
.report-input:focus { border-color: rgba(200,149,58,0.6); }
.report-textarea { min-height: 100px; }


/* ===== LOADING SPINNER ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .header { flex-wrap: wrap; gap: 10px; }
  .header-right { width: 100%; justify-content: space-between; }
  .quote-wrap { text-align: left; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .qibla-body { flex-direction: column; align-items: flex-start; }
  .bearing-display { font-size: 34px; }
}
@media (max-width: 380px) {
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== QURAN ===== */
.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus {
  border-color: rgba(200,149,58,0.5);
  box-shadow: 0 0 0 3px rgba(200,149,58,0.07);
}
.search-input::placeholder { color: var(--text3); }

.surah-browser { margin-bottom: 14px; }
.surah-browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.btn-xs {
  font-size: 12px !important;
  padding: 5px 10px !important;
}
.surah-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--bg3);
}
.surah-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
  color: var(--text);
  font-family: var(--font-body);
}
.surah-item:hover { background: var(--bg4); }
.surah-num-badge {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.surah-item-info { flex: 1; min-width: 0; }
.surah-item-en { font-size: 13.5px; font-weight: 600; }
.surah-item-meta { font-size: 11px; color: var(--text3); margin-top: 1px; }
.surah-item-ar {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: var(--gold2);
  margin-left: auto;
  white-space: nowrap;
}

.quran-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}
.quran-arabic {
  font-family: var(--font-arabic);
  font-size: 26px;
  line-height: 1.9;
  color: var(--gold2);
  text-align: right;
  direction: rtl;
  padding: 8px 0;
}
.quran-divider { height: 1px; background: var(--border); }
.quran-translation {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
}
.quran-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.quran-meta span {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text2);
}

/* Full surah reader */
.quran-reader-wrap { display: flex; flex-direction: column; gap: 0; }
.quran-reader-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.quran-reader-nav .btn-ghost:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.quran-reader-header {
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%);
  border: 1px solid rgba(200,149,58,0.18);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}
.qr-ar {
  font-family: var(--font-arabic);
  font-size: 30px;
  color: var(--gold2);
  display: block;
  margin-bottom: 6px;
}
.qr-en { font-size: 15px; font-weight: 600; color: var(--text); }
.qr-meta { font-size: 11.5px; color: var(--text3); margin-top: 4px; }

.ayah-block {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.3s ease both;
}
.ayah-block:last-child { border-bottom: none; }
.ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 22px;
  line-height: 1.95;
  color: var(--gold2);
  text-align: right;
  direction: rtl;
  margin-bottom: 8px;
}
.ayah-translation {
  display: none;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text2);
}
.quran-reader-wrap.show-translation-en .ayah-translation-en { display: block; }
.quran-reader-wrap.show-translation-bn .ayah-translation-bn { display: block; }
.quran-reader-wrap.show-translation-ur .ayah-translation-ur {
  display: block;
  direction: rtl;
  text-align: right;
}
.ayah-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(200,149,58,0.2);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  margin-right: 5px;
  vertical-align: middle;
}
.btn-ghost.full-width { width: 100%; justify-content: center; }

/* Transliteration */
.ayah-translit {
  display: none;
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 3px;
}
.quran-reader-wrap.show-translit-en .ayah-translit-en { display: block; }

/* ===== QURAN BOOKMARKS ===== */
.quran-bookmarks {
  margin-bottom: 14px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.bookmarks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg3);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
}
.bookmark-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.15s;
}
.bookmark-card:hover { background: var(--bg3); }
.bookmark-ref { font-size: 13px; font-weight: 600; color: var(--text); }
.bookmark-ar  { font-family: var(--font-arabic); font-size: 16px; color: var(--gold2); }

.ayah-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.ayah-bookmark-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text3);
  padding: 3px 10px;
  font-family: var(--font-body);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ayah-bookmark-btn:hover {
  background: var(--gold-dim);
  border-color: rgba(200,149,58,0.35);
  color: var(--gold);
}
.ayah-bookmark-btn.bookmarked {
  background: var(--gold-dim);
  border-color: rgba(200,149,58,0.4);
  color: var(--gold);
  font-weight: 600;
}

@keyframes ayahPulse {
  0%   { background: rgba(160,108,30,0.18); }
  60%  { background: rgba(160,108,30,0.08); }
  100% { background: transparent; }
}
.ayah-highlight {
  border-radius: 8px;
  animation: ayahPulse 2s ease forwards;
}


/* ===== HADITH ===== */
.setting-select-inline {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 6px 26px 6px 9px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b5c49' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.15s;
}
.setting-select-inline:focus { border-color: rgba(200,149,58,0.5); }

.hadith-num-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.hadith-num-input { flex: 1; }

.hadith-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  animation: fadeUp 0.35s ease both;
}
.hadith-collection-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 16px;
  background: linear-gradient(135deg, rgba(200,149,58,0.12) 0%, rgba(200,149,58,0.06) 100%);
  border-bottom: 1px solid rgba(200,149,58,0.15);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.hadith-close-btn {
  background: transparent;
  border: 1px solid rgba(200,149,58,0.3);
  color: var(--gold);
  padding: 2px 7px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.4;
  flex-shrink: 0;
  transition: background 0.15s;
}
.hadith-close-btn:hover { background: rgba(200,149,58,0.1); }
.hadith-body {
  padding: 18px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  border-left: 3px solid var(--gold);
}
.hadith-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  gap: 10px;
}
.hadith-ref { font-size: 12px; color: var(--text3); }
.hadith-grade {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--text2);
}
.hadith-grade:empty { display: none; }
.hadith-grade.sahih { background: rgba(30,207,149,0.12); color: var(--green); }
.hadith-grade.hasan { background: rgba(91,156,246,0.1); color: #5b9cf6; }
.hadith-grade.daif  { background: rgba(229,84,84,0.08); color: var(--red); }
.hadith-chapter {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  font-style: italic;
}
.hadith-chapter:empty { display: none; }
.hadith-nav {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.hadith-nav .btn-ghost:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

/* ===== TASBIH ===== */
.tasbih-select {
  width: 100%;
  margin-bottom: 14px;
  font-size: 13px;
  padding: 9px 32px 9px 12px;
}
.tasbih-goals {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.tasbih-goal-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: rgba(0,0,0,0.04);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.tasbih-goal-btn.active {
  border-color: rgba(200,149,58,0.5);
  background: var(--gold-dim);
  color: var(--gold2);
  box-shadow: 0 2px 14px rgba(200,149,58,0.15);
}
.tasbih-goal-btn:hover:not(.active) { background: rgba(0,0,0,0.06); }

.tasbih-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  width: 196px;
  height: 196px;
}
.tasbih-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.tasbih-ring-bg {
  fill: none;
  stroke: var(--border2);
  stroke-width: 8;
}
.tasbih-ring-fg {
  fill: none;
  /* stroke set via SVG attribute to allow gradient */
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(200,149,58,0.5));
}
.tasbih-tap-btn {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  background: var(--bg3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.1s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.tasbih-tap-btn:active { transform: scale(0.93); }
.tasbih-tap-btn:hover {
  border-color: rgba(200,149,58,0.3);
  box-shadow: 0 0 24px rgba(200,149,58,0.12);
}
.tasbih-tap-btn.tasbih-complete {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 0 32px rgba(200,149,58,0.3);
}
.tasbih-count {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}
.tasbih-goal-label {
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
}
@media (max-width: 480px) {
  .tasbih-ring-wrap { width: 168px; height: 168px; }
  .tasbih-tap-btn { width: 112px; height: 112px; }
  .tasbih-count { font-size: 34px; }
}

/* ===== HADITH BROWSER ===== */
.hadith-browser { margin-bottom: 12px; }
.hadith-browser-list {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
}
.hadith-browse-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  color: var(--text);
  font-family: var(--font-body);
}
.hadith-browse-item:hover { background: var(--bg3); }
.hadith-browse-item:last-child { border-bottom: none; }
.hadith-browse-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(200,149,58,0.2);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hadith-browse-info { flex: 1; min-width: 0; }
.hadith-browse-snippet {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hadith-browse-chapter {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
  font-style: italic;
}

/* ===== SEARCH RESULTS ===== */
.search-results-header {
  font-size: 13px;
  color: var(--text3);
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.search-results-header b { color: var(--text2); }

.quran-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.quran-search-item {
  width: 100%;
  text-align: left;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: var(--text);
  font-family: var(--font-body);
}
.quran-search-item:hover { background: var(--bg4); border-color: var(--border2); }
.qsi-ref {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold2);
  margin-bottom: 5px;
}
.qsi-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hadith-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.hadith-search-input { flex: 1; }
.hadith-search-results {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  margin-bottom: 12px;
}
.hadith-search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  color: var(--text);
  font-family: var(--font-body);
}
.hadith-search-result-item:hover { background: var(--bg3); }
.hadith-search-result-item:last-child { border-bottom: none; }
.hsr-num {
  min-width: 42px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 2px;
  flex-shrink: 0;
}
.hsr-info { flex: 1; min-width: 0; }
.hsr-snippet {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hsr-chapter {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
  font-style: italic;
}

/* ===== TABS NAVIGATION (desktop — below header) ===== */
.tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 16px;
  background: rgba(244,240,232,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Gold shimmer line at bottom of tab bar */
.tabs-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200,149,58,0.35) 20%,
    rgba(232,184,74,0.55) 50%,
    rgba(200,149,58,0.35) 80%,
    transparent 100%);
  pointer-events: none;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: color 0.18s ease, background 0.18s ease;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25px;
  position: relative;
  min-width: 72px;
  -webkit-tap-highlight-color: transparent;
}

.tab-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.tab-label {
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 10px;
}

.tab-btn:hover {
  color: var(--text2);
  background: rgba(0,0,0,0.05);
}
.tab-btn:hover .tab-icon { transform: translateY(-1px); }

/* Active tab */
.tab-btn.active {
  color: var(--gold2);
}
.tab-btn.active .tab-icon { transform: translateY(-1px); }

/* Gold pill indicator */
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(200,149,58,0.5);
}

/* ===== TAB PANELS ===== */
.tab-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: tabFadeIn 0.28s ease both;
}
.tab-panel.active {
  display: flex;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reset card nth-child delays inside panels (cards are now 1st-child of panel) */
.tab-panel .card:nth-child(1) { animation-delay: 0.04s; }
.tab-panel .card:nth-child(2) { animation-delay: 0.10s; }
.tab-panel .card:nth-child(3) { animation-delay: 0.16s; }

/* ===== MOBILE BOTTOM NAV ===== */
/* The desktop tab nav hides on small screens; a fixed bottom bar takes over */
.tabs-nav-mobile {
  display: none;
}

@media (max-width: 600px) {
  /* Hide desktop top tab nav */
  .tabs-nav { display: none; }

  /* Show fixed bottom bar */
  .tabs-nav-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    align-items: center;
    justify-content: space-around;
    padding: 6px 4px env(safe-area-inset-bottom, 6px);
    background: rgba(244,240,232,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    gap: 0;
  }

  /* Top shimmer line on mobile bar */
  .tabs-nav-mobile::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(200,149,58,0.4) 25%,
      rgba(232,184,74,0.6) 50%,
      rgba(200,149,58,0.4) 75%,
      transparent 100%);
  }

  .tabs-nav-mobile .tab-btn {
    flex: 1;
    min-width: unset;
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 9.5px;
  }

  .tabs-nav-mobile .tab-icon { font-size: 22px; }

  .tabs-nav-mobile .tab-btn.active::after {
    bottom: auto;
    top: 0;
    width: 24px;
    height: 3px;
  }

  /* Pad main content so it clears the fixed bottom bar */
  .main {
    padding-bottom: 90px;
  }

  .footer {
    padding-bottom: 80px;
  }
}

/* ===== PWA INSTALL BANNER ===== */
.install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100vw - 32px));
  background: #1a1209;
  color: #f5f1e9;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.38);
  z-index: 500;
  animation: slideUpBanner 0.35s cubic-bezier(0.2,0,0.2,1);
}
.install-banner.hidden { display: none; }

@keyframes slideUpBanner {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

.install-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--gold-dim);
}

.install-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.install-banner-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.install-banner-text span {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-banner-btn {
  background: var(--gold2);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.install-banner-btn:hover { background: var(--gold3); }

.install-banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.install-banner-close:hover { color: rgba(255,255,255,0.9); }

/* ===== iOS INSTALL GUIDE ===== */
.ios-install-guide {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100vw - 32px));
  background: #1a1209;
  color: #f5f1e9;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  z-index: 501;
  animation: slideUpBanner 0.3s cubic-bezier(0.2,0,0.2,1);
}
.ios-install-guide.hidden { display: none; }

.ios-guide-arrow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #1a1209;
}

.ios-guide-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ios-guide-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-right: 24px;
}

.ios-guide-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.ios-guide-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.4;
}
.ios-guide-steps li::before {
  content: counter(steps);
  min-width: 22px;
  height: 22px;
  background: var(--gold2);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ios-guide-steps strong { color: #fff; }

.ios-share-icon {
  display: inline-block;
  font-size: 15px;
  vertical-align: middle;
  color: var(--gold3);
}
