/* D&D Challenge — Premium Styles v2 */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ─── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  --black:        #0a0a0a;
  --surface:      #111014;
  --card:         #18161c;
  --card-2:       #1f1c24;
  --border:       #282530;
  --border-soft:  #1e1c22;

  --orange:       #f04d24;
  --orange-dim:   #c93d1d;
  --orange-glow:  rgba(240,77,36,0.12);
  --orange-glow2: rgba(240,77,36,0.06);

  --green:        #22c55e;
  --green-bg:     rgba(34,197,94,0.08);
  --green-border: rgba(34,197,94,0.25);

  --red:          #ef4444;
  --red-bg:       rgba(239,68,68,0.08);
  --red-border:   rgba(239,68,68,0.25);

  --white:        #f5f3f0;
  --gray-1:       #a09aaa;
  --gray-2:       #5e5868;
  --gray-3:       #2e2a34;

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;

  --safe-top:     env(safe-area-inset-top, 0px);
  --safe-bottom:  env(safe-area-inset-bottom, 0px);

  --font-head:    'Oswald', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ─── SCREEN SYSTEM ──────────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.screen.active { display: flex; }

/* ─── SCROLLABLE CONTENT ─────────────────────────────────────────── */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(80px + var(--safe-bottom));
}

/* ─── ONBOARDING ─────────────────────────────────────────────────── */
#screen-onboard {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.onboard-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(240,77,36,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(240,77,36,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.onboard-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 40px 28px calc(40px + var(--safe-bottom));
  text-align: center;
}

.onboard-cross {
  font-size: 52px;
  color: var(--orange);
  margin-bottom: 20px;
  display: block;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(240,77,36,0.4));
}

.onboard-brand {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 3.5px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 400;
}

.onboard-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
}

.onboard-dd {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--white);
}

.onboard-challenge {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 4px;
}

.onboard-days {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gray-1);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.onboard-divider {
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin: 0 auto 20px;
  border-radius: 1px;
}

.onboard-copy {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

.onboard-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-1);
  text-align: left;
  display: block;
  margin-bottom: -4px;
}

.date-input, .time-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-body);
  text-align: center;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.date-input:focus, .time-input:focus {
  outline: none;
  border-color: var(--orange);
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(240,77,36,0.3);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover  { background: var(--orange-dim); box-shadow: 0 4px 24px rgba(240,77,36,0.4); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary.btn-sm {
  padding: 11px;
  font-size: 12px;
  letter-spacing: 1.5px;
  box-shadow: none;
}

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--gray-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-ghost:hover { border-color: var(--gray-1); color: var(--white); }
.btn-ghost:active { background: rgba(255,255,255,0.04); }

.btn-red-ghost { color: var(--red); border-color: var(--red-border); }
.btn-red-ghost:hover { border-color: var(--red); background: var(--red-bg); color: var(--red); }

.btn-danger {
  width: 100%;
  background: transparent;
  border: 1px solid var(--red-border);
  color: var(--red);
  border-radius: var(--radius-md);
  padding: 13px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }

/* ─── HEADER ─────────────────────────────────────────────────────── */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 20px 12px;
  padding-top: calc(14px + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-brand { display: flex; flex-direction: column; }

.brand-tag {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 400;
}

.brand-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
}

.day-badge {
  background: var(--orange);
  border-radius: 12px;
  padding: 8px 15px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(240,77,36,0.35);
  transition: background 0.3s;
}

.day-badge .day-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.day-badge .day-of {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  font-weight: 400;
}

.day-badge.done-badge   { background: var(--green); box-shadow: 0 2px 12px rgba(34,197,94,0.3); }
.day-badge.future-badge { background: var(--card-2); box-shadow: none; }

/* ─── PROGRESS STRIP ─────────────────────────────────────────────── */
.progress-strip {
  height: 3px;
  background: var(--border);
  flex-shrink: 0;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  min-width: 0;
}

.progress-fill.complete-fill { background: var(--green); }

/* ─── STAT CHIPS ─────────────────────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 1px;
  background: var(--border-soft);
  flex-shrink: 0;
}

.stat-chip {
  flex: 1;
  background: var(--surface);
  padding: 10px 6px;
  text-align: center;
}

.chip-val {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.chip-label {
  font-size: 9px;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}

/* ─── SECTION HEADER ─────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 10px;
}

.section-label {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
  font-weight: 500;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── TODAY BANNER ───────────────────────────────────────────────── */
.today-banner {
  margin: 12px 16px 2px;
  background: var(--card);
  border-left: 2px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--gray-1);
  letter-spacing: 0.5px;
  line-height: 1.5;
}
.today-banner strong { color: var(--white); }
.today-banner.all-done-banner { border-color: var(--green); }

/* ─── COMPLETION RING ────────────────────────────────────────────── */
.ring-block {
  margin: 4px 16px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ring-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.ring-svg {
  width: 70px;
  height: 70px;
  transform: rotate(-90deg);
}

.ring-track { fill: none; stroke: var(--border); stroke-width: 5; }

.ring-arc {
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linecap: round;
  /* circumference = 2π×26 ≈ 163.4 */
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4,0,0.2,1), stroke 0.3s;
}

.ring-arc.complete { stroke: var(--green); }

.ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-pct {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.ring-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ring-sub {
  font-size: 11px;
  color: var(--gray-1);
  margin-top: 3px;
}

.ring-sub.all-done { color: var(--green); font-weight: 600; }

.ring-day {
  font-size: 10px;
  color: var(--gray-2);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ─── CELEBRATION BANNER ─────────────────────────────────────────── */
.celebrate-banner {
  margin: 10px 16px 0;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeSlideIn 0.4s ease;
}

.celebrate-icon { font-size: 28px; flex-shrink: 0; }

.celebrate-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
}

.celebrate-sub {
  font-size: 11px;
  color: var(--gray-1);
  margin-top: 3px;
  line-height: 1.4;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── CHECKLIST ──────────────────────────────────────────────────── */
.checklist {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.check-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 3px 0 0 3px;
  transition: background 0.2s;
}

.check-item.checked { border-color: var(--green-border); background: var(--green-bg); }
.check-item.checked::before { background: var(--green); }
.check-item:active { transform: scale(0.988); }

.check-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-2);
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.check-item.checked .check-num { color: var(--green); }

.check-ico {
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.check-body { flex: 1; min-width: 0; }

.check-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  transition: color 0.2s;
}

.check-item.checked .check-title { text-decoration: line-through; color: var(--gray-2); }

.check-desc {
  font-size: 10px;
  color: var(--gray-2);
  margin-top: 3px;
  line-height: 1.5;
}

.check-item.checked .check-desc { color: var(--gray-3); }

.check-box {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: transparent;
  font-size: 14px;
  font-weight: 700;
  background: var(--card-2);
}

.check-item.checked .check-box {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 0 10px rgba(34,197,94,0.4);
}

@keyframes checkPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.check-item.pop { animation: checkPop 0.2s ease; }

/* ─── SCRIPTURE CARD ─────────────────────────────────────────────── */
.verse-card {
  margin: 0 16px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.verse-card::after {
  content: '✞';
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 60px;
  opacity: 0.04;
  color: var(--orange);
  pointer-events: none;
  user-select: none;
}

.verse-week-tag {
  font-size: 9px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 500;
}

.verse-text {
  font-style: italic;
  font-size: 14px;
  color: var(--white);
  line-height: 1.65;
  margin-bottom: 8px;
  font-weight: 300;
  quotes: "\201C" "\201D";
}

.verse-ref {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 1px;
  font-style: normal;
  display: block;
}

.btn-reviewed {
  margin-top: 14px;
  width: 100%;
  background: var(--card-2);
  color: var(--gray-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-reviewed:active { transform: scale(0.98); }

.btn-reviewed.reviewed {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green);
}

/* ─── FAST CARD ──────────────────────────────────────────────────── */
.fast-card {
  margin: 10px 16px 0;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

.fast-card.fasting { border-color: var(--orange); background: rgba(240,77,36,0.06); }
.fast-card:active { transform: scale(0.988); }

.fast-left { display: flex; align-items: center; gap: 13px; }

.fast-icon { font-size: 22px; }

.fast-title {
  font-family: var(--font-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fast-desc {
  font-size: 10px;
  color: var(--gray-2);
  margin-top: 3px;
}

.toggle {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}

.toggle.on { background: var(--orange); }

.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: left 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.toggle.on::after { left: 25px; }

/* ─── NOTES CARD ─────────────────────────────────────────────────── */
.notes-card {
  margin: 0 16px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.notes-textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  resize: none;
  outline: none;
  -webkit-appearance: none;
  min-height: 100px;
}

.notes-textarea::placeholder { color: var(--gray-2); }

.week-notes-label {
  padding: 10px 16px 0;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-2);
}

.notes-hint {
  padding: 4px 16px 10px;
  font-size: 10px;
  color: var(--gray-2);
  min-height: 20px;
  transition: color 0.3s;
}

/* ─── APP FOOTER ─────────────────────────────────────────────────── */
.app-footer {
  padding: 20px 16px 8px;
  text-align: center;
}

.footer-motto {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-sub {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-top: 6px;
}

/* ─── CALENDAR ───────────────────────────────────────────────────── */
.cal-legend {
  display: flex;
  gap: 14px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--gray-1);
}

.leg-dot { width: 10px; height: 10px; border-radius: 3px; }
.complete-dot { background: var(--green); }
.today-dot    { background: var(--orange); }
.missed-dot   { background: var(--red-bg); border: 1px solid var(--red-border); }
.future-dot   { background: var(--card-2); border: 1px solid var(--border); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  padding: 0 16px;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.1s;
  font-family: var(--font-head);
}

.cal-cell.complete { background: var(--green);   color: white;          border-color: var(--green); }
.cal-cell.missed   { background: var(--red-bg);  color: var(--red);     border-color: var(--red-border); }
.cal-cell.today    { background: var(--orange);  color: white;          border-color: var(--orange); animation: pulseCell 2s infinite; }
.cal-cell.future   { background: #0d0d0d;        color: var(--gray-3);  border-color: #1a1a1a; }
.cal-cell.partial  { background: rgba(240,77,36,0.12); color: var(--orange); border-color: rgba(240,77,36,0.3); }

@keyframes pulseCell {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(240,77,36,0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 2px rgba(240,77,36,0.2); }
}

.week-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border-soft);
  margin: 2px 0;
}

/* ─── SCRIPTURE SCREEN ───────────────────────────────────────────── */
/* Scripture tab — full verse display card */
.scripture-verse-card {
  margin: 0 16px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  position: relative;
}

.scripture-verse-text {
  font-style: italic;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--gray-1);
  line-height: 1.75;
  margin-bottom: 14px;
}

.scripture-verse-ref {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
}

/* ─── STATS SCREEN ───────────────────────────────────────────────── */
.stats-card {
  margin: 0 16px 10px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 10px;
}

.stats-item { text-align: center; }

.stats-val {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stats-lbl {
  font-size: 10px;
  color: var(--gray-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ─── NOTIFICATIONS ──────────────────────────────────────────────── */
.notif-card {
  margin: 0 16px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.notif-icon { font-size: 22px; flex-shrink: 0; }

.notif-body { flex: 1; }

.notif-title {
  font-family: var(--font-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notif-desc { font-size: 10px; color: var(--gray-2); margin-top: 3px; }

.btn-notif {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-notif:hover { background: var(--orange-dim); }
.btn-notif.notif-on { background: var(--green); }
.btn-notif.notif-blocked { background: var(--gray-3); color: var(--gray-1); cursor: not-allowed; }

.notif-time-row {
  margin: 8px 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.notif-time-row .time-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-align: left;
}

/* ─── INSTALL ────────────────────────────────────────────────────── */
.install-btn-wrap {
  margin: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.btn-install {
  width: 100%;
  background: linear-gradient(135deg, var(--orange-dim), var(--orange));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 24px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(240,77,36,0.35);
}
.btn-install:active { transform: scale(0.97); }

.install-note {
  font-size: 10px;
  color: var(--gray-2);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ─── SETTINGS ───────────────────────────────────────────────────── */
.settings-section { padding: 0 16px; }

/* ─── BOTTOM NAV ─────────────────────────────────────────────────── */
.bottom-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  padding-bottom: var(--safe-bottom);
  position: relative;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 10px 4px 9px;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: transparent;
  color: var(--gray-2);
  transition: color 0.2s;
  position: relative;
}

.nav-btn.active { color: var(--orange); }

.nav-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--orange);
  border-radius: 0 0 2px 2px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: filter 0.2s;
}

.nav-btn.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(240,77,36,0.5));
}

.nav-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-family: var(--font-body);
}

/* ─── COMPLETION SCREEN ──────────────────────────────────────────── */
#screen-complete {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

#screen-complete::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(240,77,36,0.15) 0%, transparent 70%);
}

.complete-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 40px 28px;
  text-align: center;
}

.complete-cross {
  font-size: 72px;
  margin-bottom: 20px;
  color: var(--orange);
  filter: drop-shadow(0 0 30px rgba(240,77,36,0.5));
}

.complete-title {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 1px;
}

.complete-divider {
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin: 20px auto;
  border-radius: 1px;
}

.complete-verse {
  font-style: italic;
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.7;
  padding: 0 8px;
  font-weight: 300;
  margin-bottom: 10px;
}

.complete-ref {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 1px;
  font-style: normal;
  display: block;
  margin-bottom: 24px;
}

.complete-badge {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-2);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ─── MODALS ─────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 24px calc(32px + var(--safe-bottom));
  z-index: 101;
  animation: sheetUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
}

@keyframes sheetUp {
  from { transform: translateX(-50%) translateY(100%); }
  to   { transform: translateX(-50%) translateY(0); }
}

.modal-cross {
  font-size: 36px;
  color: var(--orange);
  margin-bottom: 14px;
  opacity: 0.8;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.65;
  margin-bottom: 12px;
  font-weight: 300;
}

.modal-ref {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 1px;
  display: block;
  margin-top: 6px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* iOS modal specific */
.modal-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.modal-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.modal-close-btn {
  margin-left: auto;
  background: var(--card-2);
  border: none;
  color: var(--gray-1);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.ios-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ios-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.ios-step-desc  { font-size: 11px; color: var(--gray-1); line-height: 1.4; }

.ios-note {
  background: var(--card-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 11px;
  color: var(--gray-1);
  line-height: 1.4;
  text-align: left;
}

/* ─── ONBOARDING INSTALL ─────────────────────────────────────────── */
#screen-onboard .install-btn-wrap {
  margin: 16px 0 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

/* ─── UTILITIES ──────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.spacer   { height: 16px; }
.spacer-sm{ height: 8px; }

/* --- NUTRITION TAB ------------------------------------------------- */
.nutr-intro {
  font-size: 13px;
  color: var(--gray-1);
  line-height: 1.6;
  margin: 0 0 16px;
  padding: 0 2px;
}
.nutr-standards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.nutr-standard-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  border-left: 3px solid var(--orange);
}
.nutr-icon  { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.nutr-title { font-family: "Oswald", sans-serif; font-size: 15px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: .04em; }
.nutr-tag   { font-size: 10px; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 4px; }
.nutr-desc  { font-size: 12px; color: var(--gray-1); line-height: 1.5; }
.nutr-motto-card {
  background: var(--orange);
  color: #000;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.nutr-cart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.nutr-cart-card { background: var(--card); border-radius: var(--radius); padding: 12px; }
.nutr-cart-header {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.nutr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.nutr-list li { font-size: 12px; color: var(--gray-1); padding-left: 10px; position: relative; }
.nutr-list li::before { content: "2"; position: absolute; left: 0; color: var(--orange); opacity: .6; }
.nutr-day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.nutr-day-item { background: var(--card); border-radius: var(--radius); padding: 14px 12px; text-align: center; }
.nutr-day-icon  { font-size: 20px; margin-bottom: 4px; }
.nutr-day-label { font-family: "Oswald", sans-serif; font-size: 11px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.nutr-day-meal  { font-size: 12px; color: var(--gray-1); line-height: 1.4; }
.nutr-life-card { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.nutr-life-row  { font-size: 13px; color: var(--gray-1); line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.nutr-life-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.nutr-bottom-card {
  background: var(--card-2);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid rgba(240,77,36,.2);
}
.nutr-bottom-line {
  font-family: "Oswald", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
}
.nutr-bottom-tag { font-size: 12px; color: var(--orange); margin-top: 8px; font-style: italic; }
