/* OnePlace View Styles — Faithful to designs */

/* ==================== 1. HOME SCREEN ==================== */
.home-screen {
  padding-bottom: 24px;
}

/* Today's reminders carousel */
.carousel-wrap {
  margin: var(--space-3) calc(var(--space-5) * -1) 0;
  padding: 0 var(--space-5);
  overflow-x: auto;
  display: flex;
  gap: var(--space-3);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-wrap::-webkit-scrollbar { display: none; }

/* Empty / no-data reminder carousel card */
.reminder-empty-card {
  flex: 0 0 240px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  text-align: center;
}
.reminder-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint-mint);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.reminder-empty-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.reminder-carousel-card {
  flex: 0 0 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.reminder-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.reminder-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint-blue);
  color: var(--secondary);
  display: grid;
  place-items: center;
}
.reminder-icon-circle.pink {
  background: var(--tint-red);
  color: var(--danger);
}
.time-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--tint-blue);
  color: var(--secondary);
  font-size: var(--text-xs);
  font-weight: 700;
}
.reminder-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reminder-card-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}
.btn-complete-pill {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.btn-complete-pill:active { transform: scale(0.97); }

/* Scam Shield Card (Home) */
.shield-card-home {
  margin-top: var(--space-5);
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(14, 107, 90, 0.25);
  position: relative;
  overflow: hidden;
}
.shield-card-home-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}
.shield-card-home-header svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}
.shield-card-home-body {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  max-width: 290px;
}
.btn-scan-link-now {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.btn-scan-link-now:active { transform: scale(0.98); }
.btn-scan-link-now svg { width: 18px; height: 18px; }

/* Recent Vault Items Grid (Home) */
.vault-grid-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.vault-card-home {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-fast);
}
.vault-card-home:active { transform: scale(0.98); }
.vault-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint-blue);
  color: var(--secondary);
  display: grid;
  place-items: center;
}
.vault-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vault-card-date {
  font-size: 12px;
  color: var(--muted);
}
.vault-empty-card {
  border-style: dashed;
  background: var(--surface);
}
.vault-empty-card .vault-card-icon {
  background: var(--tint-mint);
  color: var(--primary);
}

/* Quick Actions (Home) */
.quick-actions-section {
  margin-top: var(--space-5);
}
.quick-actions-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.quick-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 0;
}
.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.quick-action-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--tint-blue);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.quick-action-item:active .quick-action-circle { transform: scale(0.92); }
.quick-action-circle svg { width: 22px; height: 22px; }
.quick-action-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ==================== 2. ONBOARDING SCREEN ==================== */
.onboarding-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  background: var(--background);
  text-align: center;
}
.onboarding-top-bar {
  display: flex;
  justify-content: flex-end;
}
.onboarding-illustration-wrap {
  margin: 20px auto;
  position: relative;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
}
.onboarding-glow-circle {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 165, 255, 0.12) 0%, rgba(14, 107, 90, 0.05) 70%, transparent 100%);
}
.onboarding-cards-art {
  position: relative;
  width: 160px;
  height: 180px;
}
.onboarding-card-green {
  position: absolute;
  left: 10px;
  top: 0;
  width: 90px;
  height: 120px;
  background: var(--primary);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(14, 107, 90, 0.3);
}
.onboarding-card-blue {
  position: absolute;
  right: 10px;
  top: 40px;
  width: 80px;
  height: 110px;
  background: var(--secondary);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(78, 165, 255, 0.35);
}
.onboarding-card-base {
  position: absolute;
  bottom: 45px;
  left: 20px;
  right: 20px;
  height: 12px;
  background: var(--text-secondary);
  border-radius: 6px;
}
.onboarding-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.onboarding-title-highlight {
  color: var(--primary);
  display: block;
}
.onboarding-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
}
.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone);
  transition: all var(--duration-normal) var(--ease);
}
.onboarding-dot.active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
}
.onboarding-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto;
}
.onboarding-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== 3. PROFILE & SETTINGS ==================== */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) 0 var(--space-2);
}
.profile-avatar-large-wrap {
  position: relative;
  width: 104px;
  height: 104px;
}
.profile-avatar-large {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.profile-avatar-status-dot {
  position: absolute;
  bottom: 2px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
}
.profile-hero-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 12px;
}
.profile-hero-joined {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.profile-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--space-5);
  margin-bottom: 2px;
  padding-left: 4px;
}
.btn-logout-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  margin-top: var(--space-5);
  background: none;
  border: none;
  color: var(--danger);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity var(--duration-fast);
}
.btn-logout-row:active { opacity: 0.7; }
.btn-logout-row svg { width: 20px; height: 20px; stroke: var(--danger); }
.app-version-footer {
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}

/* ==================== 4. REMINDERS SCREEN ==================== */
.reminder-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.reminder-list-item:active { transform: scale(0.98); }
.reminder-item-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 3px;
}
.reminder-item-due {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.reminder-item-due.due-today {
  color: var(--danger);
  font-weight: 600;
}
.reminder-item-due svg { width: 14px; height: 14px; }
.reminder-item-chevron {
  color: var(--muted);
  font-size: 18px;
  margin-left: auto;
}

.all-caught-up-badge {
  text-align: center;
  padding: 32px 16px;
}
.caught-up-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--tint-blue);
  display: grid;
  place-items: center;
  color: var(--secondary);
  margin: 0 auto 16px;
}
.caught-up-circle svg { width: 36px; height: 36px; stroke: var(--secondary); }
.caught-up-text {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

/* ==================== 5. VAULT SCREEN ==================== */
.cat-pill-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: var(--space-2) 0 var(--space-4);
  scrollbar-width: none;
}
.cat-pill-grid::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast);
}
.cat-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
  cursor: pointer;
}
.doc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint-blue);
  color: var(--secondary);
  display: grid;
  place-items: center;
  flex: none;
}
.doc-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.doc-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ==================== 6. SCAM SHIELD HUB & SCANNER ==================== */
.shield-hub-hero {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), #094a3e);
  color: #ffffff;
  text-align: center;
  margin-top: var(--space-3);
  box-shadow: 0 10px 24px rgba(14, 107, 90, 0.2);
}
.shield-hub-hero h2 { color: #ffffff; font-size: 22px; font-weight: 800; }
.shield-hub-hero p { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin-top: 6px; }

.stat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: var(--space-4);
}
.stat-card-3 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 10px;
  text-align: center;
}
.stat-card-3 strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-card-3 span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  display: block;
}

/* ==================== 7. AUTH / LOGIN ==================== */
.auth-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--background);
}
.auth-header {
  text-align: center;
  margin-bottom: var(--space-5);
}
.auth-logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-3);
}
.auth-logo-lockup img {
  width: 44px;
  height: 44px;
}
.auth-app-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}
.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.social-login-btn:hover { background: var(--sand); }
.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-4) 0;
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.social-divider::before, .social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}


/* sessions */
.sessions-card { margin-top: var(--space-4); }
.session-item { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; }
.session-item + .session-item { border-top: 1px solid var(--line); }
.session-info { display: flex; flex-direction: column; gap: var(--space-1); }
.session-device { font-weight: 600; font-size: var(--text-base); color: var(--ink); }
.session-meta { font-size: var(--text-sm); color: var(--muted); }
.session-current { font-size: var(--text-xs); font-weight: 600; color: var(--teal); background: var(--tint-mint); padding: 2px 8px; border-radius: var(--radius-pill); width: fit-content; }

/* trusted contact */
.trusted-card { margin-top: var(--space-4); }
.trusted-info { display: flex; flex-direction: column; gap: var(--space-1); }
.trusted-name { font-weight: 600; font-size: var(--text-base); color: var(--ink); }
.trusted-contact { font-size: var(--text-sm); color: var(--muted); }

/* data actions */
.data-actions { margin-top: var(--space-4); }
.data-action { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; width: 100%; text-align: left; background: none; border: none; cursor: pointer; }
.data-action + .data-action { border-top: 1px solid var(--line); }
.data-action.danger .data-label { color: var(--danger); }
.data-icon { flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--tint-mint); color: var(--teal); display: grid; place-items: center; }
.data-action.danger .data-icon { background: var(--tint-red); color: var(--danger); }
.data-label { font-weight: 600; font-size: var(--text-base); color: var(--ink); }
.data-desc { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-1); display: block; }

/* onboarding welcome sheet */
.welcome-sheet { padding: var(--space-2) 0; }
.welcome-step { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; }
.welcome-step-text { font-size: 15px; line-height: 1.55; color: var(--ink); }

/* ---- product polish phase ---- */

/* icon-only button (bell, etc.) — consistent 44px target */
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: none; cursor: pointer; color: var(--ink);
  transition: background var(--duration-fast);
}
.icon-btn:hover { background: var(--sand); }
.icon-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* dashboard shield CTA — the single primary action */
.shield-cta {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-4); padding: 18px var(--space-5);
  border-radius: var(--radius-lg); text-decoration: none;
  background: linear-gradient(135deg, var(--teal), #0a5a52); color: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.shield-cta:hover { text-decoration: none; box-shadow: var(--shadow-float); }
.shield-cta:active { transform: scale(0.98); }
.shield-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.shield-cta .cta-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.18); display: grid; place-items: center;
}
.shield-cta .cta-title { display: block; font-weight: 700; font-size: 16px; }
.shield-cta .cta-sub { display: block; font-size: 13px; opacity: 0.85; margin-top: 2px; }
.shield-cta .cta-arrow { flex: none; font-size: 20px; opacity: 0.8; }

/* onboarding slide art — unique icon per slide */
.onboard-icon {
  width: 128px; height: 128px; margin: 0 auto;
  border-radius: 36px; background: var(--tint-mint); color: var(--teal);
  display: grid; place-items: center;
}
.onboard-body {
  font-size: 17px; line-height: 1.6; color: var(--muted);
  max-width: 320px; margin: var(--space-3) auto 0;
}

/* screen subtitle — one consistent pattern under every page title */
.screen-sub { font-size: var(--text-base); color: var(--muted); margin-top: var(--space-2); max-width: 380px; line-height: var(--leading-relaxed); }

/* skeleton variants that match final layout heights */
.skeleton-rows { min-height: 180px; }
.skeleton-sm { min-height: 72px; }

/* error state */
.empty-error .art { background: var(--tint-red); color: var(--danger); }

/* scanner paste row */
.paste-row { display: flex; justify-content: flex-end; margin-top: var(--space-2); }

/* verdict refinements */
.verdict-score { margin-top: var(--space-1); font-weight: 700; font-size: var(--text-sm) !important; }
.card-title-sm { font-size: 16px !important; margin-bottom: var(--space-2) !important; }
.why-text { margin-top: var(--space-1); line-height: var(--leading-relaxed); }
.why-footnote { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); font-style: italic; }
.advice-text { font-size: 15px; line-height: 1.6; color: var(--ink); }

/* shield hub lists */
.scan-history-item { text-decoration: none; }
.scan-history-name { display: block; font-weight: 600; font-size: 14.5px; color: var(--pine); }
[data-theme='dark'] .scan-history-name { color: var(--ink); }
.report-row { display: flex; align-items: center; gap: var(--space-3); padding: 12px 0; }
.report-row + .report-row { border-top: 1px solid var(--line); }
.report-row .grow { min-width: 0; }

/* shield hero CTA button inside gradient card */
.hero-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-5); padding: 10px 22px; border-radius: var(--radius-pill);
  background: #fff; color: var(--teal); font-weight: 700; font-size: 15px;
}

/* navbar trailing action (e.g. "Mark all read") */
.navbar-action { flex: none; }