/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   ALIVE NOW  â€”  Life Operating System
   Premium Apple-Level Design Â· Dark Â· Minimal Â· Intelligent
   â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */

/* â”€â”€ Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alive-home {
  max-width: 100vw;
  min-height: fit-content;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Moving the gradient to body for home mode to prevent cutoff on scroll */
body.home-mode {
  background-attachment: fixed !important;
  color: white;
  transition: background 3s ease-in-out;
}

/* â”€â”€ Cinematic Time-Responsive Backgrounds â”€â”€ */
body.home-mode.time-dawn {
  background: linear-gradient(175deg, #1A0B2E 0%, #2D143D 35%, #592B45 65%, #1A0B2E 100%) !important;
}
body.home-mode.time-day {
  background: linear-gradient(175deg, #0f172a 0%, #1e293b 35%, #334155 65%, #0f172a 100%) !important;
}
body.home-mode.time-dusk {
  background: linear-gradient(175deg, #1a041f 0%, #2f0932 35%, #46144e 65%, #1a041f 100%) !important;
}
body.home-mode.time-night {
  background: linear-gradient(175deg, #050505 0%, #0a0a0c 35%, #111827 65%, #050505 100%) !important;
}

/* Ambient glow orbs */
.alive-home::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.alive-home::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.04) 0%, transparent 65%);
  pointer-events: none;
}

/* â•â•â•â•â•â•â•â•â•â•â• 1. HERO â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-hero {
  text-align: center;
  margin-bottom: 56px;
  animation: an-fade-up 0.8s ease-out;
  width: 100%;
  max-width: 600px;
}

.an-hero-top {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.an-weather-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: 0.3px;
}

.an-greeting {
  font-size: 38px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.an-day-counter {
  font-size: 15px;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.an-day-counter strong {
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.an-motto {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.2px;
}

/* â•â•â•â•â•â•â•â•â•â•â• 2. LIFE SCORE RING â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 50px;
  animation: an-fade-up 0.9s ease-out backwards;
}

.an-triple-rings-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.an-triple-rings-wrap::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(52, 199, 89, 0.1) 0%, transparent 65%);
  z-index: 0;
}

@keyframes an-spin-continuous {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

.an-triple-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.5));
  animation: an-spin-continuous 60s linear infinite;
}
.an-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 16;
}

/* Individual Ring Colors & Animations */
.an-ring-fill {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ring-work {
  stroke: url(#ringGradWork);
  stroke-dasharray: 534; /* 2*pi*85 */
  stroke-dashoffset: 534;
}
.ring-momentum {
  stroke: url(#ringGradMomentum);
  stroke-dasharray: 408; /* 2*pi*65 */
  stroke-dashoffset: 408;
}
.ring-wellness {
  stroke: url(#ringGradWellness);
  stroke-dasharray: 283; /* 2*pi*45 */
  stroke-dashoffset: 283;
}

.an-ring-inner-multi {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}
.an-score-multi {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  font-variant-numeric: tabular-nums;
}
.an-ring-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  font-weight: 600;
}

/* Legends */
.an-ring-legends {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  animation: an-fade-up 1s ease-out backwards;
}
.ring-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.03);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}
.rl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}
.ring-legend strong {
  margin-left: 2px;
  color: #fff;
}

.an-score-status {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #a1a1aa; /* Default neutral */
  margin-bottom: 32px;
  animation: an-fade-up 1s ease-out backwards;
  backdrop-filter: blur(8px);
}
.an-score-status.status-excellent { color: #34d399; border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.05); }
.an-score-status.status-good { color: #60a5fa; border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.05); }
.an-score-status.status-average { color: #fbbf24; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.05); }
.an-score-status.status-below { color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.05); }

/* Mini Stats Pill - True Glassmorphism */
.an-mini-stats {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 16px 28px;
  gap: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: an-fade-up 1.1s ease-out backwards;
}
.an-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.an-mini-val {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.an-mini-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 500;
}
.an-mini-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* â•â•â•â•â•â•â•â•â•â•â• 3. AI INSIGHT CARD â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-insight-card {
  max-width: 560px;
  width: 100%;
  padding: 20px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: an-fade-up 1.1s ease-out;
  box-sizing: border-box;
  text-align: center;
}
.an-insight-card b {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* â•â•â•â•â•â•â•â•â•â•â• 4. TIME DISTRIBUTION â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-time-dist {
  max-width: 560px;
  width: 100%;
  margin-bottom: 48px;
  animation: an-fade-up 1.2s ease-out;
  box-sizing: border-box;
}

.an-time-bar {
  display: flex;
  height: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* Reuse old class names for JS compatibility */
.alive-time-dist-segment,
.an-time-segment {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.an-time-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* Reuse old class for JS compat */
.alive-dist-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.alive-dist-legend-color {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* â•â•â•â•â•â•â•â•â•â•â• 5. TODAY SECTION â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-section-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 16px;
}

.an-section-label-wide {
  width: 100%;
  max-width: 660px;
  text-align: left;
}

.an-today-section {
  max-width: 560px;
  width: 100%;
  margin-bottom: 32px;
  animation: an-fade-up 1.2s ease-out;
  box-sizing: border-box;
}

.an-today-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.an-today-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
  word-break: break-word;
}
.an-today-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(59,130,246,0.6);
  flex-shrink: 0;
  margin-top: 7px;
}
.an-today-list li b {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* â•â•â•â•â•â•â•â•â•â•â• 6. JOURNEYS GRID â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-journeys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 660px;
  margin-bottom: 48px;
  animation: an-fade-up 1.3s ease-out;
}

.alive-journey-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.alive-journey-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.alive-card-status-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.tag-active {
  background: rgba(59,130,246,0.1);
  color: rgba(96,165,250,0.9);
}

.alive-card-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.alive-card-name {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.alive-card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
  font-weight: 400;
}

.alive-card-stats {
  display: flex;
  gap: 24px;
}

.alive-card-stat {
  display: flex;
  flex-direction: column;
}

.alive-card-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: rgba(96,165,250,0.9);
  font-variant-numeric: tabular-nums;
}

.alive-card-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.alive-card-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 100px;
  margin-top: 20px;
  overflow: hidden;
}

.alive-card-progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* Add Journey Card */
.alive-add-card {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 28px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.15);
  font-size: 14px;
  font-weight: 500;
  gap: 10px;
}
.alive-add-card:hover {
  border-color: rgba(59,130,246,0.3);
  color: rgba(59,130,246,0.7);
  background: rgba(59,130,246,0.02);
}
.alive-add-icon {
  font-size: 28px;
  opacity: 0.4;
}

/* â”€â”€ Journey Card CRUD action buttons â”€â”€ */
.alive-card-crud-actions {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}
.alive-journey-card:hover .alive-card-crud-actions {
  opacity: 1;
  transform: translateY(0);
}
.alive-card-action-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  backdrop-filter: blur(12px);
  transition: background 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
}
.alive-card-action-btn:hover {
  transform: scale(1.15);
}
.alive-card-edit-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59,130,246,0.4);
}
.alive-card-delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239,68,68,0.4);
}
/* Keep status tag from overlapping action buttons on mobile */
@media (max-width: 480px) {
  .alive-card-crud-actions { opacity: 1; transform: translateY(0); }
}

 â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-projection {
  max-width: 560px;
  width: 100%;
  text-align: center;
  margin-bottom: 56px;
  animation: an-fade-up 1.3s ease-out;
  box-sizing: border-box;
}

.an-proj-text {
  font-size: 15px;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  margin: 0;
}
.an-proj-text b {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* â•â•â•â•â•â•â•â•â•â•â• 8. REFLECTION â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-reflection {
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
  animation: an-fade-up 1.4s ease-out;
}

.an-reflection-input {
  width: 100%;
  min-height: 80px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  font-size: 15px;
  resize: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
  line-height: 1.6;
}
.an-reflection-input::placeholder {
  color: rgba(255,255,255,0.15);
}
.an-reflection-input:focus {
  outline: none;
  border-color: rgba(59,130,246,0.4);
}

/* â•â•â•â•â•â•â•â•â•â•â• ANIMATIONS â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@keyframes an-fade-up {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* â•â•â•â•â•â•â•â•â•â•â• BACK BUTTON (Journey View) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.alive-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--surface, rgba(255,255,255,0.05));
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  color: var(--sf-blue, #3b82f6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
  white-space: nowrap;
}
.alive-back-btn:hover {
  background: var(--sf-sky, rgba(59,130,246,0.08));
  transform: translateX(-3px);
}
.alive-breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.25;
  font-weight: 300;
}

/* â•â•â•â•â•â•â•â•â•â•â• HOME MODE OVERRIDES â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
body.home-mode .sidebar,
body.home-mode .hamburger,
body.home-mode .quote-banner,
body.home-mode #mobileBottomNav,
body.home-mode .pomo-widget,
body.home-mode .xp-badge,
body.home-mode #notifBtn,
body.home-mode footer,
body.home-mode .footer { 
  display: none !important; 
}

body.home-mode .cmd-orbit-container:not(.cmd-orbit-open) {
  bottom: 24px;
  right: 20px;
  width: 60px !important;
  height: 60px !important;
  z-index: 996;
}

body.home-mode .cmd-orbit-hub {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  font-size: 24px !important;
  transform: none;
}

body.home-mode .cmd-hub-icon {
  inset: 0 !important;
}

body.home-mode .cmd-hub-icon svg {
  width: 34px !important;
  height: 34px !important;
}

@media (max-width: 768px) {
  body.home-mode .cmd-orbit-container:not(.cmd-orbit-open) {
    bottom: 18px;
    right: 16px;
    width: 52px !important;
    height: 52px !important;
  }

  body.home-mode .cmd-orbit-hub {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    font-size: 20px !important;
  }

  body.home-mode .cmd-hub-icon svg {
    width: 30px !important;
    height: 30px !important;
  }

  body.home-mode .cmd-orbit-container.cmd-orbit-open {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 99998 !important;
  }

  body.home-mode .cmd-orbit-container.cmd-orbit-open .cmd-orbit-hub {
    width: 100% !important;
    max-width: none !important;
    border-radius: 999px !important;
  }
}

body.home-mode .main-content { 
  margin-left: 0 !important; 
  width: 100% !important; 
  padding: 0 !important; 
  max-width: 100% !important; 
}
body.home-mode .page-header {
  position: absolute;
  top: 0; left: 0; width: 100%;
  border: none;
  padding: 20px 28px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
  box-sizing: border-box;
}
body.home-mode .page-header * { pointer-events: auto; }
body.home-mode #journeySelectBtn,
body.home-mode #headerSubtext { display: none !important; }
body.home-mode .fb-auth-area { display: flex; gap: 12px; align-items: center; }
body.home-mode .dark-toggle { order: -1; }

/* ═══════════════ SECTION TRANSITIONS ═══════════════ */
.section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.section.active { display: block; }
.section.section-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .alive-home {
    padding: 60px 16px 80px;
  }
  .an-greeting { font-size: 28px; }
  .an-hero { margin-bottom: 20px; }
  .an-triple-rings-wrap {
    width: 180px;
    height: 180px;
  }
  .an-mini-stats { padding: 14px 16px; }
  .an-mini-stat { padding: 0 14px; }
  .an-mini-val { font-size: 17px; }
  .an-journeys-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .alive-journey-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .alive-card-icon { font-size: 28px; margin-bottom: 10px; }
  .alive-card-name { font-size: 15px; }
  .alive-card-sub { font-size: 11px; margin-bottom: 14px; }
  .alive-card-stat-val { font-size: 15px; }
  .alive-card-status-tag { font-size: 9px; padding: 3px 8px; top: 14px; right: 14px; }
  body.home-mode .page-header { padding: 14px 16px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤480px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .alive-home {
    padding: 52px 14px 80px;
  }
  .an-hero {
    margin-bottom: 16px;
  }
  .an-greeting {
    font-size: 22px;
    letter-spacing: -0.3px;
  }
  .an-day-counter { font-size: 12px; }
  .an-motto { font-size: 13px; }

  /* Rings compact */
  .an-score-section {
    margin-top: 12px;
    margin-bottom: 20px;
  }
  .an-triple-rings-wrap {
    width: 150px;
    height: 150px;
    margin-bottom: 16px;
  }
  .an-ring-bg, .an-ring-fill { stroke-width: 14; }
  .an-ring-inner-multi {
    width: 60px;
    height: 60px;
  }
  .an-ring-value { font-size: 30px; }
  .an-ring-label { font-size: 7px; letter-spacing: 1px; }

  /* Score status */
  .an-score-status {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 16px;
  }

  /* Ring legends inline */
  .an-ring-legends {
    gap: 6px;
    margin-bottom: 16px;
  }
  .ring-legend {
    font-size: 9px;
    padding: 3px 8px;
    gap: 4px;
  }

  /* Mini stats 2x2 grid */
  .an-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 4px;
    border-radius: 16px;
    width: 100%;
  }
  .an-mini-divider { display: none; }
  .an-mini-stat {
    padding: 8px 4px;
    min-width: unset;
  }
  .an-mini-val { font-size: 16px; }
  .an-mini-lbl { font-size: 9px; letter-spacing: 0.8px; }

  /* Insight card */
  .an-insight-card {
    padding: 14px 16px;
    font-size: 12px;
    border-radius: 16px;
    margin-bottom: 24px;
  }

  /* Journey cards: horizontal scroll */
  .an-journeys-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 24px;
    max-width: 100%;
    width: 100%;
  }
  .an-journeys-grid::-webkit-scrollbar { display: none; }
  .alive-journey-card {
    min-width: 240px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 18px 16px;
    border-radius: 18px;
  }
  .alive-add-card {
    min-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 140px;
  }

  /* Section labels */
  .an-section-label { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 10px; }
  .an-section-label-wide { max-width: 100%; }

  /* Today/Schedule sections compact */
  .an-today-section { margin-bottom: 20px; }
  .an-today-list li { font-size: 13px; gap: 8px; }

  /* Reflection compact */
  .an-reflection { margin-bottom: 20px; }
  .an-reflection-input { font-size: 14px; min-height: 50px; }

  /* Time distribution compact */
  .an-time-dist { margin-bottom: 24px; }

  /* Projection compact */
  .an-projection { margin-bottom: 28px; }
  .an-proj-text { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .alive-home { padding: 100px 40px 140px; }
  .an-journeys-grid { 
    grid-template-columns: repeat(3, 1fr); 
    max-width: 780px; 
  }
}

/* ═══════════════════════════════════════════════════════
   9. LIFE ROUTINE PAGE
   ═══════════════════════════════════════════════════════ */
#liferoutine {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.lr-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lr-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.lr-bottom-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

#lrTelegramSettings {
  grid-column: 1 / -1;
  width: 100%;
}
@media (max-width: 768px) {
  .lr-bottom-row {
    grid-template-columns: 1fr;
  }
  #liferoutine {
    padding: 16px;
  }
}

/* Heatmap Grid */
.lr-heatmap-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.lr-heatmap-scroll::-webkit-scrollbar { height: 6px; }
.lr-heatmap-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.lr-heatmap {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 4px;
  width: max-content;
}

.lr-heatmap-cell {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
}
.lr-heatmap-cell:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
}
.lr-cell-1 { background: rgba(52, 199, 89, 0.3); }
.lr-cell-2 { background: rgba(52, 199, 89, 0.6); }
.lr-cell-3 { background: rgba(52, 199, 89, 1); box-shadow: 0 0 10px rgba(52,199,89,0.4); }

.lr-heatmap-months {
  display: flex;
  font-size: 10px;
  color: var(--text-muted);
  gap: 40px;
  margin-top: 8px;
  margin-left: 10px;
}

/* Habits List */
.lr-habit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  transition: all 0.2s;
  cursor: pointer;
}
.lr-habit-item:hover {
  background: rgba(255,255,255,0.05);
}
.lr-habit-item.completed {
  opacity: 0.6;
}
.lr-habit-item.completed .lr-habit-name {
  text-decoration: line-through;
}
.lr-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lr-habit-item.completed .lr-checkbox {
  background: #34c759;
  border-color: #34c759;
}
.lr-habit-item.completed .lr-checkbox::after {
  content: "✔";
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}
.lr-habit-name {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  flex-grow: 1;
}

/* Timeline */
.lr-timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lr-time-block {
  display: flex;
  height: 32px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.02);
}
.lr-time-lbl {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  border-right: 1px solid rgba(0,0,0,0.5);
}
.lr-time-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s;
}
.lr-time-content:hover {
  background: rgba(255,255,255,0.05);
}
.lr-time-block.active .lr-time-lbl {
  background: #3b82f6;
  color: #fff;
}
.lr-time-block.active .lr-time-content {
  background: rgba(59,130,246,0.1);
  color: #fff;
  border-left: 3px solid #3b82f6;
}

/* ═══════════════ RICH WEATHER WIDGET ═══════════════ */
.aw-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 32px;
  color: #fff;
  font-family: inherit;
  animation: an-fade-up 0.9s ease-out backwards;
}

.aw-header-out {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.aw-home-icon {
  color: #ccc;
}

.aw-location {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.aw-main-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 24px;
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Disable floating animation on desktop too — it causes layout jank */
@media (min-width: 769px) {
  .aw-main-box {
    animation: floatSlight 6s ease-in-out infinite alternate;
  }
  .aw-main-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 25px 50px rgba(0,0,0,0.4);
  }
}

@keyframes floatSlight {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.aw-top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  align-items: flex-start;
}

.aw-current-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.aw-time {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.aw-body-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.aw-big-icon {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

/* Disable floating icon animation on mobile */
@media (min-width: 769px) {
  .aw-big-icon {
    animation: floatIcon 4s ease-in-out infinite alternate;
  }
}

@keyframes floatIcon {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-6px) scale(1.03); }
}

.aw-temp {
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2px;
  display: flex;
  align-items: flex-start;
}

.aw-deg {
  font-size: 28px;
  margin-top: 8px;
  color: rgba(255,255,255,0.8);
}

.aw-cond-group {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aw-condition {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.aw-feels-like {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.aw-desc-sentence {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.aw-stats-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.aw-stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 70px;
}

.aw-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.aw-stat-val {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 6px;
}

.aw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Weather scene layer */
#richWeatherWidget {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#richWeatherWidget > .aw-main-box,
#richWeatherWidget > .relative {
  position: relative;
  z-index: 1;
}

#richWeatherWidget .aw-weather-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 204, 102, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(8, 12, 24, 0.56) 0%, rgba(9, 16, 32, 0.86) 100%);
  transition: background 0.6s ease, opacity 0.6s ease;
}

#richWeatherWidget[data-weather-mode="day"] .aw-weather-scene {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 214, 106, 0.22), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(120, 190, 255, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(42, 90, 170, 0.28) 0%, rgba(15, 28, 62, 0.42) 55%, rgba(8, 14, 28, 0.62) 100%);
}

#richWeatherWidget[data-weather-mode="night"] .aw-weather-scene {
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.08), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(116, 90, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.92) 0%, rgba(8, 12, 26, 0.88) 52%, rgba(5, 10, 20, 0.96) 100%);
}

#richWeatherWidget .aw-weather-scene > span {
  position: absolute;
  display: block;
}

#richWeatherWidget .aw-weather-stars {
  inset: 0;
  opacity: var(--aw-scene-stars-opacity, 0.08);
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255,255,255,0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 20% 32%, rgba(255,255,255,0.65) 0 1px, transparent 1.4px),
    radial-gradient(circle at 34% 18%, rgba(255,255,255,0.8) 0 1px, transparent 1.4px),
    radial-gradient(circle at 48% 26%, rgba(255,255,255,0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle at 62% 12%, rgba(255,255,255,0.95) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 74% 34%, rgba(255,255,255,0.62) 0 1px, transparent 1.4px),
    radial-gradient(circle at 88% 20%, rgba(255,255,255,0.84) 0 1px, transparent 1.4px),
    radial-gradient(circle at 14% 74%, rgba(255,255,255,0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 42% 78%, rgba(255,255,255,0.82) 0 1.1px, transparent 1.5px),
    radial-gradient(circle at 80% 68%, rgba(255,255,255,0.75) 0 1px, transparent 1.4px);
  background-size: 100% 100%;
  filter: blur(0.15px);
  animation: weatherStarDrift 180s linear infinite;
}

#richWeatherWidget .aw-weather-halo {
  right: -4%;
  top: 8%;
  width: clamp(180px, 50%, 360px);
  height: clamp(180px, 50%, 360px);
  border-radius: 50%;
  opacity: var(--aw-scene-halo-opacity, 0.4);
  background:
    radial-gradient(circle, rgba(96, 165, 250, 0.26) 0%, rgba(96, 165, 250, 0.14) 18%, rgba(96, 165, 250, 0.05) 36%, transparent 68%);
  filter: blur(12px);
  transform: translate(8%, -4%);
  animation: weatherHaloFloat 18s ease-in-out infinite;
}

#richWeatherWidget .aw-weather-earth {
  right: -8%;
  top: 14%;
  width: clamp(190px, 58%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.92;
  transform: translate(14%, -8%) rotate(var(--aw-scene-rotation, 0deg)) scale(1.02);
  background-color: #06122b;
  background-image:
    var(--aw-earth-image, radial-gradient(circle at 42% 40%, rgba(112, 185, 255, 0.98) 0 18%, rgba(50, 112, 228, 0.96) 28%, rgba(18, 58, 154, 0.97) 47%, rgba(8, 20, 48, 0.99) 67%, rgba(1, 5, 16, 1) 100%)),
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.9) 0 2.5%, rgba(255,255,255,0.22) 3.5% 6%, transparent 7%),
    radial-gradient(circle at 26% 64%, rgba(78, 193, 129, 0.28) 0 8%, transparent 9%),
    radial-gradient(circle at 63% 48%, rgba(56, 168, 111, 0.22) 0 7%, transparent 8%),
    radial-gradient(circle at 58% 70%, rgba(255,255,255,0.14) 0 5%, transparent 6%);
  background-size: cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
  box-shadow:
    0 0 42px rgba(70, 130, 255, 0.2),
    inset -24px -28px 46px rgba(0, 0, 0, 0.45);
  filter: saturate(1.08) brightness(var(--aw-scene-earth-brightness, 1));
  animation: weatherEarthDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}

#richWeatherWidget .aw-weather-earth::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(132deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.14) 18%, rgba(12, 20, 42, 0.34) 46%, rgba(6, 10, 22, 0.9) 100%);
  opacity: var(--aw-scene-terminator-opacity, 0.34);
  mix-blend-mode: multiply;
}

#richWeatherWidget .aw-weather-earth::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 36%, rgba(255,255,255,0.18) 0 4%, transparent 5%),
    radial-gradient(circle at 62% 42%, rgba(255,255,255,0.1) 0 3%, transparent 4%),
    radial-gradient(circle at 44% 68%, rgba(56, 189, 248, 0.14) 0 5%, transparent 6%);
  opacity: var(--aw-scene-cloud-opacity, 0.3);
  filter: blur(0.4px);
  mix-blend-mode: screen;
}

#richWeatherWidget .aw-weather-sun {
  right: 10%;
  top: 10%;
  width: var(--aw-scene-sun-size, 118px);
  height: var(--aw-scene-sun-size, 118px);
  border-radius: 50%;
  opacity: var(--aw-scene-sun-opacity, 0.18);
  background-color: transparent;
  background-image: var(--aw-sun-image, radial-gradient(circle at 38% 36%, rgba(255,255,255,0.95) 0 5%, rgba(255,255,255,0.55) 9% 13%, rgba(255, 227, 114, 0.96) 18% 28%, rgba(255, 159, 53, 0.7) 40%, transparent 68%));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(0.15px) drop-shadow(0 0 18px rgba(255, 188, 65, 0.42));
  animation: weatherSunPulse 4.2s ease-in-out infinite;
}

#richWeatherWidget[data-weather-heat="hot"] .aw-weather-sun {
  animation-duration: 2.4s;
  filter: blur(0.1px) drop-shadow(0 0 26px rgba(255, 178, 50, 0.62));
}

#richWeatherWidget .aw-weather-sun::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 199, 92, 0.22) 0 38%, transparent 72%);
  filter: blur(8px);
}

#richWeatherWidget .aw-weather-moon {
  left: 12%;
  top: 18%;
  width: var(--aw-scene-moon-size, 52px);
  height: var(--aw-scene-moon-size, 52px);
  border-radius: 50%;
  opacity: var(--aw-scene-moon-opacity, 0.08);
  background-color: transparent;
  background-image: var(--aw-moon-image, radial-gradient(circle at 35% 32%, rgba(255,255,255,0.94) 0 14%, rgba(231, 236, 255, 0.65) 30%, rgba(166, 179, 220, 0.22) 56%, transparent 72%));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 18px rgba(221, 229, 255, 0.2);
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.18));
  animation: weatherMoonFloat 6s ease-in-out infinite;
}

#richWeatherWidget .aw-weather-moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(5, 8, 18, 0.92);
  opacity: var(--aw-moon-shadow-opacity, 0.2);
  transform: translateX(var(--aw-moon-shadow-offset, 0px)) scaleX(1.03);
  filter: blur(0.5px);
  mix-blend-mode: multiply;
}

#richWeatherWidget[data-weather-mode="day"] .aw-weather-moon {
  opacity: 0.05;
}

#richWeatherWidget[data-weather-mode="night"] .aw-weather-sun {
  opacity: 0.05;
}

#richWeatherWidget .aw-weather-scene,
#richWeatherWidget .aw-weather-earth,
#richWeatherWidget .aw-weather-sun,
#richWeatherWidget .aw-weather-moon,
#richWeatherWidget .aw-weather-halo {
  will-change: transform, opacity, filter;
}

@keyframes weatherStarDrift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-1.5%, 1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes weatherHaloFloat {
  0%, 100% { transform: translate(8%, -4%) scale(1.01); }
  50% { transform: translate(4%, -7%) scale(1.04); }
}

@keyframes weatherEarthDrift {
  0% { transform: translate(14%, -8%) rotate(var(--aw-scene-rotation, 0deg)) scale(1.01); }
  50% { transform: translate(10%, -10%) rotate(var(--aw-scene-rotation, 0deg)) scale(1.03); }
  100% { transform: translate(14%, -8%) rotate(var(--aw-scene-rotation, 0deg)) scale(1.01); }
}

@keyframes weatherSunPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.06); }
}

@keyframes weatherMoonFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(3px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  #richWeatherWidget .aw-weather-scene,
  #richWeatherWidget .aw-weather-earth,
  #richWeatherWidget .aw-weather-sun,
  #richWeatherWidget .aw-weather-moon,
  #richWeatherWidget .aw-weather-halo,
  #richWeatherWidget .aw-weather-stars {
    animation: none !important;
  }
}

/* ═══════════════ DASHBOARD GRID LAYOUT ═══════════════ */
.an-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  align-items: start;
  margin: 0 auto 32px;
}

.an-dash-col-left, .an-dash-col-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  align-items: center;
}

.an-dash-col-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1024px) {
  .an-dashboard-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
  }
}

/* ═══════════════ NEWS WIDGET ═══════════════ */
.an-news-container {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 20px;
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.3);
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  animation: an-fade-up 0.9s ease-out backwards;
}

/* Disable floating news animation on mobile */
@media (min-width: 769px) {
  .an-news-container {
    animation: an-fade-up 0.9s ease-out backwards, floatSlightNews 7s ease-in-out infinite alternate;
  }
  .an-news-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 25px 50px rgba(0,0,0,0.4);
  }
}

@keyframes floatSlightNews {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.an-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.an-news-loc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

.an-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 180px;
}

.an-news-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  background: transparent;
  color: inherit;
  transition: all 0.3s ease;
  animation: an-fade-in-right 0.6s ease-out backwards;
}

@keyframes an-fade-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.an-news-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(6px);
  border-bottom-color: transparent;
}

.an-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.an-news-title {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-news-time {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

.an-news-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.an-news-footer {
  margin-top: 16px;
  text-align: right;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.an-sync-dot {
  width: 6px;
  height: 6px;
  background: #34C759;
  border-radius: 50%;
  box-shadow: 0 0 6px #34C759;
  animation: an-pulse 2s infinite;
}

@keyframes an-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.an-news-loading {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 20px 0;
}

/* ═══════════════ MOBILE & RESPONSIVE FIXES ═══════════════ */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .an-dashboard-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    padding: 0 12px;
    width: 100vw;
    max-width: 100vw;
    margin-bottom: 24px;
    overflow-x: hidden;
  }
  
  .an-dash-col-left, .an-dash-col-center, .an-dash-col-right {
    width: 100%;
    max-width: 100vw;
    padding: 0;
    overflow: hidden;
  }
  
  /* Weather Overrides */
  .aw-container {
    max-width: 100%;
    margin: 0 0 16px 0;
  }
  
  .aw-main-box {
    padding: 16px;
    border-radius: 20px;
    width: 100%;
  }
  
  .aw-body-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .aw-big-icon, .aw-temp {
    font-size: 56px;
  }
  
  .aw-deg {
    font-size: 20px;
    margin-top: 4px;
  }
  
  .aw-cond-group {
    margin-left: 0;
    width: 100%;
  }
  
  .aw-stats-row {
    justify-content: flex-start;
    gap: 12px 24px;
  }
  
  .aw-stat-item {
    min-width: calc(33% - 16px);
  }

  /* Score Section Rings Overrides */
  .an-score-section {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .an-ring-legends {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  
  .ring-legend {
    font-size: 10px;
    padding: 4px 10px;
  }

  .an-mini-stats {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    width: 100%;
    justify-content: center;
  }

  .an-mini-divider {
    display: none;
  }
  
  .an-mini-stat {
    min-width: 40%;
  }
  
  /* News Overrides */
  .an-news-container {
    max-width: 100%;
    padding: 16px;
    width: 100%;
  }
  
  .an-news-img {
    width: 60px;
    height: 60px;
  }
  
  .an-news-title {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .aw-big-icon, .aw-temp {
    font-size: 48px;
  }
  .aw-stat-item {
    min-width: calc(50% - 12px);
  }
  .an-news-item {
    gap: 8px;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â• REFRESH BUTTONS â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.an-refresh-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.an-refresh-btn:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: #60a5fa;
  transform: rotate(90deg);
}
.an-refresh-btn:active {
  transform: rotate(180deg) scale(0.9);
}
.an-refresh-btn.spinning {
  animation: spin-refresh 0.8s linear infinite;
  color: #60a5fa;
  border-color: rgba(59,130,246,0.4);
}
@keyframes spin-refresh {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* -------------------------------------------------------
   FOOTER STYLES
   ------------------------------------------------------- */
.an-footer {
  margin-top: 60px;
  padding-top: 30px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-family: inherit;
}

.an-footer-content p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
}

.an-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.an-footer-links a, .an-footer-links span {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.an-footer-links a:hover {
  color: var(--sf-blue);
}

.dot-sep {
  font-size: 8px;
  opacity: 0.4;
}

/* -------------------------------------------------------
   MICRO-ANIMATIONS (SCROLL REVEAL)
   ------------------------------------------------------- */
.an-reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.an-reveal-up.an-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------
   MOBILE ACCORDIONS & MUSIC
   ------------------------------------------------------- */
.an-accordion {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.an-accordion summary {
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.an-accordion summary::-webkit-details-marker { display: none; }
.an-accordion summary::after {
  content: '?';
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
}
.an-accordion[open] summary::after { transform: rotate(180deg); }
.an-accordion[open] { background: rgba(255, 255, 255, 0.06); }
.an-accordion-content {
  padding: 0 16px 16px 16px;
  animation: an-fade-in 0.4s ease;
}

.an-music-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
}
.an-music-card iframe {
  width: 100%;
  border: none;
}

@media (max-width: 768px) {
  .an-triple-rings-wrap { transform: scale(0.75); margin: -20px auto; }
  .aw-container { margin-top: 8px !important; }
  .an-dash-col-left, .an-dash-col-right { gap: 8px; }
}

@media (max-width: 768px) {
  .an-dashboard-grid { display: flex; flex-direction: column; }
  .an-dash-col-center { order: -2; }
  .an-dash-col-left { order: -1; }
  .an-dash-col-right { order: 0; }
  .an-inline-row { flex-direction: column; gap:8px; }
}
