@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --blue: #1E3A8A;
  --blue-light: #3B5FC0;
  --blue-subtle: #EFF6FF;
  --orange: #F97316;
  --orange-light: #FED7AA;
  --orange-dark: #EA580C;
  --white: #FFFFFF;
  --grey-50: #F9FAFB;
  --grey-100: #F3F4F6;
  --grey-200: #E5E7EB;
  --grey-400: #9CA3AF;
  --grey-600: #4B5563;
  --grey-800: #1F2937;
  --green: #059669;
  --red: #DC2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Theme colors for life stages */
  --clr-passed: #000000;  /* Pure black as requested */
  --clr-healthy: #10B981; /* Emerald green */
  --clr-old: #EF4444;     /* Rose red */
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--grey-50);
  color: var(--grey-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── SCREENS ──────────────────────────────── */
.screen { display: none; min-height: 100vh; flex-direction: column; }
.screen.active { display: flex; }

/* ─── NAV / HEADER ──────────────────────────── */
.app-header {
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
  min-height: 60px;
}
.app-header .logo-img { width: 36px; height: 36px; border-radius: 8px; }
.app-header h1 { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.header-right { display: flex; align-items: center; gap: 10px; }
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-subtle); border: 2px solid var(--blue-light);
  color: var(--blue); font-weight: 700; font-size: 0.85rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; overflow: hidden;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-btn:hover { transform: scale(1.05); }

/* ─── BOTTOM NAV ─────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  display: flex; z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 4px; cursor: pointer;
  color: var(--grey-400); font-size: 0.65rem; font-weight: 500;
  transition: all 0.2s; gap: 3px; border: none; background: none;
  user-select: none;
}
.nav-item svg { width: 22px; height: 22px; transition: all 0.2s; }
.nav-item.active { color: var(--blue); }
.nav-item.active svg { transform: scale(1.1); }

/* ─── SCROLL CONTAINER ─────────────────────── */
.scroll-body {
  flex: 1; overflow-y: auto;
  padding: 20px 16px 90px;
  -webkit-overflow-scrolling: touch;
}

/* ─── CARDS ─────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--grey-400); margin-bottom: 12px;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: none;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(249,115,22,0.35); }
.btn-secondary { background: var(--blue-subtle); color: var(--blue); }
.btn-secondary:hover { background: #DBEAFE; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-subtle); }
.btn-ghost { background: transparent; color: var(--grey-600); }
.btn-ghost:hover { background: var(--grey-100); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #B91C1C; }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ─── FORM ELEMENTS ─────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--grey-800); margin-bottom: 6px; }
.form-label .hint { font-weight: 400; color: var(--grey-400); font-size: 0.8rem; margin-left: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--grey-200); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.95rem; color: var(--grey-800);
  background: var(--grey-50); transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ─── SLIDER ─────────────────────────────────── */
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-val {
  min-width: 40px; text-align: center;
  font-size: 1.1rem; font-weight: 700; color: var(--orange);
}
input[type=range] {
  flex: 1; height: 6px; appearance: none; -webkit-appearance: none;
  background: var(--grey-200); border-radius: 99px; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(249,115,22,0.4); cursor: pointer;
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* ─── CHOICE CHIPS ───────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 8px 16px; border-radius: 99px;
  border: 2px solid var(--grey-200); background: var(--white);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; color: var(--grey-600);
}
.chip.selected {
  border-color: var(--orange); background: var(--orange-light);
  color: var(--orange-dark); font-weight: 600;
}

/* ─── LIFE SUMMARY ───────────────────────────── */
.life-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 60%, #2563EB 100%);
  border-radius: var(--radius-lg); padding: 28px 20px; color: var(--white);
  text-align: center; margin-bottom: 16px; position: relative; overflow: hidden;
}
.life-hero::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.life-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -30px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(249,115,22,0.15);
}
.life-days-number {
  font-size: 3.5rem; font-weight: 800; letter-spacing: -2px;
  line-height: 1; margin: 8px 0;
  background: linear-gradient(135deg, #FFF 40%, var(--orange-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.life-days-label { font-size: 0.8rem; opacity: 0.75; letter-spacing: 1px; text-transform: uppercase; }
.life-tagline { font-size: 0.95rem; opacity: 0.9; margin-top: 12px; font-weight: 500; }
.life-sub { font-size: 0.78rem; opacity: 0.65; margin-top: 4px; }

/* ─── STAT BAR ───────────────────────────────── */
.stat-row { display: flex; gap: 10px; margin-bottom: 16px; }
.stat-chip {
  flex: 1; padding: 12px 8px; border-radius: var(--radius-sm);
  text-align: center; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.stat-chip .val { font-size: 1.2rem; font-weight: 800; display: block; margin-bottom: 2px; }
.stat-chip.red { background: #FEF2F2; color: var(--red); }
.stat-chip.green { background: #ECFDF5; color: var(--green); }
.stat-chip.blue { background: var(--blue-subtle); color: var(--blue); }

/* ─── FEATURE CARDS ──────────────────────────── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 18px 14px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  border: 2px solid transparent;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--grey-200); }
.feature-card:active { transform: scale(0.98); }
.feature-icon { font-size: 1.8rem; }
.feature-label { font-size: 0.8rem; font-weight: 700; color: var(--grey-800); }
.feature-val { font-size: 0.72rem; color: var(--grey-400); }
.feature-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px;
  border-radius: 99px; margin-top: 4px;
}
.badge-orange { background: var(--orange-light); color: var(--orange-dark); }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-blue { background: var(--blue-subtle); color: var(--blue); }
.badge-grey { background: var(--grey-100); color: var(--grey-600); }

/* ─── WEEKLY BAR CHART ───────────────────────── */
.week-bars { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin: 12px 0 4px; }
.week-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
  min-height: 4px;
}
.week-bar.orange { background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%); }
.week-bar.blue { background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 100%); }
.week-labels { display: flex; gap: 4px; }
.week-label { flex: 1; text-align: center; font-size: 0.6rem; color: var(--grey-400); }

/* ─── FELLOW SEEKERS ─────────────────────────── */
.friend-list { display: flex; flex-direction: column; gap: 10px; }
.friend-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--grey-50); border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s;
}
.friend-item:hover { background: var(--grey-100); }
.friend-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-subtle); color: var(--blue);
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-info { flex: 1; min-width: 0; }
.friend-name { font-weight: 600; font-size: 0.9rem; color: var(--grey-800); }
.friend-meta { font-size: 0.75rem; color: var(--grey-400); }
.friend-days { font-size: 0.8rem; font-weight: 700; color: var(--blue); white-space: nowrap; }

/* ─── REFLECTION ITEMS ───────────────────────── */
.reflection-item {
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--grey-50); margin-bottom: 10px;
  border-left: 3px solid var(--orange);
}
.reflection-date { font-size: 0.72rem; color: var(--grey-400); margin-bottom: 4px; }
.reflection-text { font-size: 0.9rem; color: var(--grey-800); line-height: 1.5; }

/* ─── MEDITATION TIMER ───────────────────────── */
.timer-ring-wrap { display: flex; justify-content: center; margin: 24px 0; }
.timer-ring { position: relative; }
.timer-circle { transform: rotate(-90deg); }
.timer-circle .bg { fill: none; stroke: var(--grey-100); stroke-width: 10; }
.timer-circle .fg { fill: none; stroke: var(--blue); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.timer-display { font-size: 2rem; font-weight: 800; color: var(--blue); }
.timer-label { font-size: 0.7rem; color: var(--grey-400); letter-spacing: 1px; text-transform: uppercase; }
.timer-btns { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

/* ─── FASTING TRACKER ────────────────────────── */
.fasting-ring-wrap { display: flex; justify-content: center; margin: 24px 0; }
.fasting-circle .fg { stroke: var(--orange); }
.fasting-status { font-size: 0.8rem; color: var(--grey-600); text-align: center; }

/* ─── ONBOARDING ─────────────────────────────── */
#screen-onboarding {
  background: linear-gradient(160deg, var(--blue) 0%, #1D4ED8 40%, #3B82F6 100%);
  color: var(--white);
}
.onboard-slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 32px; text-align: center; }
.onboard-img { width: 200px; height: 200px; border-radius: 36px; object-fit: contain; background: rgba(255,255,255,0.12); padding: 24px; margin-bottom: 32px; }
.onboard-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; line-height: 1.25; }
.onboard-desc { font-size: 0.95rem; opacity: 0.85; line-height: 1.7; }
.onboard-dots { display: flex; justify-content: center; gap: 8px; padding: 20px 0; }
.onboard-dot { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.3); transition: all 0.3s; }
.onboard-dot.active { width: 28px; background: var(--orange); }
.onboard-footer { padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 12px; }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: #EFF6FF; }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,0.75); border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ─── AUTH ───────────────────────────────────── */
#screen-auth {
  background: linear-gradient(160deg, var(--blue) 0%, #1D4ED8 50%, #1E3A8A 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 28px; color: var(--white);
}
.auth-logo { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 20px; }
.auth-title { font-size: 1.8rem; font-weight: 800; }
.auth-sub { opacity: 0.75; font-size: 0.95rem; margin-top: 8px; }
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 24px; margin-top: 32px; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.auth-card h2 { font-size: 1.15rem; color: var(--blue); margin-bottom: 20px; font-weight: 700; }
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius-sm); border: 2px solid var(--grey-200);
  background: var(--white); cursor: pointer; font-family: var(--font);
  font-size: 0.95rem; font-weight: 600; color: var(--grey-800);
  transition: all 0.2s;
}
.google-btn:hover { background: var(--grey-50); border-color: var(--grey-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.google-icon { width: 22px; height: 22px; }
.auth-divider { text-align: center; color: var(--grey-400); font-size: 0.8rem; margin: 16px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--grey-200); }
.auth-divider span { background: var(--white); padding: 0 12px; position: relative; }

/* ─── SETUP / PROFILE FORM ───────────────────── */
.setup-header { background: var(--white); padding: 16px 20px; border-bottom: 1px solid var(--grey-100); }
.setup-progress { height: 4px; background: var(--grey-100); border-radius: 99px; margin-top: 10px; }
.setup-progress-fill { height: 100%; background: var(--orange); border-radius: 99px; transition: width 0.4s ease; }
.step-num { font-size: 0.75rem; color: var(--grey-400); font-weight: 600; }
.step-title { font-size: 1.15rem; font-weight: 700; color: var(--blue); margin-top: 2px; }
.section-emoji { font-size: 2.5rem; margin-bottom: 8px; text-align: center; }
.section-desc { font-size: 0.875rem; color: var(--grey-600); text-align: center; margin-bottom: 24px; line-height: 1.6; }

/* ─── EMPTY STATE ────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-title { font-size: 1rem; font-weight: 700; color: var(--grey-800); margin-bottom: 6px; }
.empty-desc { font-size: 0.875rem; color: var(--grey-400); line-height: 1.6; }

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 500; display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s; }
.modal {
  background: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px 36px; width: 100%; max-width: 560px;
  animation: slideUp 0.3s ease-out;
  max-height: 90vh; overflow-y: auto;
}
.modal-handle { width: 40px; height: 4px; background: var(--grey-200); border-radius: 99px; margin: 0 auto 20px; }
.modal h2 { font-size: 1.1rem; font-weight: 700; color: var(--blue); margin-bottom: 16px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ─── TOAST ──────────────────────────────────── */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--grey-800); color: var(--white);
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; z-index: 900;
  animation: toastIn 0.3s ease; pointer-events: none;
  white-space: nowrap;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ─── LOADING SPINNER ─────────────────────────── */
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--grey-100);
  border-top-color: var(--blue); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; gap: 20px; background: var(--white);
}
.loading-logo { width: 72px; height: 72px; border-radius: 18px; animation: pulse 2s infinite; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (min-width: 480px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .scroll-body { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 768px) {
  body { background: var(--grey-100); }
  .screen { max-width: 480px; margin: 0 auto; background: var(--grey-50); box-shadow: 0 0 40px rgba(0,0,0,0.1); }
  .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .toast { bottom: 100px; }
}

/* ─── UTILS ──────────────────────────────────── */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-grey { color: var(--grey-400); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--grey-100); margin: 16px 0; }

/* ═══════════════════════════════════════════════════════════════
   STEPPER
═══════════════════════════════════════════════════════════════ */
#screen-stepper {
  background: linear-gradient(160deg, #0F172A 0%, #1E3A8A 60%, #1D4ED8 100%);
  flex-direction: column;
  min-height: 100vh;
}

.stepper-topbar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 18, 40, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stepper-back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.stepper-back-btn:hover { background: rgba(255,255,255,0.22); }

/* Logo — left-aligned, no longer centred absolutely */
.stepper-logo-link {
  display: flex; align-items: center; flex-shrink: 0;
}
.stepper-logo-img {
  width: 34px; height: 34px; border-radius: 8px;
  object-fit: contain; display: block;
}

/* Bubble step indicator — fills the rest of the bar */
.stepper-bubbles {
  display: flex; align-items: center; flex: 1;
  justify-content: flex-end;
}
.step-bubble {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  transition: all 0.3s ease; flex-shrink: 0;
  letter-spacing: 0;
}
.step-bubble.active {
  background: var(--orange); border-color: var(--orange); color: #fff;
  box-shadow: 0 0 0 4px rgba(249,115,22,0.25);
  transform: scale(1.1);
}
.step-bubble.done {
  background: rgba(249,115,22,0.2); border-color: var(--orange); color: var(--orange);
}
.step-bubble-line {
  width: 16px; height: 2px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}


.stepper-body {
  flex: 1; overflow-y: auto; padding: 16px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.stepper-step {
  display: flex; flex-direction: column; align-items: center;
  animation: stepFadeIn 0.35s ease-out;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-hero-emoji {
  font-size: 4rem; margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(249,115,22,0.5));
}
.step-headline {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  text-align: center; line-height: 1.25; margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.step-sub {
  font-size: 0.875rem; color: rgba(255,255,255,0.65);
  text-align: center; line-height: 1.7; margin-bottom: 28px; max-width: 320px;
}

.step-card {
  width: 100%; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 20px;
  backdrop-filter: blur(8px);
}

.step-field-label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: rgba(255,255,255,0.6); letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 12px;
}

/* Date input (legacy, kept for safety) */
.step-date-input {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px; color: #fff;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  transition: border-color 0.2s;
  color-scheme: dark;
}
.step-date-input:focus { outline: none; border-color: var(--orange); }

/* DOB split fields */
.dob-fields {
  display: grid; grid-template-columns: 1fr 1.8fr 1.2fr; gap: 10px;
}
.dob-field-wrap { display: flex; flex-direction: column; gap: 6px; }
.dob-sub-label {
  font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.dob-select {
  width: 100%; padding: 13px 10px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px; color: #fff;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.2s; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.dob-select:focus { outline: none; border-color: var(--orange); }
.dob-select option { background: #1E3A8A; color: #fff; }

/* Gender picker */
.step-card:has(.gender-option) {
  display: flex; flex-direction: row; gap: 16px;
}
.gender-option {
  flex: 1; background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.2s;
}
.gender-option:hover { background: rgba(255,255,255,0.14); }
.gender-option.selected {
  border-color: var(--orange); background: rgba(249,115,22,0.15);
}
.gender-icon { font-size: 2.5rem; color: #fff; line-height: 1; }
.gender-label { font-size: 0.9rem; font-weight: 700; color: #fff; }

/* Step 1 — Returning user sign-in CTA */
.step-signin-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeSlideUp 0.4s 0.2s ease both;
}

/* Returning user card box */
.step-returning-box {
  width: 100%;
  max-width: 320px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.step-returning-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}
.step-returning-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  margin: 0;
}

/* Google button inside returning box */
.step-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  color: #1A1A1A;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.step-google-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.step-google-btn:active { transform: scale(0.97); }

/* Country search */
.country-search-wrap {
  position: relative; margin-bottom: 12px;
}
.country-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: rgba(255,255,255,0.4);
}
.country-search-input {
  width: 100%; padding: 12px 12px 12px 40px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px; color: #fff;
  font-family: var(--font); font-size: 0.95rem;
  transition: border-color 0.2s;
}
.country-search-input::placeholder { color: rgba(255,255,255,0.35); }
.country-search-input:focus { outline: none; border-color: var(--orange); }
.country-list {
  max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
}
.country-item {
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font-size: 0.9rem; color: rgba(255,255,255,0.8); font-weight: 500;
  transition: background 0.15s;
}
.country-item:hover { background: rgba(255,255,255,0.1); }
.country-item.selected {
  background: rgba(249,115,22,0.25); color: #fff; font-weight: 700;
}
.country-section-label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  padding: 6px 14px 4px; pointer-events: none;
}
.country-divider {
  height: 1px; background: rgba(255,255,255,0.12);
  margin: 6px 0;
}

/* Lifestyle sliders */
.lifestyle-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.lifestyle-emoji { font-size: 1.5rem; flex-shrink: 0; }
.lifestyle-info { flex: 1; min-width: 0; }
.lifestyle-label { font-size: 0.875rem; font-weight: 700; color: #fff; }
.lifestyle-hint { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.lifestyle-val {
  font-size: 1.4rem; font-weight: 800; color: var(--orange);
  min-width: 40px; text-align: right; flex-shrink: 0;
}
.styled-range {
  width: 100%; height: 6px; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.2); border-radius: 99px; cursor: pointer;
  margin-bottom: 6px;
}
.styled-range::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(249,115,22,0.5); cursor: pointer;
  transition: transform 0.1s;
}
.styled-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: rgba(255,255,255,0.35);
}

/* Lifestyle gradient cards — WHITE redesign */
.lifestyle-card {
  width: 100%; border-radius: 18px; padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1.5px solid rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
}
.lifestyle-card--neg {
  border-left: 4px solid #EF4444;
}
.lifestyle-card--pos {
  border-left: 4px solid #10B981;
}
/* Remove the dark pseudo-element overlay */
.lifestyle-card::before { display: none; }

.lc-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.lc-icon-wrap {
  width: 44px; height: 44px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; flex-shrink: 0;
  background: none !important;
}

.lc-title-wrap { flex: 1; min-width: 0; }
.lc-title { font-size: 0.9rem; font-weight: 700; color: #1E293B; }
.lc-hint { font-size: 0.72rem; color: #94A3B8; margin-top: 2px; }

.lc-badge {
  min-width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; flex-shrink: 0;
}
.lc-badge--neg { background: #FEF2F2; color: #DC2626; }
.lc-badge--pos { background: #ECFDF5; color: #059669; }

.lc-range {
  width: 100%; height: 6px; appearance: none; -webkit-appearance: none;
  border-radius: 99px; cursor: pointer; margin-bottom: 8px;
  position: relative; z-index: 1;
}
.lc-range--neg { background: #FECACA; }
.lc-range--pos { background: #A7F3D0; }

.lc-range--neg::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #EF4444; border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(220,38,38,0.4); cursor: pointer;
  transition: transform 0.1s;
}
.lc-range--pos::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #10B981; border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(5,150,105,0.4); cursor: pointer;
  transition: transform 0.1s;
}
.lc-range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.lc-range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; color: #CBD5E1;
  position: relative; z-index: 1;
}

/* Sub-inputs for Start Age */
.lc-sub-input {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
  animation: lcSubSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes lcSubSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.lc-sub-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.lc-sub-title { font-size: 0.72rem; font-weight: 850; color: #B45309; text-transform: uppercase; }
.lc-sub-val { font-size: 1rem; font-weight: 900; color: #D97706; }
.lc-range--sub { width: 100%; height: 5px; appearance: none; background: #FEF3C7; border-radius: 99px; }
.lc-range--sub::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #D97706; border: 2px solid #fff; cursor: pointer; }

/* Outlook grid */
.outlook-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.outlook-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px; border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.12);
  cursor: pointer; transition: all 0.2s;
}
.outlook-option:hover { background: rgba(255,255,255,0.14); }
.outlook-option.selected {
  border-color: var(--orange); background: rgba(249,115,22,0.2);
}
.outlook-emoji { font-size: 1.5rem; }
.outlook-lbl { font-size: 0.58rem; font-weight: 700; color: rgba(255,255,255,0.7); text-align: center; }

/* Stepper footer row with back + continue */
.stepper-footer {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stepper-footer-row {
  display: flex; align-items: center; gap: 10px;
}
/* Back button inside footer */
.stepper-back-btn--footer {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.stepper-back-btn--footer:hover { background: rgba(255,255,255,0.18); }
.stepper-cta {
  flex: 1; padding: 16px; border-radius: 14px;
  background: var(--orange); color: #fff;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.2px;
}
.stepper-cta:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(249,115,22,0.4); }
.stepper-cta:active { transform: scale(0.98); }
.stepper-disclaimer {
  text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.35);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD v2
═══════════════════════════════════════════════════════════════ */

/* Recalculate button */
.recalc-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-subtle); border: none;
  color: var(--blue); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.recalc-btn:hover { background: #DBEAFE; transform: scale(1.05); }

/* Life Hero v2 */
.life-hero-v2 {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #1D4ED8 100%);
  border-radius: 24px; padding: 28px 24px 24px;
  color: #fff; margin-bottom: 16px; position: relative; overflow: hidden;
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.35);
}
.life-hero-v2::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.25) 0%, transparent 70%);
}
.life-hero-v2::after {
  content: ''; position: absolute; bottom: -80px; left: -40px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
}
.lh-eyebrow {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 2px;
  color: var(--orange); text-transform: uppercase; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.lh-main-number {
  font-size: 5rem; font-weight: 900; letter-spacing: -3px; line-height: 1;
  background: linear-gradient(135deg, #fff 30%, #FED7AA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; z-index: 1;
  animation: numPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes numPop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.lh-main-unit {
  font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.55);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 4px;
  position: relative; z-index: 1;
}
.lh-divider {
  height: 1px; background: rgba(255,255,255,0.15); margin: 20px 0;
  position: relative; z-index: 1;
}
.lh-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  position: relative; z-index: 1;
}
.lh-cell { text-align: center; }
.lh-cell-num {
  font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1;
}
.lh-cell-lbl {
  font-size: 0.6rem; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px;
}
.lh-tagline {
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  text-align: center; margin-top: 20px; font-style: italic;
  position: relative; z-index: 1;
}

/* Impact section */
.impact-section { margin-bottom: 16px; }
.impact-title {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px;
  color: var(--grey-400); text-transform: uppercase; margin-bottom: 10px;
  padding: 0 2px;
}
.impact-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.impact-card {
  flex: 1; min-width: calc(50% - 5px);
  border-radius: 16px; padding: 16px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.impact-card.impact-neg { background: #FEF2F2; }
.impact-card.impact-pos { background: #ECFDF5; }
.impact-icon { font-size: 1.4rem; }
.impact-val {
  font-size: 1.3rem; font-weight: 800; line-height: 1;
}
.impact-card.impact-neg .impact-val { color: var(--red); }
.impact-card.impact-pos .impact-val { color: var(--green); }
.impact-lbl {
  font-size: 0.68rem; font-weight: 600; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.impact-card.impact-neg .impact-lbl { color: #B91C1C; }
.impact-card.impact-pos .impact-lbl { color: #065F46; }

/* Profile summary card */
.profile-summary-grid {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px;
}
.profile-summary-item {
  display: flex; align-items: center; gap: 12px;
}
.ps-icon { font-size: 1.2rem; flex-shrink: 0; }
.ps-label { font-size: 0.7rem; font-weight: 700; color: var(--grey-400); text-transform: uppercase; letter-spacing: 0.5px; }
.ps-val { font-size: 0.9rem; font-weight: 600; color: var(--grey-800); }

/* Quote card */
.quote-card {
  background: linear-gradient(135deg, #1E3A8A, #1D4ED8);
  color: #fff; border: none; text-align: center;
}
.quote-text {
  font-size: 0.875rem; line-height: 1.75; font-style: italic;
  color: rgba(255,255,255,0.9);
}

/* App promo */
.app-promo-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-md); margin-bottom: 16px;
}
.app-promo-inner {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.app-promo-logo { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.app-promo-title { font-size: 0.95rem; font-weight: 700; color: var(--blue); }
.app-promo-sub { font-size: 0.78rem; color: var(--grey-400); margin-top: 3px; }
.app-promo-btns { display: flex; gap: 10px; }
.store-pill {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px; border-radius: 10px;
  font-family: var(--font); font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.android-pill { background: #1E3A8A; color: #fff; }
.android-pill:hover { background: #1D4ED8; transform: translateY(-1px); }
.ios-pill { background: var(--grey-100); color: var(--grey-800); border: 1px solid var(--grey-200); }
.ios-pill:hover { background: var(--grey-200); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Premium Redesign
═══════════════════════════════════════════════════════════════ */

#screen-dashboard { background: #F8FAFF; flex-direction: column; }

/* Header */
.dash-header {
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 100;
}
.dash-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dash-logo-img { width: 32px; height: 32px; border-radius: 8px; }
.dash-logo-name { font-size: 1rem; font-weight: 800; color: #1E3A8A; }
.dash-redo-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px;
  background: #F1F5F9; border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.8rem; font-weight: 700;
  color: #475569; transition: all 0.2s;
}
.dash-redo-btn:hover { background: #E2E8F0; }

/* Scroll container */
.dash-scroll { flex: 1; overflow-y: auto; padding: 0 0 60px; -webkit-overflow-scrolling: touch; }

/* Hero */
.dash-hero {
  background: linear-gradient(160deg, #0F172A 0%, #1E3A8A 55%, #2563EB 100%);
  padding: 28px 20px 32px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(249,115,22,0.12);
  bottom: -100px; right: -80px; pointer-events: none;
}
.dash-hero-eyebrow {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 2px;
  color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 6px;
}
.dash-hero-name {
  font-size: 1.3rem; font-weight: 800; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, #FED7AA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Premium canvas arc chart */
.arc-chart-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }

/* Canvas container with centred HTML overlay */
.arc-canvas-container {
  position: relative; width: 100%; max-width: 300px;
}
#arc-canvas { width: 100%; display: block; }
.arc-center-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: 28px; pointer-events: none;
}
.arc-center-years {
  font-size: 3.2rem; font-weight: 900; line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 20%, #86EFAC);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.arc-center-label {
  font-size: 0.58rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.45); margin-top: 2px;
}
.arc-center-age {
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.55); margin-top: 4px;
}

/* Stat pills row */
.arc-stat-pills {
  display: flex; gap: 8px; width: 100%; max-width: 300px;
  margin-top: 14px;
}
.arc-stat-pill {
  flex: 1; border-radius: 14px; padding: 12px 10px; text-align: center;
}
.arc-pill-gone    { background: rgba(30,41,59,0.30);   border: 1px solid rgba(30,41,59,0.50);   }
.arc-pill-healthy { background: rgba(16,185,129,0.18);  border: 1px solid rgba(16,185,129,0.35); }
.arc-pill-old     { background: rgba(244,63,94,0.18);   border: 1px solid rgba(244,63,94,0.30);  }
.asp-pct {
  font-size: 1.25rem; font-weight: 900; line-height: 1;
}
.arc-pill-gone    .asp-pct { color: rgba(255,255,255,0.90); }
.arc-pill-healthy .asp-pct { color: #34D399; }
.arc-pill-old     .asp-pct { color: #F87171; }
.asp-label {
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45); margin-top: 3px;
}
.asp-yrs {
  font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.6); margin-top: 2px;
}

/* Info button / row under arc */
.arc-info-row { margin-top: 10px; }
.arc-info-btn {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6); border-radius: 20px;
  padding: 5px 12px; font-size: 0.72rem; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  transition: background 0.2s;
}
.arc-info-btn:hover { background: rgba(255,255,255,0.20); }

/* Info popup — hero (dark bg) */
.arc-info-popup {
  background: rgba(15,23,42,0.75); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px); border-radius: 14px;
  padding: 14px 16px; font-size: 0.78rem; line-height: 1;
  color: rgba(255,255,255,0.88); text-align: left;
  margin-top: 10px; width: 100%; max-width: 300px; box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.arc-info-popup .aip-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.arc-info-popup .aip-row:last-child { border-bottom: none; }
.aip-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 3px;
}
.aip-dot-blue  { background: #1E293B; box-shadow: 0 0 6px rgba(30,41,59,0.6);   }
.aip-dot-green { background: #10B981; box-shadow: 0 0 6px rgba(16,185,129,0.6); }
.aip-dot-red   { background: #F43F5E; box-shadow: 0 0 6px rgba(244,63,94,0.6);  }
.aip-body { display: flex; flex-direction: column; gap: 1px; }
.aip-title { font-weight: 800; font-size: 0.78rem; }
.aip-desc  { font-size: 0.70rem; color: rgba(255,255,255,0.55); line-height: 1.4; margin-top: 2px; }
/* Grid card info popup override (light card context) */
.dash-card .arc-info-popup {
  background: #fff; border-color: #E2E8F0; color: #1E293B;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.dash-card .arc-info-popup .aip-row { border-color: #F1F5F9; }
.dash-card .arc-info-popup .aip-desc { color: #64748B; }

/* Grid legend row */
.weeks-legend-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-top: 14px; padding: 0 2px;
}
.weeks-legend { display: flex; gap: 20px; align-items: flex-start; }
.wl-item { display: flex; align-items: center; gap: 8px; }
.wl-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; margin-top: 2px; }
.wl-past    { background: #1E293B; }
.wl-healthy { background: #10B981; }
.wl-old     { background: #EF4444; }
.wl-text { display: flex; flex-direction: column; }
.wl-label { font-size: 0.65rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; }
.wl-count { font-size: 0.85rem; font-weight: 900; margin-top: 1px; }
.wl-count-past    { color: #0F172A; }
.wl-count-healthy { color: #059669; }
.wl-count-old     { color: #DC2626; }

/* Info button in light card */
.dash-card .arc-info-btn {
  background: #F1F5F9; border-color: #E2E8F0; color: #64748B;
  border-radius: 50%; width: 28px; height: 28px; padding: 0;
  justify-content: center;
}
.dash-card .arc-info-btn:hover { background: #E2E8F0; }


/* Time unit pills and theme-specific colors */
.time-units-section { 
  padding: 20px 16px 4px; 
  transition: all 0.3s ease;
}

/* Theme states toggle styles */
.time-units-section.theme-passed { --theme-clr: var(--clr-passed); }
.time-units-section.theme-healthy { --theme-clr: var(--clr-healthy); }
.time-units-section.theme-old { --theme-clr: var(--clr-old); }

.tus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tus-selector {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}
.tus-btn {
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tus-btn.active {
  background: var(--theme-clr, #fff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Default active button fallback color (white) if no theme clr yet */
.tus-btn.active:not([id]) { background: #fff; color: #1E293B; }

.section-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px; color: #94A3B8; text-transform: uppercase; }

/* Time units: full-width 4-column equal grid */
.time-units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-unit-pill {
  background: #fff;
  color: var(--theme-clr, #1E293B);
  border-radius: 6px;
  padding: 14px 6px 10px;
  text-align: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  border: 1.5px solid #F1F5F9;
  border-bottom: 3px solid var(--theme-clr, #E2E8F0);
  transition: border-color 0.3s ease, color 0.3s ease;
  min-width: 0;
}

.time-units-section:not([class*="theme-"]) .time-unit-pill {
  color: #1E293B; border-bottom-color: #E2E8F0;
}
.time-units-section:not([class*="theme-"]) .tup-lbl { color: #94A3B8; }

.tup-num { font-size: 1.05rem; font-weight: 900; color: inherit; line-height: 1; }
.tup-lbl { font-size: 0.58rem; font-weight: 700; color: #94A3B8; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.time-units-section:not([class*="theme-"]) .tup-lbl { color: #94A3B8; }

/* Dash card */
.dash-card {
  margin: 16px 16px 0;
  background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05); border: 1.5px solid #F1F5F9;
}
.dash-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.dash-card-header--stacked { flex-direction: column; gap: 12px; }
.dash-card-header--stacked .life-grid-tabs { margin-top: 4px; }
.dash-card-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.dash-card-title { font-size: 0.95rem; font-weight: 800; color: #1E293B; }
.dash-card-sub { font-size: 0.75rem; color: #94A3B8; margin-top: 3px; }

/* Habit impact bars */
.impact-bars { display: flex; flex-direction: column; gap: 14px; }
.impact-bar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ibr-left { display: flex; align-items: center; gap: 6px; min-width: 84px; }
.ibr-icon { font-size: 1.1rem; }
.ibr-label { font-size: 0.78rem; font-weight: 700; color: #1E293B; }
.ibr-bar-wrap { flex: 1; }
.ibr-bar { height: 10px; border-radius: 99px; overflow: hidden; }
.ibr-fill { height: 100%; border-radius: 99px; }
.ibr-val { font-size: 0.78rem; font-weight: 800; min-width: 54px; text-align: right; }

/* Info button — clean SVG circle icon */
.ibr-info-btn {
  background: none; border: 1.5px solid #CBD5E1;
  border-radius: 50%; padding: 2px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #94A3B8; cursor: pointer;
  transition: all 0.15s; flex-shrink: 0; margin-left: 2px;
}
.ibr-info-btn:hover { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }
.ibr-info-btn svg { display: block; }

/* Habit info modal overlay */
.habit-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 900;
  animation: overlay-in 0.22s ease;
}
@keyframes overlay-in { from { opacity:0; } to { opacity:1; } }

/* Bottom sheet modal */
.habit-modal {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 0 0 calc(env(safe-area-inset-bottom) + 24px);
  z-index: 901;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh; overflow-y: auto;
}
.habit-modal--open { transform: translateY(0); }

.habit-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1.5px solid #F1F5F9;
  position: sticky; top: 0; background: #fff; z-index: 1;
  border-radius: 24px 24px 0 0;
}
.habit-modal-icon { font-size: 1.8rem; line-height: 1; }
.habit-modal-title {
  flex: 1;
  font-size: 1.1rem; font-weight: 900; color: #1E293B;
}
.habit-modal-close {
  background: #F1F5F9; border: none;
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #475569; cursor: pointer;
  transition: all 0.15s; flex-shrink: 0;
}
.habit-modal-close:hover { background: #E2E8F0; color: #1E293B; }

.habit-modal-source {
  font-size: 0.72rem; font-weight: 600;
  color: #94A3B8; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 10px 20px 4px;
}

.habit-modal-rows { padding: 8px 20px 8px; }
.hm-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #F1F5F9;
}
.hm-row:last-child { border-bottom: none; }
.hm-row-label { font-size: 0.85rem; color: #64748B; font-weight: 500; }
.hm-row-value {
  font-size: 0.9rem; font-weight: 800; color: #1E293B;
  text-align: right; max-width: 55%;
}
.impact-net {
  margin-top: 18px; padding: 14px; border-radius: 14px; text-align: center;
  background: #F8FAFF; border: 1.5px solid #E2E8F0;
}
.impact-net-num { font-size: 1.4rem; font-weight: 900; }
.impact-net-msg { font-size: 0.78rem; color: #64748B; margin-top: 4px; }

/* Life in Weeks canvas */
.weeks-canvas-wrap { 
  width: 100%; background: #F8FAFF; border-radius: 10px; padding: 10px; 
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.weeks-canvas-wrap canvas { 
  display: block; width: 100% !important; height: auto; 
}
.weeks-canvas-wrap canvas.grid-animating {
  animation: gridFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes gridFadeIn {
  0% { opacity: 0; transform: translateY(4px) scale(0.995); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.weeks-legend { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 0.72rem; font-weight: 600; color: #94A3B8; }
.wl-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.wl-past { background: #1E293B; }
.wl-healthy { background: #10B981; }
.wl-old { background: #EF4444; }

/* Life grid tab buttons */
.life-grid-tabs { display: flex; gap: 4px; flex-shrink: 0; }
.lgt-btn {
  padding: 5px 12px; border-radius: 20px; font-family: var(--font);
  font-size: 0.72rem; font-weight: 700; border: 1.5px solid #E2E8F0;
  background: transparent; color: #94A3B8; cursor: pointer; transition: all 0.18s;
}
.lgt-btn:hover { border-color: #CBD5E1; color: #64748B; }
.lgt-btn.lgt-active { background: #1E3A8A; color: #fff; border-color: #1E3A8A; }

/* Profile pills */
.profile-pills { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.profile-pill { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #F8FAFF; border-radius: 12px; border: 1px solid #E2E8F0; }
.pp-icon { font-size: 1.2rem; flex-shrink: 0; }
.pp-lbl { font-size: 0.68rem; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.5px; }
.pp-val { font-size: 0.9rem; font-weight: 700; color: #1E293B; }
.dash-edit-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  background: #EFF6FF; color: #1E3A8A;
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  border: none; cursor: pointer; transition: background 0.2s;
}
.dash-edit-btn:hover { background: #DBEAFE; }

/* Quote card */
.dash-quote-card {
  margin: 16px 16px 0;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  border-radius: 20px; padding: 28px 24px 24px; position: relative; overflow: hidden;
}
.dash-quote-mark {
  font-size: 5rem; line-height: 0.6; color: rgba(255,255,255,0.12);
  font-family: Georgia, serif; position: absolute; top: 12px; left: 16px;
}
.dash-quote-text { font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,0.9); font-weight: 500; font-style: italic; position: relative; }
.dash-quote-author { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 14px; font-weight: 700; letter-spacing: 0.5px; position: relative; }

/* App promo */
.dash-promo-card {
  margin: 16px 16px 0;
  background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05); border: 1.5px solid #F1F5F9;
}
.dash-promo-logo { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px; }
.dash-promo-title { font-size: 1rem; font-weight: 800; color: #1E293B; }
.dash-promo-sub { font-size: 0.78rem; color: #94A3B8; margin-top: 4px; margin-bottom: 14px; }
.dash-promo-btns { display: flex; gap: 10px; }
.dash-store-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 12px; border-radius: 12px;
  font-family: var(--font); font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  background: #1E3A8A; color: #fff;
}
.dash-store-btn:first-child { background: #000; }
.dash-store-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ═══════════════════════════════════ TAB PANES & BOTTOM TAB BAR ══════ */

/* Screen layout for the dashboard with tabs */
#screen-dashboard {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
.tab-panes-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.tab-pane {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-pane .dash-scroll {
  max-height: none;
  overflow: visible;
}

/* Placeholder screens for non-journey tabs */
.tab-placeholder-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 48px 32px 100px;
  text-align: center;
  background: #F8FAFF;
}
.tab-placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.tab-placeholder-title {
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.tab-placeholder-body {
  font-family: var(--font);
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.6;
  max-width: 280px;
}

/* ── Bottom Tab Bar ── */
.bottom-tab-bar {
  position: relative;
  z-index: 200;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 60%, #fff7ed 100%);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 10px 12px max(env(safe-area-inset-bottom), 14px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.07), 0 -1px 0 rgba(0,0,0,0.04);
  gap: 4px;
}

/* Regular tab button */
.btb-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  border-radius: 16px;
  position: relative;
}
.btb-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: color 0.2s, transform 0.2s;
}
.btb-icon svg {
  width: 22px;
  height: 22px;
}
.btb-label {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
}

/* Active top-pill indicator — orange */
.btb-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #F97316, #FB923C);
  box-shadow: 0 2px 8px rgba(249,115,22,0.50);
  opacity: 0;
  transition: opacity 0.2s;
}
.btb-tab.btb-active::before {
  opacity: 1;
}

/* Active icon + label — orange */
.btb-tab.btb-active .btb-icon {
  color: #F97316;
  transform: translateY(-2px);
}
.btb-tab.btb-active .btb-label {
  color: #F97316;
  font-weight: 700;
}

/* Center "My Journey" tab — warm orange orb */
.btb-center {
  flex: 1.2;
}
.btb-center-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  box-shadow: 0 4px 20px rgba(249,115,22,0.40), 0 0 0 4px rgba(249,115,22,0.10);
  color: #fff !important;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s !important;
}
.btb-center-icon svg { width: 26px; height: 26px; stroke: #fff; }
.btb-center.btb-active .btb-center-icon,
.btb-center:active .btb-center-icon {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(249,115,22,0.55), 0 0 0 6px rgba(249,115,22,0.14);
}
.btb-center .btb-label { color: #94A3B8 !important; }
.btb-center.btb-active .btb-label { color: #F97316 !important; font-weight: 800; }
/* Center tab doesn't use the pill indicator */
.btb-center::before { display: none !important; }

/* ── Bucket List Styling ── */
.bl-wrapper {
  padding: 24px 20px;
  background: linear-gradient(to bottom, #F8FAFF, #FFFFFF);
  min-height: 100%;
}
.bl-header { margin-bottom: 28px; }
.bl-title { font-size: 1.8rem; font-weight: 850; color: #1E293B; letter-spacing: -0.5px; }
.bl-subtitle { font-size: 0.9rem; color: #64748B; margin-top: 4px; }

.bl-section { margin-bottom: 32px; }
.bl-section-header { 
  display: flex; justify-content: space-between; align-items: baseline; 
  margin-bottom: 10px; 
}
.bl-section-title { font-size: 1.1rem; font-weight: 800; color: #1E293B; }
.bl-section-count { font-size: 0.72rem; font-weight: 700; color: #94A3B8; text-transform: uppercase; }

/* In Progress / Completed segmented toggle */
/* 3-tab view filter bar */
.bl-tab-bar {
  display: flex;
  gap: 4px;
  background: #F1F5F9;
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 20px;
}
.bl-tab-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #64748B;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  white-space: nowrap;
}
.bl-tab-btn:hover { color: #1E293B; }
.bl-tab-btn--active {
  background: #1E3A8A;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(30,58,138,0.25);
}

/* Completed card — gold left accent */
.bl-enrolled-card--done {
  border-left: 3px solid #F59E0B !important;
  background: #FFFBEB !important;
}

.bl-my-list-empty {
  background: #fff; border: 2px dashed #E2E8F0; border-radius: 18px;
  padding: 30px 20px; text-align: center;
}
.bl-empty-msg { font-size: 0.82rem; color: #94A3B8; line-height: 1.5; }

/* Guest sign-in CTA inside My List */
.bl-guest-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}
.bl-guest-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.5;
}
.bl-guest-msg {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.55;
  max-width: 240px;
}
.bl-guest-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1E3A8A;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(30,58,138,0.25);
  margin-top: 4px;
}
.bl-guest-signin-btn:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,58,138,0.35);
}
.bl-guest-signin-btn:active { transform: scale(0.97); }

/* Category filter bar */
.bl-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 14px;
  margin-bottom: 4px;
}

.bl-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #475569;
  flex-shrink: 0;
}
.bl-cat-pill:hover {
  border-color: #F97316;
  color: #F97316;
}
.bl-cat-pill.active {
  background: #F97316;
  border-color: #F97316;
  color: #fff;
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.bl-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0,0,0,0.08);
}
.bl-cat-pill.active .bl-cat-count {
  background: rgba(255,255,255,0.3);
}

/* Clickable achievement ring cards */
.ach-ring-card--clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ach-ring-card--clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.ach-ring-card--clickable:active {
  transform: scale(0.97);
}

.bl-grid { display: flex; flex-direction: column; gap: 14px; }

.bl-item-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
  border: 1.5px solid #F1F5F9;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.bl-item-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
}
.bl-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #E0E7FF;
}
.bl-item-card:hover::before { opacity: 1; }
.bl-item-card:active { transform: scale(0.98); }

.bl-item-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #EEF2FF 0%, #F1F5F9 100%);
  box-shadow: 0 2px 8px rgba(99,102,241,0.1);
}
.bl-item-body { flex: 1; min-width: 0; }
.bl-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.3;
}
.bl-item-meta {
  font-size: 0.73rem;
  color: #94A3B8;
  margin-top: 3px;
  font-weight: 500;
  line-height: 1.4;
}

.bl-item-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  color: #94A3B8;
  flex-shrink: 0;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.bl-item-card:hover .bl-item-action {
  background: #1E3A8A;
  color: #fff;
  border-color: #1E3A8A;
  box-shadow: 0 4px 12px rgba(30,58,138,0.3);
}

.bl-item-card--joined {
  border-color: #A7F3D0 !important;
  border-left: 3px solid #10B981 !important;
  background: linear-gradient(to right, #F0FDF9, #fff) !important;
}

.bl-loading { text-align: center; color: #94A3B8; padding: 20px; font-size: 0.85rem; }

/* Category Tags (Optional for later) */
/* Tag row wrapper — holds one or more category pills */
.bl-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.bl-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #ECFDF5;
  color: #10B981;
}

/* Cycle through colors based on nth-child so different categories stand out */
.bl-tag-row .bl-tag:nth-child(1) { background: #ECFDF5; color: #10B981; }
.bl-tag-row .bl-tag:nth-child(2) { background: #EEF2FF; color: #6366F1; }
.bl-tag-row .bl-tag:nth-child(3) { background: #FFF7ED; color: #F97316; }
.bl-tag-row .bl-tag:nth-child(4) { background: #FDF2F8; color: #EC4899; }
.bl-tag-row .bl-tag:nth-child(5) { background: #F0FDF4; color: #16A34A; }
.bl-tag-row .bl-tag:nth-child(n+6) { background: #F8FAFF; color: #3B82F6; }

.tag-health { background: #ECFDF5; color: #10B981; }
.tag-detox  { background: #FFF7ED; color: #F97316; }
.tag-mind   { background: #EEF2FF; color: #6366F1; }
/* Mission categories */
.tag-discipline   { background: #FEF2F2; color: #EF4444; }
.tag-solitude     { background: #F0F9FF; color: #0EA5E9; }
.tag-mindfulness  { background: #F0FDF4; color: #22C55E; }
.tag-clarity      { background: #FEFCE8; color: #EAB308; }
.tag-nourishment  { background: #ECFDF5; color: #10B981; }
.tag-connection   { background: #FDF4FF; color: #A855F7; }
.tag-gratitude    { background: #FFF7ED; color: #F97316; }
.tag-simplicity   { background: #F8FAFC; color: #64748B; }

/* ══════════════════════════════════ HEADER AVATAR ══ */
.header-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; padding: 0;
  transition: transform 0.18s, box-shadow 0.18s;
  margin-left: auto;
  flex-shrink: 0;
}
.header-avatar-btn:active { transform: scale(0.93); }
.header-avatar-btn svg { width: 20px; height: 20px; stroke: #fff; }
#header-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
/* On white header backgrounds show dark icon */
.dash-header .header-avatar-btn {
  background: rgba(30,58,138,0.08);
  border-color: rgba(30,58,138,0.15);
}
.dash-header .header-avatar-btn svg { stroke: #1E3A8A; }

/* ══════════════════════════════════ PROFILE SCREEN ══ */
#screen-profile { background: #F8FAFF; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.prof-hero { display: flex; align-items: center; gap: 14px; padding: 24px 20px; background: #fff; margin-bottom: 16px; border-bottom: 1px solid #E2E8F0; }
.prof-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #EFF6FF; flex-shrink: 0; }
.prof-info { flex: 1; }
.prof-name { font-size: 1.1rem; font-weight: 800; color: #0F172A; }
.prof-email { font-size: 0.85rem; color: #64748B; margin-top: 2px; }
.prof-signout-btn { padding: 8px 14px; border-radius: 12px; border: 1.5px solid #E2E8F0; background: #fff; font-family: var(--font); font-size: 0.8rem; font-weight: 700; color: #EF4444; cursor: pointer; transition: background 0.18s; }
.prof-signout-btn:hover { background: #FFF5F5; }

.prof-signin-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 20px; background: #fff; margin-bottom: 16px; border-bottom: 1px solid #E2E8F0; }
.prof-signin-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg,#EFF6FF,#DBEAFE); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 32px; color: #1E3A8A; }
.prof-signin-title { font-size: 1.15rem; font-weight: 800; color: #0F172A; margin-bottom: 8px; }
.prof-signin-body { font-size: 0.88rem; color: #64748B; line-height: 1.55; max-width: 260px; margin-bottom: 20px; }
.prof-google-btn { width: 100%; max-width: 280px; padding: 14px; border-radius: 14px; border: 1.5px solid #E2E8F0; background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font); font-size: 0.95rem; font-weight: 700; color: #1A1A1A; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.18s, transform 0.18s; }
.prof-google-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-1px); }

/* Edit Form */
.prof-wrapper { flex: 1; padding-bottom: 100px; display: flex; flex-direction: column; }
.prof-form-wrap { padding: 0 20px 20px; }
.prof-card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 2px 20px rgba(0,0,0,0.03); border: 1.5px solid #F1F5F9; margin-bottom: 16px; display: flex; flex-direction: column; gap: 16px; }

/* Accordion */
.prof-accordion { margin-bottom: 8px; }
.prof-accordion-header {
  width: 100%; padding: 14px 2px 10px; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; cursor: pointer; text-align: left;
}
.prof-accordion-title {
  font-size: 0.8rem; font-weight: 800; color: #94A3B8; text-transform: uppercase; letter-spacing: 1px;
}
.prof-accordion-icon {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: #94A3B8; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prof-accordion-icon svg { width: 18px; height: 18px; }

/* Grid transition trick for smooth height animation */
.prof-accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prof-accordion-inner {
  overflow: hidden;
}
/* Override prof-card margin inside accordion */
.prof-accordion-inner .prof-card { margin-top: 4px; margin-bottom: 8px; }

/* Open state */
.prof-accordion.open .prof-accordion-body { grid-template-rows: 1fr; }
.prof-accordion.open .prof-accordion-icon { transform: rotate(180deg); color: #1E3A8A; }
.prof-accordion.open .prof-accordion-title { color: #475569; }

.prof-field { display: flex; flex-direction: column; gap: 8px; }
.prof-label { font-size: 0.85rem; font-weight: 700; color: #475569; }
.prof-input, .prof-select { width: 100%; padding: 14px 16px; background: #F8FAFF; border: 1.5px solid #E2E8F0; border-radius: 12px; font-family: var(--font); font-size: 0.95rem; font-weight: 600; color: #1E293B; transition: border-color 0.2s; outline: none; }
.prof-input:focus, .prof-select:focus { border-color: #3B82F6; background: #fff; }
.prof-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }

/* Range Slider with value display */
.prof-range-header { display: flex; justify-content: space-between; align-items: baseline; }
.prof-range-val { font-size: 1.1rem; font-weight: 800; color: #F97316; }
.prof-range { width: 100%; height: 6px; appearance: none; background: #E2E8F0; border-radius: 99px; margin-top: 4px; margin-bottom: 4px; }
.prof-range::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #F97316; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(249,115,22,0.3); }

/* Save bottom fixed */
.prof-save-container { position: sticky; bottom: 0; left: 0; right: 0; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); border-top: 1px solid #E2E8F0; z-index: 10; margin-top: auto; }
.prof-save-btn { width: 100%; padding: 16px; border-radius: 16px; background: #1E3A8A; color: #fff; font-family: var(--font); font-size: 1.05rem; font-weight: 800; border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(30,58,138,0.3); }
.prof-save-btn:hover { background: #1D4ED8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,58,138,0.4); }
.prof-save-btn:active { transform: scale(0.98); }

/* ── Bucket Item Screen Styling ── */
.bi-wrapper {
  padding: 24px 20px 40px;
  background: white;
  min-height: 100%;
}
.bi-hero { text-align: center; margin-bottom: 32px; padding-top: 10px; }
.bi-hero-icon { font-size: 3.5rem; margin-bottom: 16px; }
.bi-title { font-size: 1.8rem; font-weight: 850; color: #1E293B; letter-spacing: -0.5px; }
.bi-desc { font-size: 0.95rem; color: #64748B; margin-top: 8px; line-height: 1.6; }

.bi-section { margin-bottom: 28px; }
.bi-section-title { font-size: 1rem; font-weight: 800; color: #1E293B; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.bi-guide-grid { display: flex; flex-direction: column; gap: 16px; }
.bi-card { padding: 18px; border-radius: 20px; border: 1.5px solid #F1F5F9; }
.bi-card-label { font-size: 0.85rem; font-weight: 850; margin-bottom: 10px; }

.bi-do-card { background: #F0FDFA; border-color: #CCFBF1; }
.bi-do-card .bi-card-label { color: #0F766E; }
.bi-dont-card { background: #FEF2F2; border-color: #FEE2E2; }
.bi-dont-card .bi-card-label { color: #B91C1C; }

.bi-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bi-list li { font-size: 0.88rem; line-height: 1.5; position: relative; padding-left: 14px; }
.bi-list li::before { content: "•"; position: absolute; left: 0; color: inherit; opacity: 0.5; }
.bi-do-card li { color: #134E48; }
.bi-dont-card li { color: #7F1D1D; }

.bi-community-card {
  background: #F8FAFF; border-radius: 20px; padding: 20px; 
  border: 1.5px solid #E2E8F0;
  display: flex; align-items: center; justify-content: space-around;
}
.bi-comm-stat { text-align: center; flex: 1; }
.bi-comm-num { font-size: 1.4rem; font-weight: 900; color: #1E3A8A; }
.bi-comm-lbl { font-size: 0.7rem; font-weight: 700; color: #94A3B8; text-transform: uppercase; margin-top: 2px; }
.bi-comm-divider { width: 1px; height: 32px; background: #E2E8F0; }

.bi-footer {
  position: sticky; bottom: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 16px 20px max(16px, env(safe-area-inset-bottom) + 16px);
  border-top: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  margin-top: auto;
}
.bi-cta-btn {
  width: 100%; height: 56px; border-radius: 18px;
  background: #1E3A8A; color: white;
  font-family: var(--font); font-size: 1rem; font-weight: 800;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(30,58,138,0.25);
}
.bi-cta-btn:active { transform: scale(0.97); background: #1e3a8a; }
.bi-cta-btn--joined { background: #10B981; box-shadow: 0 4px 15px rgba(16,185,129,0.2); }

/* Achievements Card */
.ach-guest-cta { text-align: center; padding: 12px 10px; }
.ach-guest-cta p { font-size: 0.85rem; color: #64748B; margin-bottom: 12px; line-height: 1.5; }
.ach-login-btn { 
  width: 100%; padding: 12px; border-radius: 12px; border: none; 
  background: #F1F5F9; color: #1E3A8A; font-weight: 800; font-family: var(--font);
  cursor: pointer; transition: all 0.2s;
}
.ach-login-btn:hover { background: #E2E8F0; }


.ach-stat-item { background: #F8FAFF; border-radius: 16px; padding: 16px; text-align: center; border: 1px solid #E2E8F0; }
.ach-stat-num { font-size: 1.8rem; font-weight: 900; color: #1E3A8A; }
.ach-stat-lbl { font-size: 0.75rem; font-weight: 700; color: #94A3B8; text-transform: uppercase; margin-top: 4px; }

/* View group button in bucket item */
.bi-view-group-btn {
  width: 100%; margin-top: 14px; padding: 12px; border-radius: 12px;
  background: white; border: 1.5px solid #E2E8F0; color: #475569;
  font-family: var(--font); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.bi-view-group-btn:hover { background: #F8FAFF; border-color: #CBD5E1; }

/* Bucket Group Screen */
.bg-scroll { flex: 1; overflow-y: auto; padding: 0 0 40px; }
.bg-hero { background: #FAFAFB; padding: 40px 24px; text-align: center; border-bottom: 1px solid #F1F5F9; }
.bg-hero-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.bg-title { font-size: 1.5rem; font-weight: 900; color: #1E293B; margin-bottom: 4px; }
.bg-subtitle { font-size: 0.88rem; color: #64748B; font-weight: 500; }

.bg-list { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bg-member-card { 
  display: flex; align-items: center; gap: 12px; padding: 12px; 
  background: white; border-radius: 14px; border: 1px solid #F1F5F9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.bg-member-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #F1F5F9; }
.bg-member-info { flex: 1; }
.bg-member-name { font-size: 0.95rem; font-weight: 700; color: #1E293B; }
.bg-member-joined { font-size: 0.75rem; color: #94A3B8; }

/* Admin Dashboard */
.prof-admin-btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px; border: none;
  background: #EFF6FF; color: #1E40AF; font-family: var(--font);
  font-weight: 800; cursor: pointer; transition: all 0.2s;
}
.prof-admin-btn:hover { background: #DBEAFE; transform: translateY(-1px); }

.admin-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.admin-add-toggle {
  background: #1E3A8A; color: white; border: none; padding: 6px 14px;
  border-radius: 12px; font-weight: 800; font-family: var(--font); cursor: pointer;
}

#admin-form-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15,23,42,0.8); backdrop-filter: blur(8px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-form-card {
  width: 100%; max-width: 440px; background: white; border-radius: 24px;
  padding: 24px; max-height: 90vh; overflow-y: auto;
}
.admin-form-card h3 { font-size: 1.25rem; font-weight: 800; color: #1E293B; margin-bottom: 20px; }
.admin-form-card input, .admin-form-card textarea {
  width: 100%; margin-bottom: 12px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid #F1F5F9; background: #FAFAFB; font-family: var(--font);
  font-size: 0.95rem;
}
.admin-form-card input:focus, .admin-form-card textarea:focus { border-color: #1E3A8A; outline: none; background: white; }
.admin-form-sublabel { font-size: 0.75rem; font-weight: 800; color: #64748B; padding: 4px 0; }
.admin-form-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.admin-cancel-btn { padding: 14px; border: 1.5px solid #E2E8F0; border-radius: 14px; background: white; font-weight: 700; cursor: pointer; }
.admin-save-btn { padding: 14px; background: #1E3A8A; color: white; border: none; border-radius: 14px; font-weight: 800; cursor: pointer; }

.admin-list-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.admin-item-row {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: white; border-radius: 16px; border: 1px solid #E2E8F0;
}
.admin-item-icon { font-size: 1.5rem; }
.admin-item-body { flex: 1; }
.admin-item-title { font-weight: 700; color: #1E293B; }
.admin-item-actions { display: flex; gap: 8px; }
.admin-edit-btn, .admin-del-btn {
  padding: 8px; border-radius: 10px; border: none; cursor: pointer; font-family: var(--font); font-weight: 700; font-size: 0.8rem;
}
.admin-edit-btn { background: #F1F5F9; color: #475569; }
.admin-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.admin-cancel-btn:hover { background: #F8FAFC; }
.admin-save-btn:not(:disabled):hover { background: #1e40af; transform: translateY(-1px); }
.admin-del-btn:hover { background: #FEE2E2; }
.admin-edit-btn:hover { background: #E2E8F0; }

/* Admin form overlay animation */
#admin-form-overlay { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.admin-form-card { animation: slideUp 0.2s cubic-bezier(0.4,0,0.2,1); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ══════════════════════════════════════════════════════════════════════
   ACHIEVEMENTS REDESIGN
══════════════════════════════════════════════════════════════════════ */
.ach-card { overflow: hidden; padding-bottom: 4px; }

/* Blue gradient variant — same as quote card */
.ach-card--blue {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 24px rgba(30,58,138,0.3) !important;
}
.ach-card-title--white { color: #fff !important; }
.ach-card-sub--white   { color: rgba(255,255,255,0.65) !important; }
.ach-guest-msg--white  { color: rgba(255,255,255,0.85) !important; }


.ach-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ach-card-icon-wrap {
  font-size: 1.5rem;
  width: 44px; height: 44px;
  background: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* Guest state */
.ach-guest-cta {
  text-align: center;
  padding: 12px 4px 4px;
}
.ach-guest-icon { font-size: 2.2rem; margin-bottom: 10px; }
.ach-guest-msg {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 16px;
  line-height: 1.6;
}
.ach-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1E3A8A;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.ach-login-btn:hover { background: #1e40af; transform: translateY(-1px); }
.ach-login-btn--full {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 0.95rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(30,58,138,0.25);
  animation: btn-breathe 2.8s ease-in-out infinite;
}
/* Gray gradient variant — pops on blue background */
.ach-login-btn--gray {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  color: #1E293B;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  letter-spacing: 0.01em;
  transition: all 0.2s;
}
.ach-login-btn--gray:hover {
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}
.ach-login-btn--gray:active { transform: translateY(0); }
/* Pure white variant */
.ach-login-btn--white {
  width: 100%;
  justify-content: center;
  background: #ffffff;
  color: #1E293B;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  letter-spacing: 0.01em;
  transition: all 0.2s;
}
.ach-login-btn--white:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.ach-login-btn--white:active { transform: translateY(0); }
@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 4px 16px rgba(30,58,138,0.25); }
  50%       { box-shadow: 0 6px 24px rgba(30,58,138,0.45); }
}

/* Logged-in ring cards */
.ach-stats-grid {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

.ach-ring-card {
  flex: 1;
  border-radius: 18px;
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ach-ring-card--blue {
  background: linear-gradient(145deg, #D97706 0%, #F59E0B 100%);
}
.ach-ring-card--green {
  background: linear-gradient(145deg, #065F46 0%, #10B981 100%);
}

/* Ring wrap holds SVG + number overlay */
.ach-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ach-ring-svg {
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 80px;
}

.ach-ring-num {
  position: relative;
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.ach-ring-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ach-ring-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  margin-top: -2px;
}

/* CTA label at bottom of each ring card */
.ach-ring-cta {
  margin-top: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.5);
  transition: color 0.18s;
}
.ach-ring-card--clickable:hover .ach-ring-cta {
  color: rgba(255,255,255,0.95);
}

/* Motivation strip below the ring grid */
.ach-motivation {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.ach-motivation-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0 0 12px;
}
.ach-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.ach-explore-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}
.ach-explore-btn span { transition: transform 0.18s; }
.ach-explore-btn:hover span { transform: translateX(3px); }

.bl-my-enrolled-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.bl-enrolled-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #E8EEFB;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.bl-enrolled-card:hover {
  background: #F5F8FF;
  border-color: #C7D7FD;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}

.bl-enrolled-icon {
  font-size: 1.7rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #EEF2FF, #F1F5F9);
  border-radius: 14px;
}

.bl-enrolled-body { flex: 1; min-width: 0; }
.bl-enrolled-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bl-enrolled-meta { font-size: 0.74rem; color: #94A3B8; margin-top: 2px; }

.bl-enrolled-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  background: #D1FAE5;
  padding: 5px 11px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.bl-enrolled-badge--done {
  color: #92400E;
  background: #FEF3C7;
}

.bl-item-card--joined {
  border-color: #A7F3D0 !important;
  border-left: 3px solid #10B981 !important;
  background: linear-gradient(to right, #F0FDF9, #fff) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   BUCKET ITEM SCREEN — Full Redesign
══════════════════════════════════════════════════════════════════════ */
.bi-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.bi-back-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: #F1F5F9;
  border-radius: 12px; cursor: pointer;
  transition: background 0.2s;
  color: #1E293B;
}
.bi-back-btn:hover { background: #E2E8F0; }

.bi-topbar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1E293B;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bi-scroll-wrap {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: calc(100vh - 57px - 72px);
}

/* Hero banner */
.bi-hero-banner {
  background: linear-gradient(160deg, #0F172A 0%, #1E3A8A 60%, #2563EB 100%);
  padding: 32px 20px 28px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.bi-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(59,130,246,0.3) 0%, transparent 60%);
}

.bi-hero-icon-lg {
  font-size: 3.5rem;
  margin-bottom: 12px;
  position: relative;
}

.bi-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
  position: relative;
}

.bi-hero-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto 20px;
  position: relative;
}

.bi-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 12px 16px;
  position: relative;
}

.bi-stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.bi-stat-badge-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}
.bi-stat-badge-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bi-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  margin: 0 8px;
}

.bi-group-link {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  white-space: nowrap;
}
.bi-group-link:hover { background: rgba(255,255,255,0.28); }

/* Content sections */
.bi-content-section {
  padding: 20px 16px 0;
}

/* Guide cards */
.bi-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.bi-guide-card {
  border-radius: 16px;
  padding: 14px;
}

.bi-guide-do {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
}
.bi-guide-dont {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
}

.bi-guide-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.bi-guide-do .bi-guide-header { color: #065F46; }
.bi-guide-dont .bi-guide-header { color: #9F1239; }

.bi-guide-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bi-guide-list li {
  font-size: 0.78rem;
  line-height: 1.45;
}
.bi-guide-do .bi-guide-list li { color: #065F46; }
.bi-guide-dont .bi-guide-list li { color: #9F1239; }

.bi-guide-list li::before {
  content: '· ';
  font-weight: 900;
}

/* Community section labels */
.bi-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin-bottom: 6px;
}

.bi-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 4px;
}

.bi-section-sub {
  font-size: 0.82rem;
  color: #64748B;
  margin-bottom: 14px;
  line-height: 1.55;
}

/* Comment compose box */
.bi-comment-compose {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.bi-comment-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  color: #1E293B;
  resize: none;
  line-height: 1.55;
}
.bi-comment-input:focus { outline: none; }
.bi-comment-input::placeholder { color: #94A3B8; }

.bi-comment-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid #E2E8F0;
  background: #fff;
}

.bi-comment-hint {
  font-size: 0.72rem;
  color: #94A3B8;
}

.bi-comment-submit {
  padding: 8px 20px;
  background: #1E3A8A;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.bi-comment-submit:hover:not(:disabled) { background: #1e40af; }
.bi-comment-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Comment cards */
.bi-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.bi-comment-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.bi-comment-avatar-wrap {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.bi-comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.bi-comment-initials {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  position: absolute;
  top: 0; left: 0;
}

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

.bi-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bi-comment-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
}

.bi-comment-date {
  font-size: 0.7rem;
  color: #94A3B8;
}

.bi-comment-text {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
}

.bi-comment-loading, .bi-no-comments {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Join footer */
.bi-join-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #F1F5F9;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
}
.bi-join-footer .bi-join-btn,
.bi-join-footer .bi-joined-btn { flex: 1; }

/* Share icon button in bucket item footer */
.bi-share-btn {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  gap: 4px;
}
.bi-share-btn:hover { border-color: #F97316; color: #F97316; transform: translateY(-2px); }
.bi-share-btn:active { transform: scale(0.94); }
.bi-share-btn.share-copied { border-color: #10B981; color: #10B981; background: #ECFDF5; }

/* Dashboard share strip */
.dash-share-strip {
  display: flex;
  justify-content: center;
  padding: 4px 0 16px;
}
.dash-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(249,115,22,0.35);
  background: rgba(249,115,22,0.06);
  color: #F97316;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dash-share-btn:hover {
  background: rgba(249,115,22,0.12);
  border-color: #F97316;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(249,115,22,0.2);
}
.dash-share-btn:active { transform: scale(0.97); }
.dash-share-btn.share-copied {
  border-color: #10B981;
  color: #10B981;
  background: rgba(16,185,129,0.08);
}


.bi-join-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(30,58,138,0.3);
}
.bi-join-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(30,58,138,0.4); }

/* Action row: Mark Complete + Leave */
.bi-action-row {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.bi-complete-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.bi-complete-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.5); }
.bi-complete-btn:active { transform: scale(0.97); }

.bi-leave-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 14px;
  background: #fff;
  color: #EF4444;
  border: 1.5px solid #FCA5A5;
  border-radius: 16px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.bi-leave-btn:hover { background: #FEF2F2; border-color: #EF4444; }
.bi-leave-btn:active { transform: scale(0.96); }

/* Completed badge */
.bi-completed-badge {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 0;
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  border: 2px solid #6EE7B7;
  border-radius: 16px;
  overflow: hidden;
}
.bi-completed-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  gap: 12px;
}
.bi-completed-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  color: #065F46;
}
.bi-reenroll-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid #059669;
  background: transparent;
  color: #065F46;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
}
.bi-reenroll-btn:hover {
  background: #059669;
  color: #fff;
}

/* Plain empty state for 'All' tab — no box */
.bl-empty-plain {
  font-size: 0.82rem;
  color: #94A3B8;
  padding: 8px 0 16px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   ADMIN FORM — IMAGE UPLOAD + CATEGORY CHIPS
══════════════════════════════════════════════════════════════════════ */

.admin-image-upload {
  position: relative;
  width: 100%;
  height: 140px;
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  background: #F8FAFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.admin-image-upload:hover { border-color: #3B82F6; background: #EFF6FF; }

.admin-image-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}
.admin-image-upload-placeholder svg { stroke: #CBD5E1; }

#admin-image-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Category chips — 3 per row */
.admin-category-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.admin-chip {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFF;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-chip:hover { border-color: #93C5FD; background: #EFF6FF; color: #1D4ED8; }
.admin-chip.selected {
  background: #1E3A8A;
  border-color: #1E3A8A;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,58,138,0.25);
}

/* New category row */
.admin-new-cat-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}
.admin-new-cat-row input { flex: 1; margin-bottom: 0 !important; }
.admin-add-cat-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: #1E3A8A;
  color: #fff;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.admin-add-cat-btn:hover { background: #1e40af; }

/* Admin list image thumbnail */
.admin-item-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   BUCKET LIST CARDS — Image icon variants
══════════════════════════════════════════════════════════════════════ */

.bl-item-img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bl-enrolled-img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   PWA INSTALL BANNER
══════════════════════════════════════════════════════════════════════ */
#pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 9990;
  padding: 0 0 env(safe-area-inset-bottom, 0);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
#pwa-install-banner.pwa-banner-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.pwa-banner-card {
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.14);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0));
}
.pwa-banner-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.pwa-banner-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.pwa-banner-text { flex: 1; }
.pwa-banner-title {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}
.pwa-banner-sub {
  font-family: var(--font);
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 3px;
}
.pwa-banner-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pwa-banner-actions { display: flex; flex-direction: column; gap: 10px; }
.pwa-install-btn {
  padding: 14px; border-radius: 16px; border: none;
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  color: #fff; font-family: var(--font); font-size: 0.95rem;
  font-weight: 700; cursor: pointer; letter-spacing: 0.02em;
}
.pwa-later-btn {
  padding: 12px; border-radius: 16px; border: none;
  background: transparent; color: #94A3B8;
  font-family: var(--font); font-size: 0.85rem; cursor: pointer;
}
.pwa-ios-steps { display: flex; flex-direction: column; gap: 12px; }
.pwa-ios-step {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--font); font-size: 0.85rem; color: #334155; line-height: 1.5;
}
.pwa-ios-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #1E3A8A; color: #fff; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.pwa-ios-share-icon {
  width: 16px; height: 16px; vertical-align: middle;
  margin: 0 2px; stroke: #1E3A8A;
}
#prof-install-btn-wrap { margin: 16px 14px 0; }
.prof-install-action-btn {
  width: 100%; padding: 14px; border-radius: 16px;
  border: 2px solid #1E3A8A; background: transparent; color: #1E3A8A;
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: all 0.18s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.prof-install-action-btn:hover { background: #1E3A8A; color: #fff; }
.prof-install-action-btn:disabled { border-color: #10B981; color: #10B981; cursor: default; }
