/* ══════════════════════════════════════════════════════════
   D&D Challenge App v3 — Style
   ══════════════════════════════════════════════════════════ */

:root {
  --orange:     #ea492e;
  --orange-dim: #c23b23;
  --orange-bg:  rgba(234,73,46,0.12);
  --black:      #0a0a0a;
  --card:       #141414;
  --card-mid:   #1c1c1c;
  --card-light: #242424;
  --border:     rgba(255,255,255,0.07);
  --text:       #f0f0f0;
  --text-mid:   #aaaaaa;
  --text-dim:   #666666;
  --white:      #ffffff;
  --danger:     #e53935;
  --green:      #4caf50;
  --nav-h:      64px;
  --header-h:   52px;
  --safe-bot:   env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; background: var(--black); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }
input, textarea { font-family: inherit; color: inherit; background: none; border: none; outline: none; }

/* ══ SCREENS ══ */
.screen { position: fixed; inset: 0; overflow: hidden; }
.hidden { display: none !important; }

/* ══ ONBOARDING ══ */
.ob-bg {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, #1a0800 0%, #0a0a0a 60%);
}
.ob-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh;
  padding: 40px 24px; text-align: center;
}
.ob-cross { font-size: 28px; color: var(--orange); margin-bottom: 12px; }
.ob-brand { font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-mid); margin-bottom: 20px; }
.ob-title { font-family: 'Oswald', sans-serif; font-size: clamp(48px, 14vw, 72px); font-weight: 700; line-height: 1; color: var(--white); letter-spacing: -1px; margin-bottom: 12px; }
.ob-days { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-mid); margin-bottom: 24px; }
.ob-divider { width: 40px; height: 2px; background: var(--orange); margin: 0 auto 20px; border-radius: 1px; }
.ob-tagline { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 400; color: var(--text-mid); margin-bottom: 36px; letter-spacing: 0.5px; }
.ob-form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.ob-label { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 4px; }
.ob-install-hint { margin-top: 20px; padding: 12px 16px; background: var(--card); border-radius: 10px; border: 1px solid var(--border); }
.ob-install-text { font-size: 12px; color: var(--text-mid); }

/* ══ BUTTONS ══ */
.btn-primary {
  width: 100%; padding: 15px 24px;
  background: var(--orange); color: var(--white);
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: 0.5px; border-radius: 10px;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:active { background: var(--orange-dim); transform: scale(0.98); }
.btn-ghost {
  width: 100%; padding: 14px 24px;
  background: transparent; color: var(--text-mid);
  font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 400;
  border: 1px solid var(--border); border-radius: 10px;
  transition: border-color 0.15s;
}
.btn-ghost:active { border-color: var(--text-mid); }
.btn-ghost-red { color: var(--danger); border-color: rgba(229,57,53,0.3); }
.btn-danger {
  padding: 13px 20px; background: rgba(229,57,53,0.1);
  color: var(--danger); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(229,57,53,0.3); border-radius: 8px;
  transition: background 0.15s;
}
.btn-danger:active { background: rgba(229,57,53,0.2); }
.btn-share {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--orange-bg);
  color: var(--orange); font-size: 13px; font-weight: 600;
  border: 1px solid rgba(234,73,46,0.25); border-radius: 8px;
  transition: background 0.15s;
}
.btn-share svg { width: 15px; height: 15px; }
.btn-share:active { background: rgba(234,73,46,0.2); }

.date-input, .time-input {
  width: 100%; padding: 13px 14px;
  background: var(--card-mid); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 16px;
}

/* ══ APP HEADER ══ */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}
.header-logo { display: flex; align-items: center; gap: 8px; }
.header-cross { font-size: 16px; color: var(--orange); }
.header-name { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0.3px; }
.header-center { flex: 1; display: flex; justify-content: center; }
.day-badge {
  display: flex; align-items: baseline; gap: 3px;
  padding: 5px 12px; background: var(--orange-bg);
  border: 1px solid rgba(234,73,46,0.3); border-radius: 20px;
}
.day-num { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; color: var(--orange); }
.day-of { font-size: 11px; color: var(--text-mid); }
.btn-settings {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); border-radius: 8px;
  transition: color 0.15s;
}
.btn-settings svg { width: 20px; height: 20px; }
.btn-settings:active { color: var(--text); }

/* ══ PROGRESS BAR ══ */
.progress-strip {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  height: 3px; background: var(--card-mid);
}
.progress-fill { height: 100%; background: var(--orange); transition: width 0.4s ease; width: 0%; }

/* ══ STAT ROW ══ */
.stat-row {
  position: fixed; top: calc(var(--header-h) + 3px); left: 0; right: 0; z-index: 98;
  display: flex; background: var(--black);
  border-bottom: 1px solid var(--border);
}
.stat-chip { flex: 1; padding: 8px 0; text-align: center; border-right: 1px solid var(--border); }
.stat-chip:last-child { border-right: none; }
.chip-val { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; color: var(--orange); line-height: 1; }
.chip-lbl { font-size: 10px; color: var(--text-dim); margin-top: 2px; letter-spacing: 0.3px; }

/* ══ SCROLL AREA ══ */
.scroll-area {
  position: fixed;
  top: calc(var(--header-h) + 3px + 44px);
  bottom: calc(var(--nav-h) + var(--safe-bot));
  left: 0; right: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-pane { padding: 0 16px; }
.tab-spacer { height: 32px; }

/* ══ SECTION HEADER ══ */
.section-hdr {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 12px;
}
.section-lbl {
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-mid);
  white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ══ TODAY — RING ══ */
.ring-block {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; margin-bottom: 4px;
  background: var(--card); border-radius: 14px;
  border: 1px solid var(--border);
}
.ring-wrap { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.ring-svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--card-light); stroke-width: 5; }
.ring-arc {
  fill: none; stroke: var(--orange); stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 175.9; stroke-dashoffset: 175.9;
  transition: stroke-dashoffset 0.5s ease;
}
.ring-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ring-pct { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); }
.ring-info { flex: 1; }
.ring-title { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.ring-count { font-size: 13px; color: var(--text-mid); margin-bottom: 2px; }
.ring-day { font-size: 11px; color: var(--text-dim); }

/* ══ TODAY BANNER ══ */
.today-banner {
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 500; margin-bottom: 8px;
  border: 1px solid var(--border); display: none;
}
.today-banner.show { display: block; }
.today-banner.new-day { background: var(--orange-bg); border-color: rgba(234,73,46,0.3); color: var(--orange); }

/* ══ CELEBRATE BANNER ══ */
.celebrate-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 8px;
  background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.3); border-radius: 12px;
}
.celebrate-icon { font-size: 24px; }
.celebrate-title { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; color: var(--green); }
.celebrate-sub { font-size: 12px; color: var(--text-mid); margin-top: 2px; }

/* ══ CHECKLIST ══ */
.checklist { display: flex; flex-direction: column; gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 4px; }
.check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--card);
  transition: background 0.15s;
  cursor: pointer;
}
.check-item:active { background: var(--card-light); }
.check-item + .check-item { border-top: 1px solid var(--border); }
.check-item.done { background: var(--card-mid); }
.check-box {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; background: transparent;
}
.check-item.done .check-box { background: var(--orange); border-color: var(--orange); }
.check-check { display: none; color: white; font-size: 12px; font-weight: 700; }
.check-item.done .check-check { display: block; }
.check-content { flex: 1; min-width: 0; }
.check-title { font-size: 14px; font-weight: 600; color: var(--text); transition: color 0.2s; }
.check-item.done .check-title { color: var(--text-mid); text-decoration: line-through; text-decoration-color: var(--text-dim); }
.check-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.check-link { font-size: 11px; color: var(--orange); margin-top: 3px; display: inline-block; }
.check-arrow { color: var(--text-dim); font-size: 16px; flex-shrink: 0; }

/* ══ FAST CARD ══ */
.fast-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 4px;
}
.fast-icon { font-size: 22px; flex-shrink: 0; }
.fast-body { flex: 1; }
.fast-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.fast-sub { font-size: 11px; color: var(--text-dim); line-height: 1.4; }
.toggle-wrap { position: relative; flex-shrink: 0; }
.toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider {
  display: block; width: 44px; height: 26px;
  background: var(--card-light); border-radius: 13px;
  transition: background 0.2s; cursor: pointer; border: 1px solid var(--border);
}
.toggle-slider::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-dim); transition: all 0.2s;
}
.toggle-input:checked + .toggle-slider { background: var(--orange); border-color: var(--orange); }
.toggle-input:checked + .toggle-slider::after { background: var(--white); transform: translateX(18px); }

/* ══ NOTES ══ */
.notes-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.notes-textarea {
  width: 100%; padding: 14px 16px;
  background: transparent; color: var(--text);
  font-size: 14px; line-height: 1.6; resize: none;
  border-bottom: 1px solid var(--border);
}
.notes-textarea::placeholder { color: var(--text-dim); }
.notes-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.notes-saved { font-size: 11px; color: var(--text-dim); }

/* ══ APP FOOTER ══ */
.app-footer { text-align: center; padding: 20px 16px 8px; }
.footer-motto { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; color: var(--orange); letter-spacing: 0.3px; }
.footer-sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; letter-spacing: 0.5px; }

/* ══ CALENDAR ══ */
.cal-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 0 0 12px; margin-bottom: 8px;
}
.leg-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-mid); }
.leg-dot { width: 10px; height: 10px; border-radius: 50%; }
.ld-complete { background: var(--orange); }
.ld-today { background: var(--white); }
.ld-missed { background: var(--danger); opacity: 0.6; }
.ld-future { background: var(--card-light); border: 1px solid var(--border); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  width: 100%;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(9px, 3vw, 14px);
  font-weight: 500;
  background: var(--card-light);
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: default;
  transition: transform 0.1s;
}
.cal-cell.cc-complete { background: var(--orange); color: var(--white); border-color: var(--orange); }
.cal-cell.cc-today { background: var(--card); color: var(--white); border-color: var(--white); font-weight: 700; }
.cal-cell.cc-missed { background: rgba(229,57,53,0.15); color: var(--danger); border-color: rgba(229,57,53,0.3); }
.cal-cell.cc-future { background: transparent; color: var(--text-dim); border-color: var(--border); }

/* ══ VERSE ══ */
.verse-card {
  background: linear-gradient(135deg, #1a0800, #140a00);
  border: 1px solid rgba(234,73,46,0.3);
  border-radius: 14px; padding: 20px;
  margin-bottom: 4px;
}
.verse-theme { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; font-weight: 600; }
.verse-text {
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 400;
  font-style: italic; line-height: 1.65; color: var(--white);
  border-left: 3px solid var(--orange); padding-left: 14px;
  margin-bottom: 12px;
}
.verse-ref { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 500; color: var(--orange); display: block; }

/* Past Verses Accordion */
.pv-row { border: 1px solid rgba(234,73,46,0.2); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.pv-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; background: rgba(255,255,255,0.03); }
.pv-header:active { background: rgba(234,73,46,0.08); }
.pv-week { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.5px; }
.pv-ref { font-size: 12px; color: var(--text-mid); }
.pv-chevron { font-size: 12px; color: var(--text-dim); transition: transform 0.2s; }
.pv-row.open .pv-chevron { transform: rotate(180deg); }
.pv-body { display: none; padding: 0 14px 14px; }
.pv-row.open .pv-body { display: block; }
.pv-theme { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; font-weight: 600; }
.pv-text { font-family: 'DM Sans', sans-serif; font-size: 14px; font-style: italic; line-height: 1.6; color: var(--white); border-left: 2px solid var(--orange); padding-left: 10px; margin-bottom: 6px; }
.pv-cite { font-size: 12px; color: var(--text-mid); }

/* YouTube embed */
.yt-container { border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--border); margin-bottom: 4px; }
.yt-placeholder {
  padding: 40px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.yt-placeholder-icon { font-size: 36px; color: var(--text-dim); }
.yt-placeholder-text { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 500; color: var(--text-mid); }
.yt-placeholder-sub { font-size: 12px; color: var(--text-dim); }
.yt-embed-wrap { position: relative; padding-bottom: 56.25%; }
.yt-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ══ NUTRITION ══ */
.info-card { padding: 16px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border); background: var(--card); }
.info-card-orange { background: var(--orange-bg); border-color: rgba(234,73,46,0.3); }
.info-card-title { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.info-card-body { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

.move-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.move-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 8px; text-align: center; }
.move-icon { font-size: 22px; margin-bottom: 6px; }
.move-lbl { font-size: 11px; color: var(--text-mid); font-weight: 500; }

.move-tips { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 4px; display: flex; flex-direction: column; gap: 8px; }
.move-tip { font-size: 13px; color: var(--text-mid); padding-left: 14px; position: relative; line-height: 1.5; }
.move-tip::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-size: 12px; }

.nutr-intro { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 4px; }
.nutr-standards { display: flex; flex-direction: column; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 12px; }
.nutr-item { display: flex; gap: 14px; padding: 14px 16px; background: var(--card); align-items: flex-start; }
.nutr-item + .nutr-item { border-top: 1px solid var(--border); }
.nutr-icon { font-size: 22px; flex-shrink: 0; }
.nutr-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.nutr-sub { font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.nutr-desc { font-size: 12px; color: var(--text-mid); line-height: 1.5; }
.nutr-motto { text-align: center; padding: 16px; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 500; color: var(--text-mid); font-style: italic; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 4px; }

.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.food-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.food-hdr { padding: 10px 12px; background: var(--card-light); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--border); }
.food-list { list-style: none; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.food-list li { font-size: 12px; color: var(--text-mid); padding-left: 10px; position: relative; }
.food-list li::before { content: '·'; position: absolute; left: 0; color: var(--orange); }

.day-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.day-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 12px; text-align: center; }
.day-icon { font-size: 20px; margin-bottom: 4px; }
.day-lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.day-meal { font-size: 12px; color: var(--text-mid); line-height: 1.4; }

.nutr-bottom { text-align: center; padding: 20px; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 400; color: var(--text-mid); line-height: 1.8; }
.nutr-bottom-tag { font-size: 12px; color: var(--orange); margin-top: 8px; font-family: 'DM Sans', sans-serif; }

/* ══ COMMUNITY ══ */
.comm-intro { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 4px; padding: 12px 14px; background: var(--orange-bg); border: 1px solid rgba(234,73,46,0.25); border-radius: 10px; }
.social-links { display: flex; flex-direction: column; gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 4px; }
.invite-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; background: rgba(234,73,46,0.08); border: 1px solid rgba(234,73,46,0.35); border-radius: 10px; margin-bottom: 16px; cursor: pointer; transition: background 0.15s; width: 100%; text-align: left; }
.invite-card:active { background: rgba(234,73,46,0.15); }
.invite-icon { width: 40px; height: 40px; background: var(--orange); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.invite-icon svg { width: 20px; height: 20px; color: #fff; stroke: #fff; }
.invite-body { flex: 1; }
.invite-title { font-size: 15px; font-weight: 600; color: var(--text); }
.invite-sub { font-size: 12px; color: var(--orange); margin-top: 2px; }
.invite-arrow { font-size: 16px; color: var(--orange); }
.btn-share-app { padding: 11px 20px; background: rgba(234,73,46,0.1); border: 1px solid rgba(234,73,46,0.4); border-radius: 8px; color: var(--orange); font-size: 13px; font-weight: 600; transition: all 0.15s; width: 100%; }
.btn-share-app:active { background: rgba(234,73,46,0.2); }
.social-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); transition: background 0.15s; }
.social-card + .social-card { border-top: 1px solid var(--border); }
.social-card:active { background: var(--card-light); }
.social-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-icon svg { width: 22px; height: 22px; }
.social-share .social-icon { background: rgba(234,73,46,0.15); color: var(--orange); }
.social-fb .social-icon { background: rgba(24,119,242,0.15); color: #1877f2; }
.social-ig .social-icon { background: rgba(225,48,108,0.15); color: #e1306c; }
.social-yt .social-icon { background: rgba(255,0,0,0.15); color: #ff0000; }
.social-web .social-icon { background: var(--orange-bg); color: var(--orange); }
.social-body { flex: 1; }
.social-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.social-sub { font-size: 11px; color: var(--text-dim); }
.social-arrow { font-size: 16px; color: var(--text-dim); }

/* Install guide */
.install-guide { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.install-intro { padding: 14px 16px; font-size: 13px; color: var(--text-mid); line-height: 1.5; border-bottom: 1px solid var(--border); }
.install-tabs { display: flex; border-bottom: 1px solid var(--border); }
.install-tab { flex: 1; padding: 10px; font-size: 13px; font-weight: 500; color: var(--text-dim); background: transparent; border-right: 1px solid var(--border); transition: all 0.15s; }
.install-tab:last-child { border-right: none; }
.install-tab.active { color: var(--orange); background: var(--orange-bg); }
.install-steps { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.install-step { display: flex; gap: 12px; align-items: flex-start; }
.install-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.install-step-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.install-step-desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; }

/* Notifications */
.notif-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.notif-left { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.notif-desc { font-size: 11px; color: var(--text-dim); }
.btn-notif { padding: 8px 16px; background: var(--orange); color: var(--white); font-size: 13px; font-weight: 600; border-radius: 8px; transition: background 0.15s; }
.btn-notif:active { background: var(--orange-dim); }
.btn-notif.enabled { background: var(--card-light); color: var(--text-mid); border: 1px solid var(--border); }
.notif-time-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.notif-time-lbl { font-size: 13px; color: var(--text-mid); }
.time-input { background: var(--card-mid); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 14px; color: var(--text); width: auto; }

.notif-help { background: var(--card); border: 1px solid rgba(234,73,46,0.3); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.notif-help-title { padding: 12px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border); }
.notif-help-tabs { display: flex; border-bottom: 1px solid var(--border); }
.notif-help-tab { flex: 1; padding: 10px; font-size: 13px; font-weight: 500; color: var(--text-dim); background: transparent; border-right: 1px solid var(--border); transition: all 0.15s; }
.notif-help-tab:last-child { border-right: none; }
.notif-help-tab.active { color: var(--orange); background: var(--orange-bg); }
.notif-help-steps { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.notif-help-note { font-size: 12px; color: var(--text-mid); padding: 10px 12px; background: var(--card-light); border-radius: 8px; border: 1px solid var(--border); line-height: 1.5; }

/* ══ BOTTOM NAV ══ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--nav-h) + var(--safe-bot));
  padding-bottom: var(--safe-bot);
  display: flex; background: var(--black);
  border-top: 1px solid var(--border);
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-dim); padding: 8px 0;
  transition: color 0.15s;
}
.nav-btn.active { color: var(--orange); }
.nav-icon { width: 22px; height: 22px; }
.nav-lbl { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; }

/* ══ MODALS ══ */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }

/* Settings sheet (slides up from bottom) */
.modal-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 201;
  background: var(--card); border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border);
  padding: 12px 20px 40px;
  max-height: 70vh; overflow-y: auto;
}
.sheet-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 16px; }
.sheet-title { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.sheet-section { margin-bottom: 16px; }
.sheet-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; font-weight: 600; }
.sheet-desc { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 12px; }
.sheet-divider { height: 1px; background: var(--border); margin: 16px 0; }
.sheet-spacer { height: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stats-item { background: var(--card-mid); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.stats-val { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700; color: var(--orange); }
.stats-lbl { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

/* Card modal (centered) */
.modal-card {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 201; width: calc(100% - 48px); max-width: 360px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 24px;
}
.modal-cross { text-align: center; font-size: 24px; color: var(--orange); margin-bottom: 10px; }
.modal-title { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.modal-body { font-size: 13px; color: var(--text-mid); line-height: 1.6; text-align: center; }
.modal-body em { color: var(--text); font-style: italic; }
.modal-note { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 8px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ══ COMPLETE SCREEN ══ */
.complete-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 24px; text-align: center; }
.complete-cross { font-size: 40px; color: var(--orange); margin-bottom: 16px; }
.complete-title { font-family: 'Oswald', sans-serif; font-size: clamp(42px, 12vw, 60px); font-weight: 700; color: var(--white); line-height: 1.05; margin-bottom: 20px; }
.complete-divider { width: 40px; height: 2px; background: var(--orange); border-radius: 1px; margin: 0 auto 20px; }
.complete-verse { font-size: 16px; font-style: italic; color: var(--text-mid); line-height: 1.7; max-width: 300px; margin-bottom: 12px; }
.complete-ref { font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--orange); display: block; margin-bottom: 24px; }
.complete-badge { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }

/* ══ LOADING SCREEN ══ */
.loading-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 12px; }
.loading-cross { font-size: 32px; color: var(--orange); }
.loading-name { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; color: var(--text-mid); }
.loading-dots { display: flex; gap: 6px; margin-top: 8px; }
.loading-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: dot-pulse 1.2s ease-in-out infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse { 0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

/* ══ AUTH SCREEN ══ */
.auth-bg { position: absolute; inset: 0; background: linear-gradient(170deg, #1a0800 0%, #0a0a0a 60%); }
.auth-scroll { position: relative; z-index: 1; height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.auth-inner { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-cross { font-size: 28px; color: var(--orange); margin-bottom: 8px; }
.auth-brand { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-mid); margin-bottom: 8px; }
.auth-app-title { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700; color: var(--white); }
.auth-panel { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.auth-panel-title { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--text-dim); margin-top: -4px; margin-bottom: 4px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: 0.3px; }
.auth-input { padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 16px; width: 100%; transition: border-color 0.15s; }
.auth-input:focus { border-color: var(--orange); outline: none; }
.auth-error { padding: 10px 14px; background: rgba(229,57,53,0.1); border: 1px solid rgba(229,57,53,0.3); border-radius: 8px; font-size: 13px; color: var(--danger); line-height: 1.4; }
.auth-success { padding: 10px 14px; background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.3); border-radius: 8px; font-size: 13px; color: var(--green); }
.auth-link { background: none; border: none; color: var(--text-dim); font-size: 13px; padding: 4px 0; text-align: center; }
.auth-link:active { color: var(--text-mid); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.auth-divider span { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Settings account section */
.sheet-user-email { font-size: 13px; color: var(--text-mid); margin-bottom: 10px; }
.btn-signout { padding: 11px 20px; background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--text-mid); font-size: 13px; font-weight: 500; transition: all 0.15s; }
.btn-signout:active { border-color: var(--text-mid); color: var(--text); }

/* ══ TOAST ══ */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%; transform: translateX(-50%);
  z-index: 300; background: var(--white); color: var(--black);
  padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 600;
  white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: opacity 0.3s;
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* ══ BIBLE TAB ══ */
.bible-today-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.bible-day-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; font-weight: 600; }
.bible-psalm-title { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.bible-open-btn { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 14px 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; text-decoration: none; justify-content: center; margin-bottom: 10px; cursor: pointer; transition: background 0.15s; box-sizing: border-box; }
.bible-open-btn:hover { background: #c93a22; }
.bible-mark-btn { width: 100%; background: transparent; color: var(--text-dim); border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.bible-mark-btn.read { background: rgba(76,175,80,0.1); border-color: #4caf50; color: #4caf50; }
.bible-progress-bar { height: 6px; background: var(--card); border-radius: 3px; margin: 8px 0 20px; overflow: hidden; }
.bible-progress-fill { height: 100%; background: var(--orange); border-radius: 3px; transition: width 0.3s; }
.bible-grid { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; margin-top: 8px; }
.bible-grid-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; border-radius: 6px; background: var(--card); color: var(--text-dim); cursor: pointer; transition: all 0.15s; border: 1px solid var(--border); }
.bible-grid-cell.done { background: rgba(76,175,80,0.15); border-color: #4caf50; color: #4caf50; }
.bible-grid-cell.today { border-color: var(--orange); color: var(--orange); font-weight: 700; }
.bible-grid-cell.done.today { background: rgba(76,175,80,0.15); border-color: #4caf50; color: #4caf50; }
