/* =============================================
   MINING JEWELS — Design System
   ============================================= */

:root {
  --font-scale: 1;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --text-xs:   calc(0.75rem * var(--font-scale));
  --text-sm:   calc(0.875rem * var(--font-scale));
  --text-base: calc(1rem * var(--font-scale));
  --text-lg:   calc(1.125rem * var(--font-scale));
  --text-xl:   calc(1.25rem * var(--font-scale));
  --text-2xl:  calc(1.5rem * var(--font-scale));
  --text-3xl:  calc(1.875rem * var(--font-scale));

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 68px;
  --max-w: 680px;
}

/* ---- Dark theme ---- */
:root, [data-theme="dark"] {
  --bg:           #0f0e13;
  --bg-2:         #16141c;
  --surface:      #1e1b27;
  --surface-2:    #252230;
  --border:       #2e2a3a;
  --border-light: #3a3548;

  --text:         #e8e4f0;
  --text-muted:   #8a8498;
  --text-faint:   #4e4a5c;

  --gold:         #d4a843;
  --gold-dim:     rgba(212,168,67,0.14);
  --gold-border:  rgba(212,168,67,0.28);

  --ruby:         #c0424a;
  --sapphire:     #4a7fc0;
  --emerald:      #3a8c5c;
  --amethyst:     #7a54b4;

  --reading-accent:    var(--gold);
  --devotional-accent: var(--ruby);
  --study-accent:      var(--sapphire);
  --events-accent:     var(--emerald);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-popup: 0 -4px 40px rgba(0,0,0,0.7);
}

/* ---- Light theme ---- */
[data-theme="light"] {
  --bg:           #faf8f2;
  --bg-2:         #f3f0e8;
  --surface:      #ffffff;
  --surface-2:    #faf8f4;
  --border:       #e2ddd0;
  --border-light: #ccc8bc;

  --text:         #1a1720;
  --text-muted:   #6b6478;
  --text-faint:   #b0aab8;

  --gold:         #a07a1c;
  --gold-dim:     rgba(160,122,28,0.1);
  --gold-border:  rgba(160,122,28,0.25);

  --ruby:         #9e2830;
  --sapphire:     #2a5a9e;
  --emerald:      #1e6e42;
  --amethyst:     #5a3494;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --shadow-popup: 0 -4px 40px rgba(0,0,0,0.18);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
img { max-width: 100%; }

/* =============================================
   HEADER
   ============================================= */

.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.gem-logo {
  width: 36px;
  height: 36px;
  color: var(--gold);
  flex-shrink: 0;
}

.header-titles { min-width: 0; }

.app-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-subtitle {
  font-size: var(--text-xs);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 2px;
}

.font-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  width: 36px;
  height: 36px;
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-12);
}

/* ---- Loading / Error ---- */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-12) 0;
  color: var(--text-muted);
}

.loading-gem {
  width: 56px;
  height: 56px;
  color: var(--gold);
  animation: gemPulse 2s ease-in-out infinite;
}

@keyframes gemPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.error-state {
  text-align: center;
  padding: var(--space-12) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.error-msg { color: var(--text-muted); }

.btn-outline {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold);
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover { background: var(--gold-dim); }

/* ---- Date banner ---- */
.date-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.date-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  font-style: italic;
}

.date-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  padding: 3px var(--space-3);
}

/* ---- Content blocks ---- */
.content-block {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: var(--space-5);
  transition: background var(--transition-slow), border-color var(--transition-slow);
  box-shadow: var(--shadow-sm);
}

.block-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: left;
}

.block-toggle {
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0;
}

.block-toggle:hover { background: var(--gold-dim); }

.block-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

.chevron {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.block-toggle[aria-expanded="false"] .chevron {
  transform: rotate(-90deg);
}

.block-toggle[aria-expanded="false"] {
  border-bottom: none;
}

.block-body-wrap {
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1);
  max-height: 9999px;
}

.block-body-wrap.collapsed {
  max-height: 0;
}

.block-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reading-icon    { background: rgba(212,168,67,0.12);  color: var(--reading-accent); }
.devotional-icon { background: rgba(192,66,74,0.12);   color: var(--devotional-accent); }
.ot-icon         { background: rgba(58,140,92,0.12);   color: var(--emerald); }
.nt-icon         { background: rgba(74,127,192,0.12);  color: var(--sapphire); }
.study-icon      { background: rgba(122,84,180,0.12);  color: var(--amethyst); }

.block-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.block-body {
  padding: var(--space-5);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

.devotional-body {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.85;
  /* Removed font-style: italic; */
}

/* ---- Reading sections ---- */
.reading-sections {
  padding: var(--space-3) var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.reading-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.reading-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-1);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2);
}

.proverb-content {
  padding: var(--space-3) var(--space-4);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  line-height: 1.7;
  font-family: var(--font-display);
  color: var(--text);
}

.proverb-content p:last-child {
  margin-bottom: 0;
}

/* ---- Chapter list ---- */
.chapter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  gap: var(--space-3);
}

.chapter-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold-border);
  color: var(--gold);
}

.chapter-btn-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chapter-gem {
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.chapter-btn-arrow {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.chapter-btn:hover .chapter-btn-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

/* =============================================
   ARCHIVE PANEL
   ============================================= */

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 92vw);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow), background var(--transition-slow);
  box-shadow: var(--shadow-lg);
}

.side-panel.open { transform: translateX(0); }

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.side-panel-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.side-panel-body::-webkit-scrollbar { width: 4px; }
.side-panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.archive-item {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.archive-item:hover {
  background: var(--gold-dim);
  border-color: var(--gold-border);
}

.archive-date {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}

.archive-chapters {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.empty-msg {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-8) 0;
}

/* =============================================
   OVERLAY
   ============================================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.overlay.visible { opacity: 1; pointer-events: auto; }

/* =============================================
   CHAPTER POPUP (slides up from bottom)
   ============================================= */

.popup-backdrop {
  display: none;
}

.chapter-popup {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--surface);
  border-radius: 0;
  box-shadow: var(--shadow-popup);
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  transform: translateY(100%);
  transition: transform var(--transition-slow), background var(--transition-slow);
}

.chapter-popup.open { transform: translateY(0); }

.popup-handle-bar {
  display: none;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5) var(--space-4);
  flex-shrink: 0;
}

.popup-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
}

/* ---- Audio Player ---- */
.audio-player {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(212,168,67,0.4);
}

.play-btn:hover { background: var(--reading-accent); transform: scale(1.05); }
.play-btn:active { transform: scale(0.97); }

[data-theme="light"] .play-btn { color: #fff; }

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

.audio-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}

.audio-progress-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.audio-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.25s linear;
}

.audio-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- Chapter text ---- */
.popup-text-area {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-5) var(--space-10);
  -webkit-overflow-scrolling: touch;
}

.popup-text-area::-webkit-scrollbar { width: 4px; }
.popup-text-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.popup-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-10) 0;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.chapter-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.9;
  color: var(--text);
}

.verse {
  display: block;
  margin-bottom: var(--space-2);
}

.verse-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold);
  vertical-align: super;
  margin-right: 4px;
  font-family: var(--font-body);
  font-style: normal;
}

.verse {
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  margin: 0 -4px;
}

.verse-active {
  background: var(--gold-dim);
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: var(--space-3);
}

/* =============================================
   FORMATTED TEXT
   ============================================= */

.rich-text p {
  margin-bottom: var(--space-4);
  line-height: 1.85;
}

.rich-text p:last-child { margin-bottom: 0; }

.rich-text strong { font-weight: 700; color: var(--text); }
.rich-text em { font-style: italic; }

.rich-text .scripture-quote {
  display: block;
  border-left: 3px solid var(--gold);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  background: var(--gold-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text);
}

.scripture-link {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--gold-border);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.scripture-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.content-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-border);
  transition: color var(--transition), border-color var(--transition);
}

.content-link:hover {
  color: var(--sapphire);
  border-color: var(--sapphire);
}

[data-theme="light"] .content-link {
  color: var(--sapphire);
}

[data-theme="light"] .content-link:hover {
  color: var(--gold);
}


/* =============================================
   SCRIPTURE REFERENCE POPUP
   ============================================= */

.scripture-popup {
  position: fixed;
  z-index: 400;
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(360px, 92vw);
  max-height: 60dvh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transition: opacity var(--transition), transform var(--transition);
  bottom: calc(var(--space-8) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.97);
}

.scripture-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.scripture-popup-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.scripture-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--gold-dim);
  flex-shrink: 0;
}

.scripture-popup-ref {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--gold);
}

.scripture-popup-text {
  padding: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text);
  overflow-y: auto;
  font-style: italic;
}

.scripture-popup-text::-webkit-scrollbar { width: 4px; }
.scripture-popup-text::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 640px) {
  .chapter-popup {
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .app-title { font-size: var(--text-base); }
  .app-subtitle { display: none; }
}

/* =============================================
   INSTALL BANNER & POPUP
   ============================================= */

.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: var(--space-3) var(--space-4);
  background: var(--color, #1a1a2e);
  background: var(--surface);
  border-top: 1px solid var(--gold-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.install-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--text);
  font-size: var(--text-sm);
}

.install-banner-inner svg { color: var(--gold); flex-shrink: 0; }
.install-banner-inner span { flex: 1; }

.install-how-btn {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.install-close-btn {
  color: var(--text-muted);
  flex-shrink: 0;
  padding: var(--space-1);
}

.install-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 550;
  display: none;
}

.install-overlay.visible { display: block; }

.install-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-popup);
  max-height: 80dvh;
  overflow-y: auto;
}

.install-popup-inner { padding: var(--space-5); }

.install-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.install-popup-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
}

.install-popup-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.install-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-step-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  padding-top: 4px;
}

.install-step-text strong { color: var(--gold); }

/* =============================================
   PULL TO REFRESH
   ============================================= */

.pull-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 60;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  gap: 8px;
}

.pull-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.pull-text {
  font-size: var(--text-sm);
  font-weight: 500;
}

.pull-indicator.refreshing .pull-icon {
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
