/* ==========================================================================
   Reflections CSS Design System (Plus-Minus-Next Journal)
   ========================================================================== */

/* Global Variables & Tokens */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Theme Colors */
  --bg-gradient: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Glassmorphism Defaults - Applied to elevated surfaces like modals, cards, and floating nav to create depth against the ambient glow */
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Brand Accents */
  --color-plus: #10b981;
  --color-plus-glow: rgba(16, 185, 129, 0.15);
  --color-minus: #f43f5e;
  --color-minus-glow: rgba(244, 63, 94, 0.15);
  --color-next: #818cf8;
  --color-next-glow: rgba(129, 140, 248, 0.15);

  /* Surface & Border Semantic Tokens (Dark Theme Defaults) */
  --surface-light: rgba(255, 255, 255, 0.03);
  --surface-medium: rgba(255, 255, 255, 0.08);
  --surface-heavy: rgba(255, 255, 255, 0.15);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.15);
  --logo-gradient: linear-gradient(135deg, #f8fafc 60%, #cbd5e1 100%);
  
  --transition-speed: 0.3s;
  --transition-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Dynamic Theme Variables */
  --theme-accent: #f8fafc;
  --theme-accent-subtle: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--bg-gradient);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient Background Glows - Base z-index 0 for the lowest layer */
.ambient-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  opacity: 0.15;
  z-index: 0;
  transition: opacity 1s ease;
}

.glow-1 {
  top: -10vw;
  left: -10vw;
  background: radial-gradient(circle, var(--color-plus) 0%, transparent 70%);
}

.glow-2 {
  bottom: -10vw;
  right: -10vw;
  background: radial-gradient(circle, var(--color-next) 0%, transparent 70%);
}

/* App Container Layout */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 8rem 1.5rem;
}

/* Header & Profile/Toggle Area */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-plus { color: var(--color-plus); }
.logo-minus { color: var(--color-minus); }
.logo-next { color: var(--color-next); }

.logo h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 0.25rem;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 9999px;
  display: flex;
  gap: 4px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-speed) ease;
}

.nav-btn .icon {
  width: 16px;
  height: 16px;
}

.nav-btn:hover {
  color: var(--color-text-primary);
  background: var(--surface-light);
}

.nav-btn.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
  transform: scale(0.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

.settings-profile-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface-light);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 12px;
}

.settings-profile-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.settings-profile-header .profile-avatar {
  width: 44px;
  height: 44px;
}

.settings-profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.settings-profile-details .profile-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text-primary);
}

.settings-profile-details .profile-status {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* User Profile Widget Styling */
.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  object-fit: cover;
  background-color: var(--surface-medium);
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-primary);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-signout {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn-signout:hover {
  color: var(--color-minus);
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.05);
}

.btn-settings {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn-settings:hover {
  color: var(--color-text-primary);
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.btn-signin-save {
  background: linear-gradient(180deg, var(--color-plus) 0%, rgba(16, 185, 129, 0.8) 100%);
  color: var(--color-bg);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-signin-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-signin-save:active {
  transform: scale(0.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Views Management */
.app-main {
  flex-grow: 1;
}

.view-section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s var(--transition-elastic);
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   VIEW 0: LANDING HERO VIEW (Logged Out State)
   ========================================================================== */

.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.landing-auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 2.5rem 2rem;
}

.landing-auth-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.landing-auth-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.auth-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.auth-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.provider-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.google-btn {
  background: #ffffff;
  color: #1e293b;
  border: none;
}

.google-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.guest-btn {
  background: rgba(129, 140, 248, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.25);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.05);
}

.guest-btn:hover {
  background: rgba(129, 140, 248, 0.15);
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.4);
}

.email-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.email-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Auth Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-medium);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: var(--color-plus);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 2px rgba(167, 243, 208, 0.1);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Base Buttons */
.btn-primary, .btn-secondary, .btn-danger {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active:not(:disabled),
.btn-secondary:active:not(:disabled),
.btn-danger:active:not(:disabled) {
  transform: scale(0.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.15) 0%, rgba(244, 63, 94, 0.05) 100%);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.25) 0%, rgba(244, 63, 94, 0.15) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.guest-btn:hover {
  background: rgba(129, 140, 248, 0.18);
  border-color: rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(129, 140, 248, 0.15);
}

.auth-notice {
  font-size: 0.7rem !important;
  color: var(--color-text-muted) !important;
  line-height: 1.4;
}

/* Guest Warning Banner */
.guest-warning-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #fda4af;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: fadeInBanner 0.4s ease;
}

.guest-warning-banner .warning-icon {
  width: 20px;
  height: 20px;
  color: #f43f5e;
  flex-shrink: 0;
}

.guest-warning-banner a {
  color: #f43f5e;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.guest-warning-banner a:hover {
  color: #fda4af;
}

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

/* ==========================================================================
   VIEW 1: ACTIVE DAY VIEW (Editor & Columns)
   ========================================================================== */

/* Date Navigator */
.date-navigator-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-direction: column;
}

.date-navigator {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 0.5rem;
}

.icon-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.icon-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.icon-btn:active, .today-badge-btn:active {
  transform: scale(0.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.date-display-wrapper {
  position: relative;
  padding: 0 1.5rem;
  cursor: pointer;
}

.date-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-primary);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
}

.date-display-wrapper:hover .date-display {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.date-display-wrapper:active .date-display {
  transform: scale(0.98);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Invisible Date Picker triggered on date display click */
.date-picker-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.today-badge-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.today-badge-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Checklist Card (Yesterday's Next) */
.checklist-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem 0;
  transition: transform 0.4s var(--transition-elastic), border-color 0.4s ease, box-shadow 0.4s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

.checklist-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.checklist-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checklist-icon-wrapper svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.checklist-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.1rem;
}

.checklist-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.checklist-body {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.checklist-body::-webkit-scrollbar {
  width: 6px;
}
.checklist-body::-webkit-scrollbar-track {
  background: transparent;
}
.checklist-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
.checklist-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.checklist-body .entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.checklist-body .entry-item {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: all 0.5s ease-out, border-color 0.2s ease, background 0.2s ease;
  max-height: 80px;
  opacity: 1;
  overflow: hidden;
}

.checklist-body .entry-item.checking-off {
  opacity: 0;
  transform: scale(0.95);
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-width: 0 !important;
}

.checklist-date-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.checklist-body .entry-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.checklist-body .entry-content {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

/* Mobile Tabs (Hidden on Desktop) */
.mobile-tabs-container {
  display: none;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  padding: 4px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mobile-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.mobile-tab .tab-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.mobile-tab.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: var(--color-accent);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.light-theme .mobile-tab.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-accent);
}

/* Journal Columns Grid */
.journal-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Journal Card styling */
.journal-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: transform 0.4s var(--transition-elastic), border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  min-width: 0;
}

.journal-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-focus);
  box-shadow: 0 12px 40px var(--card-glow-color);
}

/* Glow setup variables per card type */
.card-plus {
  --card-border-focus: rgba(16, 185, 129, 0.25);
  --card-glow-color: var(--color-plus-glow);
  --theme-color: var(--color-plus);
}

.card-minus {
  --card-border-focus: rgba(244, 63, 94, 0.25);
  --card-glow-color: var(--color-minus-glow);
  --theme-color: var(--color-minus);
}

.card-next {
  --card-border-focus: rgba(129, 140, 248, 0.25);
  --card-glow-color: var(--color-next-glow);
  --theme-color: var(--color-next);
}

/* Card Header */
.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: max-content max-content;
  column-gap: 0.8rem;
  align-items: center;
}

.card-icon-wrapper {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.card-header h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  align-self: start;
}

/* Card Body & Lists */
.card-body {
  flex-grow: 1;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: 280px;
}

/* Custom card body scrollbar */
.card-body::-webkit-scrollbar {
  width: 4px;
}

.card-body::-webkit-scrollbar-track {
  background: transparent;
}

.card-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

.card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.entry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Entry List Items */
.entry-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  transition: all var(--transition-speed) ease;
  animation: slideIn 0.3s var(--transition-elastic) forwards;
}

.delete-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(244, 63, 94, 0.9);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1;
}

.delete-bg svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  margin-left: 0.4rem;
}

.entry-swipeable {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: transform 0.2s ease-out, background 0.2s ease, border-color 0.2s ease;
  touch-action: pan-y;
}

body.light-theme .entry-swipeable {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
}

.entry-swipeable:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

body.light-theme .entry-swipeable:hover {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Device-Specific Interaction Styles */
@media (hover: hover) and (pointer: fine) {
  /* On desktop, hide swipe background */
  .delete-bg {
    display: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  /* On mobile, hide traditional hover delete button */
  .btn-delete {
    display: none !important;
  }
}

.entry-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  flex-grow: 1;
  word-break: break-word;
}

/* Bullet icon indicators for + and - items */
.bullet-icon {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-color);
}

/* Delete Button on Items */
.btn-delete {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition-speed) ease;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.entry-swipeable:hover .btn-delete {
  opacity: 1;
}

.btn-delete:hover {
  color: var(--color-minus);
  background: rgba(244, 63, 94, 0.1);
}

.btn-delete svg {
  width: 14px;
  height: 14px;
}

/* Checkbox specific items for 'Next' */
.checkbox-list .entry-content {
  cursor: pointer;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-text-muted);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.entry-item.checked {
  opacity: 0.65;
}

.entry-item.checked .entry-text {
  text-decoration: line-through;
  color: var(--color-text-secondary);
}

.entry-item.checked .custom-checkbox {
  background: var(--color-next);
  border-color: var(--color-next);
}

.entry-item.checked .custom-checkbox::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Card Input Footer Form */
.card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: auto;
}

.card-footer textarea {
  flex-grow: 1;
  background: var(--surface-light);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-speed) ease, background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  resize: none;
  overflow-y: hidden;
  line-height: 1.4;
  height: 42px;
  box-sizing: border-box;
}

.card-footer textarea::placeholder {
  color: var(--color-text-muted);
}

.card-footer textarea:focus {
  outline: none;
  background: var(--surface-medium);
  border-color: var(--theme-color);
  box-shadow: 0 0 12px var(--card-glow-color);
}

.card-footer button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--theme-color) 0%, var(--card-glow-color) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: none;
  color: #020617;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.card-footer button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px var(--card-glow-color), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.1);
}

.card-footer button:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-footer button svg {
  width: 18px;
  height: 18px;
}

/* Empty State Styling inside lists */
.list-empty-state {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 0;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ==========================================================================
   Streaks and Insights CSS Modules
   ========================================================================== */

/* Metrics Row */
.metric-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.metric-icon {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-primary);
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Heatmap Grid */
.heatmap-container {
  padding: 2rem;
  margin-bottom: 2rem;
}

.heatmap-header {
  margin-bottom: 1.5rem;
}

.heatmap-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.heatmap-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.heatmap-grid-wrapper {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

.heatmap-week-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: right;
  height: 112px;
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 14px);
  grid-auto-flow: column;
  grid-auto-columns: 14px;
  gap: 2px;
}

.heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.heatmap-cell:hover {
  transform: scale(1.15);
  border-color: rgba(255,255,255,0.4);
  z-index: 10;
}

/* Color scaling */
.heatmap-cell.lvl-0 {
  background: rgba(255, 255, 255, 0.02);
}

.heatmap-cell.lvl-1 {
  background: rgba(129, 140, 248, 0.25);
  border-color: rgba(129, 140, 248, 0.2);
}

.heatmap-cell.lvl-2 {
  background: rgba(129, 140, 248, 0.55);
  border-color: rgba(129, 140, 248, 0.4);
}

.heatmap-cell.lvl-3 {
  background: var(--color-next);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
}

/* Heatmap Legend */
.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 1.25rem;
}

.legend-scale {
  display: flex;
  gap: 2px;
}

.legend-scale .square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-scale .lvl-0 { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255,255,255,0.03); }
.legend-scale .lvl-1 { background: rgba(129, 140, 248, 0.25); }
.legend-scale .lvl-2 { background: rgba(129, 140, 248, 0.55); }
.legend-scale .lvl-3 { background: var(--color-next); }

/* Insights Grid & Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.insight-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.insight-card.col-span-2 {
  grid-column: span 2;
}

.insight-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.insight-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

/* Donut Chart */
.donut-chart-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 1rem auto 2rem;
}

.donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.donut-val {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-plus);
}

.donut-lbl {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* Action Items Velocity */
.action-velocity-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  justify-content: center;
}

.bar-progress-wrapper {
  width: 100%;
}

.bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.bar-val {
  font-weight: 600;
  color: var(--color-next);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

.insight-stats-list {
  display: flex;
  justify-content: space-around;
  list-style: none;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1rem 0.5rem;
}

.insight-stats-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insight-stats-list .stat-num {
  font-size: 1.25rem;
  font-weight: 600;
}

.insight-stats-list .stat-lbl {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Sparkline Trend */
.sparkline-container {
  margin: 1.5rem 0 2.5rem;
  width: 100%;
}

.sparkline-graph {
  width: 100%;
  height: 120px;
  overflow: visible;
}

.sparkline-path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 0.75rem 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Word Cloud Focus Keywords */
.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  min-height: 120px;
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
  cursor: default;
  transition: all 0.2s ease;
}

.keyword-pill:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-primary);
}

.keyword-pill small {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.size-1 { font-size: 0.8rem; opacity: 0.75; }
.size-2 { font-size: 0.95rem; font-weight: 500; }
.size-3 { font-size: 1.15rem; font-weight: 600; }

.keyword-pill.glow-plus {
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--color-plus);
}
.keyword-pill.glow-plus:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px var(--color-plus-glow);
}

.keyword-pill.glow-next {
  border-color: rgba(129, 140, 248, 0.15);
  color: var(--color-next);
}
.keyword-pill.glow-next:hover {
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 0 10px var(--color-next-glow);
}

.insight-footer-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1.25rem;
  margin-top: auto;
}

.insight-footer-desc strong {
  color: var(--color-text-primary);
}

.card-glow-plus:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 12px 32px var(--color-plus-glow);
}

.card-glow-next:hover {
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow: 0 12px 32px var(--color-next-glow);
}

.card-glow-minus:hover {
  border-color: rgba(244, 63, 94, 0.25);
  box-shadow: 0 12px 32px var(--color-minus-glow);
}

/* ==========================================================================
   VIEW 2: ARCHIVES VIEW (History Feed)
   ========================================================================== */

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.archive-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.archive-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.btn-export:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-export:active {
  transform: translateY(0);
}

.btn-export svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* History Card */
.history-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s var(--transition-elastic);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.history-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.75rem;
}

.history-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.history-dayname {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-card-stats {
  display: flex;
  gap: 0.8rem;
}

.stat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-badge.plus {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-plus);
}

.stat-badge.minus {
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-minus);
}

.stat-badge.next {
  background: rgba(129, 140, 248, 0.1);
  color: var(--color-next);
}

/* Compact previews of items in history card */
.history-preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.history-preview-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.history-preview-item .preview-symbol {
  flex-shrink: 0;
  font-weight: 600;
}

.history-preview-item .preview-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.history-preview-item.plus .preview-symbol { color: var(--color-plus); }
.history-preview-item.minus .preview-symbol { color: var(--color-minus); }
.history-preview-item.next .preview-symbol { color: var(--color-next); }

.history-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: 20px;
  color: var(--color-text-secondary);
}

.history-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.history-empty-state p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.history-empty-state span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.hidden {
  display: none !important;
}

/* ==========================================================================
   Toast Notification Styling
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--color-text-primary);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--transition-elastic);
  z-index: 99999;
  max-width: 320px;
  font-size: 0.9rem;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.error {
  border-left: 4px solid var(--color-minus);
}

.toast.success {
  border-left: 4px solid var(--color-plus);
}

.toast.info {
  border-left: 4px solid var(--color-next);
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* App Footer styling */
.app-footer {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  margin-top: 4rem;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Tablet & Mobile Grid stack */
@media (max-width: 900px) {
  .mobile-tabs-container {
    display: flex;
    margin-bottom: 1rem;
  }

  .journal-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .journal-columns > .journal-card:not(.active-card) {
    display: none !important;
  }

  .journal-columns > .journal-card.active-card {
    display: flex !important;
  }
  
  .journal-card {
    min-height: auto;
  }
  
  .card-body {
    max-height: none; /* Let it grow */
    min-height: 80px;
    flex: 0 1 auto;
  }
  
  .guest-warning-banner {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .app-container {
    padding: 1rem 0.5rem;
  }
  
  .app-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1rem;
  }
  
  .logo {
    justify-content: center;
  }
  
  .nav-toggle {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 400px;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 6px;
    z-index: 1000;
  }
  
  .app-main {
    padding-bottom: 0;
  }
  
  .app-footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .nav-btn {
    flex: 1 1 0%;
    justify-content: center;
    flex-direction: column;
    padding: 0.5rem 0.2rem;
    font-size: 0.65rem;
    gap: 0.3rem;
  }

  .checklist-card {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }
  .checklist-header {
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .checklist-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .checklist-icon-wrapper svg {
    width: 16px;
    height: 16px;
  }
  .checklist-title {
    font-size: 1.05rem;
  }
  .checklist-subtitle {
    display: none;
  }
  .checklist-body {
    max-height: 150px;
  }
  .checklist-body .entry-list {
    grid-template-columns: 1fr;
  }

  @media (max-width: 370px) {
    .nav-btn span {
      display: none;
    }
    .nav-btn .icon {
      width: 16px;
      height: 16px;
    }
  }

  /* Compact spacing for Journal Cards on mobile to reduce whitespace */
  .journal-card {
    min-height: auto;
  }
  .card-header {
    padding: 1rem;
  }
  .card-icon-wrapper {
    width: 36px;
    height: 36px;
  }
  .card-icon-wrapper svg {
    width: 16px;
    height: 16px;
  }
  .card-header h2 {
    font-size: 1.15rem;
  }
  .card-body {
    padding: 0.5rem 1rem 0.85rem;
    max-height: 200px;
  }
  .card-footer {
    padding: 0.85rem 1rem;
  }
  .card-footer textarea {
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    height: 36px;
  }
  .card-footer button {
    width: 36px;
    height: 36px;
  }

  /* Compact Date Navigator */
  .date-navigator-container {
    margin-bottom: 1rem;
  }
  .date-navigator {
    padding: 0.35rem;
  }
  .date-display {
    font-size: 1.2rem;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
  }

  /* History list / Archive cards scroll and spacing optimizations */
  .history-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .history-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  .history-card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .history-date {
    font-size: 1.05rem;
  }
  .history-card-stats {
    gap: 0.5rem;
  }
  .stat-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }

  .heatmap-container {
    padding: 1.25rem;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insight-card.col-span-2 {
    grid-column: span 1;
  }
  
  .metric-container {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 2rem 0.5rem 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .landing-auth-card {
    padding: 1.75rem 1.25rem;
  }

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .danger-row {
    gap: 1.75rem;
  }
  
  .theme-toggle-group {
    width: 100%;
  }
  
  .theme-btn {
    flex: 1;
    text-align: center;
  }

  #btn-delete-account-trigger {
    width: 100%;
  }
}

/* Clap Particle Animation */
.clap-particle {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2) rotate(var(--clap-rotate-start, 0deg));
  animation: floatAndFadeClap 1.6s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  animation-delay: var(--clap-delay, 0s);
}

@keyframes floatAndFadeClap {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(var(--clap-rotate-start, 0deg));
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--clap-scale, 1)) rotate(var(--clap-rotate-start, 0deg));
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120px) scale(0.6) rotate(var(--clap-rotate-end, 0deg));
  }
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .journal-card, .history-card {
    transform: none !important;
  }
  
  .view-section {
    transform: none !important;
    transition: opacity 0.1s ease !important;
  }
}

/* --- AI Synthesis Mockup Styles --- */
.ai-synthesis-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ai-btn {
  font-size: 1.1rem;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--color-plus), var(--color-next));
  color: #fff;
  border-radius: 30px;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
  transition: all 0.3s ease;
}
.ai-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.5);
}
.ai-btn svg.ai-icon {
  width: 20px;
  height: 20px;
  animation: pulse 2s infinite alternate;
}

.ai-disclaimer {
  font-size: 0.85rem;
  max-width: 500px;
  text-align: center;
  line-height: 1.4;
  margin: 0.5rem 0 0 0;
  opacity: 0.7;
}
.ai-disclaimer.warning {
  color: var(--color-minus);
  opacity: 0.9;
}

#ai-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}
.ai-loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-next);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
#ai-loading-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
}
.ai-progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}
.ai-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-next);
  transition: width 0.3s ease;
}

.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.ai-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.ai-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-card-header h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--text-primary);
}
.ai-card-icon {
  font-size: 1.4rem;
}
.ai-content-placeholder {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

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

/* --- Loading States & Spinners --- */
.auth-provider-btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.auth-provider-btn.is-loading .provider-icon {
  display: none !important;
}

.auth-provider-btn.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Skeleton Loading Shimmer */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

.history-card-skeleton {
  height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 1rem;
}

.heatmap-skeleton {
  height: 200px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.insights-skeleton {
  height: 300px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Compliance, Policy Views & Settings Modal Styling
   ========================================================================== */

/* Policy Links & Footer Styling */
.policy-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-text-muted);
  transition: color var(--transition-speed), border-color var(--transition-speed);
}

.policy-link:hover {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-text-primary);
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.dot-separator {
  color: var(--color-text-muted);
}

/* Legal Container (Privacy & ToS Pages) */
.legal-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 3rem;
  text-align: left;
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.legal-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.legal-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.legal-content {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content h3 {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1.25rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

/* Modals General Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  width: 95%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 2.5rem;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--transition-elastic), opacity 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Settings Page Layout */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.settings-card {
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
}

.settings-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.settings-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.settings-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.settings-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* Theme Toggle Buttons */
.theme-toggle-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  color: var(--color-text-primary);
}

.theme-btn.active {
  background: var(--color-text-primary);
  color: var(--bg-gradient); /* fallback or variable overrides */
  color: #020617; /* default dark bg text */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Danger Zone */

.danger-title {
  color: var(--color-minus) !important;
}

.btn-danger {
  background: var(--color-minus);
  border: 1px solid transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-danger:hover:not(:disabled) {
  background: #e11d48;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.btn-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  color: var(--color-text-primary);
  background: var(--surface-light);
}

/* Deletion Confirmation Modal specifics */
.confirm-content {
  max-width: 440px;
}

.warning-text {
  background: rgba(244, 63, 94, 0.1);
  border-left: 3px solid var(--color-minus);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1.25rem 0;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.confirm-input-wrapper {
  margin-top: 1.5rem;
}

.confirm-input-wrapper p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.confirm-input-wrapper input {
  width: 100%;
  background: var(--surface-light);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.confirm-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-minus);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.2);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

/* Light Theme Variables */
body.light-theme {
  --bg-gradient: radial-gradient(circle at center, #dbeafe 0%, #94a3b8 100%);
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-hover: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
  --color-plus: #059669;
  --color-plus-glow: rgba(5, 150, 105, 0.15);
  --color-minus: #e11d48;
  --color-minus-glow: rgba(225, 29, 72, 0.15);
  --color-next: #4f46e5;
  --color-next-glow: rgba(79, 70, 229, 0.15);

  /* Light Theme Surface & Border Semantic Tokens */
  --surface-light: rgba(255, 255, 255, 0.3);
  --surface-medium: rgba(255, 255, 255, 0.5);
  --surface-heavy: rgba(255, 255, 255, 0.7);
  --border-light: rgba(255, 255, 255, 0.4);
  --border-medium: rgba(255, 255, 255, 0.6);
  --logo-gradient: linear-gradient(135deg, #0f172a 60%, #334155 100%);
}

body.light-theme .theme-btn.active {
  background: #020617;
  color: #f8fafc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

body.light-theme .ambient-glow {
  opacity: 0.05;
}

body.light-theme .modal-overlay {
  background: rgba(15, 23, 42, 0.4);
}

body.light-theme .profile-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .journal-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .btn-signin-save {
  color: #ffffff;
}

body.light-theme .btn-signout {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-text-primary);
}

body.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .guest-warning-banner {
  background: rgba(225, 29, 72, 0.1);
  border-color: rgba(225, 29, 72, 0.25);
  color: var(--color-minus); /* #e11d48 */
}

body.light-theme .guest-warning-banner a,
body.light-theme .guest-warning-banner .warning-icon {
  color: var(--color-minus);
}

body.light-theme .guest-warning-banner a:hover {
  color: #be123c; /* Darker red for hover */
}

body.light-theme .toast {
  background: rgba(255, 255, 255, 0.95);
}

/* Light Theme Auth Overrides */
body.light-theme .hero-title {
  background: linear-gradient(135deg, #0f172a 30%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .google-btn {
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

body.light-theme .email-btn {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

body.light-theme .email-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.25);
}

body.light-theme .guest-btn {
  background: rgba(79, 70, 229, 0.05);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.2);
}

body.light-theme .guest-btn:hover {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
}

/* ==========================================================================
   Weekly Theme Banner & Daily Spark Prompting
   ========================================================================== */

.theme-header-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--color-text-primary);
  transition: all 0.5s var(--transition-elastic);
}

.theme-header-banner h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.theme-header-banner p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.theme-header-banner .theme-icon {
  display: none;
}

/* Ensure banner looks good on mobile */
@media (max-width: 768px) {
  .theme-header-banner {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  .theme-header-banner h2 {
    font-size: 1.75rem;
  }
}

.daily-spark-box {
  margin: 0 1.5rem 1rem 1.5rem;
  padding: 0.5rem 0 0.5rem 1rem;
  background: transparent;
  border-left: 3px solid var(--theme-accent);
  font-size: 0.95rem;
  transition: all 0.5s ease;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (max-width: 600px) {
  .daily-spark-box {
    margin: 0 1rem 0.5rem 1rem;
  }
}

.spark-label {
  font-weight: 600;
  color: var(--theme-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spark-text {
  color: var(--color-text-secondary);
  font-style: italic;
}

body.light-theme .spark-text {
  color: var(--color-text-primary);
}
