:root {
  --bg: #0a0a1a;
  --bg2: #0f0f22;
  --bg3: #1a1a2e;
  --card: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --text2: #888;
  --blue: #00d4ff;
  --pink: #ff2d78;
  --green: #00ff88;
  --orange: #ff9500;
  --red: #ff3b3b;
  --purple: #a855f7;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a0a1a 0%, #0d0d2b 30%, #1a0a2e 60%, #0a0a1a 100%);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  background: transparent;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  position: relative;
}

/* Animated background grid */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(168,85,247,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,212,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255,45,120,0.04) 0%, transparent 50%);
  background-size: 100% 100%;
  animation: bgShift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bgShift {
  0%, 100% { opacity: 1; }
  33% { opacity: 0.7; background-position: 10% 0%; }
  66% { opacity: 0.85; background-position: -10% 5%; }
}

/* Floating grid overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 0; }

/* Page container */
.page { display:none; padding: calc(env(safe-area-inset-top, 44px) + 12px) 16px 24px; animation: fadeIn 0.3s ease; position: relative; z-index: 1; }
.page.active { display:block; }

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

/* Typography */
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: 17px; font-weight: 600; }
.subtitle { color: var(--text2); font-size: 14px; margin-top: 2px; }
.section-title {
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text2); margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--purple);
  position: relative;
}

/* Cards */
.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card:active { transform: scale(0.98); }
.card.glow-blue { box-shadow: 0 0 30px rgba(0,212,255,0.12), 0 4px 20px rgba(0,0,0,0.3); border-color: rgba(0,212,255,0.25); }
.card.glow-pink { box-shadow: 0 0 30px rgba(255,45,120,0.12), 0 4px 20px rgba(0,0,0,0.3); border-color: rgba(255,45,120,0.25); }
.card.glow-green { box-shadow: 0 0 30px rgba(0,255,136,0.12), 0 4px 20px rgba(0,0,0,0.3); border-color: rgba(0,255,136,0.25); }

/* Glow effects for key numbers */
.glow-number-blue { text-shadow: 0 0 20px rgba(0,212,255,0.5), 0 0 40px rgba(0,212,255,0.2); }
.glow-number-green { text-shadow: 0 0 20px rgba(0,255,136,0.5), 0 0 40px rgba(0,255,136,0.2); }
.glow-number-pink { text-shadow: 0 0 20px rgba(255,45,120,0.5), 0 0 40px rgba(255,45,120,0.2); }
.glow-number-orange { text-shadow: 0 0 20px rgba(255,149,0,0.5), 0 0 40px rgba(255,149,0,0.2); }
.glow-number-purple { text-shadow: 0 0 20px rgba(168,85,247,0.5), 0 0 40px rgba(168,85,247,0.2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px;
  border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.94); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), #0099cc); color: #000; box-shadow: 0 4px 15px rgba(0,212,255,0.25); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,212,255,0.35); }
.btn-pink { background: linear-gradient(135deg, var(--pink), #cc1155); color: #fff; box-shadow: 0 4px 15px rgba(255,45,120,0.25); }
.btn-green { background: linear-gradient(135deg, var(--green), #00cc66); color: #000; box-shadow: 0 4px 15px rgba(0,255,136,0.25); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.btn-full { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* Inputs */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 15px rgba(0,212,255,0.1); }
select { -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group { margin-bottom: 14px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

/* Bottom Nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(10,10,26,0.75);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border-top: 1px solid rgba(168,85,247,0.15);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4), 0 -1px 0 rgba(0,212,255,0.08);
  display: flex;
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--text2);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav-item:active { transform: scale(0.92); }
.nav-item.active { color: var(--blue); }
.nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.nav-icon { font-size: 22px; }

/* Circular Progress */
.ring-container { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ring-container svg { transform: rotate(-90deg); filter: drop-shadow(0 0 6px rgba(0,212,255,0.3)); }
.ring-container .ring-bg { stroke: var(--bg3); }
.ring-container .ring-fill { transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.ring-center { position: absolute; text-align: center; }
.ring-value { font-size: 36px; font-weight: 800; }
.ring-label { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }

/* Progress Bar */
.progress-bar {
  width: 100%; height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-green { background: rgba(0,255,136,0.15); color: var(--green); }
.badge-orange { background: rgba(255,149,0,0.15); color: var(--orange); }
.badge-red { background: rgba(255,59,59,0.15); color: var(--red); }
.badge-blue { background: rgba(0,212,255,0.15); color: var(--blue); }
.badge-pink { background: rgba(255,45,120,0.15); color: var(--pink); }
.badge-purple { background: rgba(168,85,247,0.15); color: var(--purple); }

/* Streak */
.streak-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg, rgba(255,149,0,0.2), rgba(255,45,120,0.2));
  border: 1px solid rgba(255,149,0,0.3);
  animation: streakPulse 2s ease-in-out infinite;
}
@keyframes streakPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,149,0,0.2); }
  50% { box-shadow: 0 0 25px rgba(255,149,0,0.4); }
}

/* Water tracker */
.water-grid {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin: 16px 0;
}
.water-glass {
  width: 44px; height: 56px;
  border-radius: 8px;
  border: 2px solid var(--glass-border);
  background: var(--bg3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.water-glass.filled {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}
.water-glass .water-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(0,212,255,0.6), rgba(0,212,255,0.9));
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 6px 6px;
}
.water-glass.filled .water-fill { height: 100%; }
.water-glass::after {
  content: '💧';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.water-glass.filled::after { opacity: 1; }

/* Week dots */
.week-dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0; }
.week-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--bg3);
  color: var(--text2);
  border: 2px solid transparent;
}
.week-dot.active { background: rgba(0,255,136,0.15); color: var(--green); border-color: var(--green); box-shadow: 0 0 10px rgba(0,255,136,0.2); }
.week-dot.today { border-color: var(--blue); }

/* Transaction list */
.tx-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}
.tx-item:last-child { border-bottom: none; }
.tx-amount { font-weight: 700; font-size: 16px; }
.tx-amount.positive { color: var(--green); text-shadow: 0 0 10px rgba(0,255,136,0.3); }
.tx-amount.negative { color: var(--red); }
.tx-date { font-size: 12px; color: var(--text2); }

/* Deadline item */
.deadline-item {
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.deadline-item.urgent-red { border-left: 3px solid var(--red); box-shadow: inset 3px 0 15px rgba(255,59,59,0.05); }
.deadline-item.urgent-orange { border-left: 3px solid var(--orange); box-shadow: inset 3px 0 15px rgba(255,149,0,0.05); }
.deadline-item.urgent-green { border-left: 3px solid var(--green); }
.deadline-item .countdown { font-size: 24px; font-weight: 800; margin: 6px 0; }
.deadline-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Meal item */
.meal-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.meal-icon { font-size: 24px; }
.meal-info { flex: 1; }
.meal-info .meal-type { font-weight: 600; text-transform: capitalize; }
.meal-info .meal-macros { font-size: 12px; color: var(--text2); }
.meal-time { font-size: 12px; color: var(--text2); }

/* Gym session */
.gym-item {
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.gym-item .gym-desc { font-weight: 600; margin-bottom: 4px; }
.gym-item .gym-meta { font-size: 12px; color: var(--text2); display: flex; gap: 12px; }

/* Modal */
.modal-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s;
}
.modal {
  background: linear-gradient(180deg, var(--bg2), #0a0a1a);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(168,85,247,0.2);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal h2 { margin-bottom: 18px; }
.modal-handle {
  width: 40px; height: 4px;
  background: var(--text2);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* Countup animation */
.countup { display: inline-block; }

/* Quote */
.quote-card {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(255,45,120,0.1));
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(168,85,247,0.08), transparent 60%);
  animation: quoteGlow 4s ease-in-out infinite;
}
@keyframes quoteGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.quote-text { font-size: 16px; font-weight: 600; font-style: italic; line-height: 1.5; position: relative; z-index: 1; }
.quote-icon { font-size: 24px; margin-bottom: 8px; position: relative; z-index: 1; }

/* Overview mini cards */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.overview-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.overview-card:active { transform: scale(0.97); }
.overview-card:hover { border-color: rgba(255,255,255,0.15); }
.overview-card .ov-icon { font-size: 20px; margin-bottom: 6px; }
.overview-card .ov-title { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.overview-card .ov-value { font-size: 20px; font-weight: 800; margin-top: 2px; }

/* Month chart */
.month-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin: 12px 0; }
.month-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 10px rgba(0,212,255,0.2);
}
.month-bar .bar-label {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: var(--text2); white-space: nowrap;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text2);
}
.empty-state .empty-icon { font-size: 40px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* Delete button */
.delete-btn {
  width: 28px; height: 28px;
  border: none; background: rgba(255,59,59,0.1);
  color: var(--red);
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.delete-btn:hover { background: rgba(255,59,59,0.2); transform: scale(1.1); }

/* Header row */
.header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.header-row h1, .header-row h2 { margin: 0; }

/* Date nav */
.date-nav { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 16px; }
.date-nav .date-label { font-size: 16px; font-weight: 700; min-width: 140px; text-align: center; }
.date-nav button { background: var(--bg3); border: none; color: var(--text); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; display:flex;align-items:center;justify-content:center; transition: all 0.2s; }
.date-nav button:hover { background: rgba(255,255,255,0.1); }

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }

/* Animate number */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: countUp 0.5s ease forwards; }

/* ===== AUSTRALIA COUNTDOWN ===== */
.australia-countdown {
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(255,149,0,0.12), rgba(255,45,120,0.12));
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  animation: countdownGlow 3s ease-in-out infinite;
}
@keyframes countdownGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.15), 0 0 40px rgba(255,149,0,0.08); }
  50% { box-shadow: 0 0 35px rgba(0,212,255,0.25), 0 0 60px rgba(255,149,0,0.15); }
}
.australia-countdown .au-flag { font-size: 40px; margin-bottom: 6px; animation: auPulse 2s ease-in-out infinite; }
@keyframes auPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.australia-countdown .au-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text2); margin-bottom: 12px; }
.au-digits { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.au-digit-box { text-align: center; }
.au-digit-box .au-num { font-size: 38px; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; filter: drop-shadow(0 0 8px rgba(0,212,255,0.3)); }
.au-digit-box .au-lbl { font-size: 10px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }
.au-separator { font-size: 28px; font-weight: 300; color: var(--text2); line-height: 1.4; }
.australia-countdown .au-dest { font-size: 13px; color: var(--text2); margin-top: 4px; }
.australia-countdown .au-dest span { color: var(--orange); font-weight: 700; }

/* ===== MOOD CHECK-IN ===== */
.mood-section { margin-bottom: 14px; }
.mood-buttons { display: flex; gap: 10px; justify-content: center; margin: 12px 0 8px; }
.mood-btn {
  width: 64px; height: 64px;
  border-radius: 16px;
  border: 2px solid var(--glass-border);
  background: var(--glass);
  font-size: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mood-btn:active { transform: scale(0.92); }
.mood-btn:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }
.mood-btn.selected { border-color: var(--blue); box-shadow: 0 0 20px rgba(0,212,255,0.3); background: rgba(0,212,255,0.1); }
.mood-history { display: flex; gap: 6px; justify-content: center; font-size: 22px; padding: 8px 0; }
.mood-history .mood-day { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mood-history .mood-day-label { font-size: 9px; color: var(--text2); font-weight: 600; }

/* ===== SLEEP TRACKER ===== */
.sleep-section { margin-bottom: 14px; }
.sleep-inputs { display: flex; gap: 10px; align-items: flex-end; }
.sleep-inputs .form-group { flex: 1; margin-bottom: 0; }
.sleep-result { text-align: center; margin-top: 12px; font-size: 22px; font-weight: 800; }
.sleep-week { display: flex; gap: 4px; justify-content: center; margin-top: 10px; }
.sleep-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.sleep-bar { width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; transition: height 0.5s ease; min-height: 2px; }
.sleep-bar-label { font-size: 9px; color: var(--text2); font-weight: 600; }
.sleep-bar-value { font-size: 9px; font-weight: 700; }

/* ===== GOALS BOARD ===== */
.goals-grid { display: flex; flex-direction: column; gap: 10px; }
.goal-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.goal-item:hover { border-color: rgba(255,255,255,0.15); }
.goal-icon { font-size: 24px; flex-shrink: 0; }
.goal-info { flex: 1; min-width: 0; }
.goal-info .goal-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.goal-info .goal-status { font-size: 12px; color: var(--text2); }
.goal-progress-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.goal-progress-fill { height: 100%; border-radius: 3px; transition: width 1s ease; box-shadow: 0 0 6px rgba(0,212,255,0.3); }

/* ===== EXPENSE TRACKER ===== */
.expense-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.expense-cat-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 6px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 24px;
  min-height: 60px;
  transition: all 0.2s;
}
.expense-cat-btn:active { transform: scale(0.95); }
.expense-cat-btn:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }
.expense-cat-btn .cat-label { font-size: 10px; color: var(--text2); font-weight: 600; margin-top: 4px; }
.expense-view-toggle { display: flex; gap: 4px; background: var(--bg3); border-radius: 8px; padding: 3px; margin-bottom: 12px; }
.expense-view-btn {
  flex: 1; padding: 8px; text-align: center; border-radius: 6px; border: none;
  background: transparent; color: var(--text2); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.expense-view-btn.active { background: rgba(255,255,255,0.08); color: var(--text); }
.expense-bars { display: flex; flex-direction: column; gap: 8px; }
.expense-bar-row { display: flex; align-items: center; gap: 8px; }
.expense-bar-row .eb-icon { font-size: 16px; width: 24px; text-align: center; }
.expense-bar-row .eb-track { flex: 1; height: 20px; background: var(--bg3); border-radius: 4px; overflow: hidden; position: relative; }
.expense-bar-row .eb-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; display: flex; align-items: center; padding-left: 6px; }
.expense-bar-row .eb-fill span { font-size: 10px; font-weight: 700; color: #000; white-space: nowrap; }
.expense-bar-row .eb-amount { font-size: 12px; font-weight: 700; min-width: 50px; text-align: right; }

/* ===== WEEKLY PLANNER OVERLAY ===== */
.planner-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #0d0d2b 30%, #1a0a2e 60%, #0a0a1a 100%);
  z-index: 300;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: calc(env(safe-area-inset-top, 20px) + 12px) 16px calc(24px + var(--safe-bottom));
}
.planner-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.planner-close {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.planner-close:hover { background: rgba(255,255,255,0.1); }
.planner-day {
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.planner-day-header {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: space-between;
}
.planner-day-header.today-header { border-left: 3px solid var(--blue); }
.planner-block {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--glass-border);
  position: relative;
}
.planner-block .pb-color { width: 4px; height: 28px; border-radius: 2px; flex-shrink: 0; }
.planner-block .pb-info { flex: 1; }
.planner-block .pb-name { font-weight: 600; font-size: 13px; }
.planner-block .pb-time { font-size: 11px; color: var(--text2); }
.planner-add-btn {
  padding: 8px 14px; border-top: 1px solid var(--glass-border);
  font-size: 12px; color: var(--text2); cursor: pointer; text-align: center;
  transition: color 0.2s;
}
.planner-add-btn:active { color: var(--blue); }

/* Planner category colors */
.plan-cat-work { background: var(--blue); }
.plan-cat-uni { background: var(--purple); }
.plan-cat-gym { background: var(--green); }
.plan-cat-pool { background: var(--orange); }
.plan-cat-tt { background: var(--pink); }
.plan-cat-other { background: var(--text2); }

/* Home planner button */
.planner-home-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(0,212,255,0.12));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px; font-weight: 700;
  margin-bottom: 14px;
  transition: all 0.2s;
}
.planner-home-btn:active { transform: scale(0.98); }
.planner-home-btn:hover { border-color: rgba(168,85,247,0.4); box-shadow: 0 0 20px rgba(168,85,247,0.15); }

/* card2 for inner bg */
.card2 { background: var(--bg3); }

/* ===== DAILY BRIEFING ===== */
.briefing-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(168,85,247,0.08));
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.briefing-greeting {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.briefing-summary {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 12px;
  line-height: 1.5;
}
.briefing-insight {
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--purple);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== WEEKLY REPORT OVERLAY ===== */
.report-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #0d0d2b 30%, #1a0a2e 60%, #0a0a1a 100%);
  z-index: 300;
  overflow-y: auto;
  animation: reportSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: calc(env(safe-area-inset-top, 20px) + 12px) 16px calc(24px + var(--safe-bottom));
}
@keyframes reportSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.report-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.report-close {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.report-close:hover { background: rgba(255,255,255,0.1); }
.report-grade {
  font-size: 72px;
  font-weight: 900;
  text-align: center;
  margin: 20px 0;
  line-height: 1;
}
.report-grade.grade-a { background: linear-gradient(135deg, var(--green), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 20px rgba(0,255,136,0.4)); }
.report-grade.grade-b { background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 20px rgba(0,212,255,0.4)); }
.report-grade.grade-c { background: linear-gradient(135deg, var(--orange), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 20px rgba(255,149,0,0.4)); }
.report-grade.grade-d { background: linear-gradient(135deg, var(--orange), var(--red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 20px rgba(255,149,0,0.4)); }
.report-grade.grade-f { background: linear-gradient(135deg, var(--red), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 20px rgba(255,59,59,0.4)); }
.report-stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.report-stat-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--purple);
}
.report-stat-value {
  font-size: 24px;
  font-weight: 800;
}
.report-stat-detail {
  font-size: 13px;
  color: var(--text2);
  margin-top: 4px;
}
.report-mood-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 28px;
  margin: 8px 0;
}

/* Weekly Report Home Button */
.report-home-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,255,136,0.12));
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px; font-weight: 700;
  margin-bottom: 14px;
  transition: all 0.2s;
}
.report-home-btn:active { transform: scale(0.98); }
.report-home-btn:hover { border-color: rgba(0,212,255,0.4); box-shadow: 0 0 20px rgba(0,212,255,0.15); }

/* ===== NOTIFICATION PROMPT ===== */
.notif-prompt {
  background: linear-gradient(135deg, rgba(255,149,0,0.1), rgba(255,45,120,0.08));
  border: 1px solid rgba(255,149,0,0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.notif-prompt:hover { border-color: rgba(255,149,0,0.4); }
.notif-prompt:active { transform: scale(0.98); }
.notif-prompt .notif-icon { font-size: 28px; flex-shrink: 0; }
.notif-prompt .notif-text { flex: 1; }
.notif-prompt .notif-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.notif-prompt .notif-desc { font-size: 12px; color: var(--text2); }
