/* ==========================================================================
   Karina Focus Space - Aesthetics Inspired by Flocus
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --font-primary: 'Nunito', system-ui, sans-serif;
  --font-heading: 'Fredoka', 'Outfit', sans-serif;
  --font-timer: 'Outfit', 'Fredoka', sans-serif;

  --accent-purple: #EE4266;
  --accent-pink: #FF6584;
  --rose-accent: #EE4266;
  --rose-dark: #3A1C25;
  --accent-pink-glow: rgba(238, 66, 102, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-bg-card: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(255, 183, 197, 0.7);
  --text-light: #3A1C25;
  --text-muted: #6B3244;
  --radius-full: 9999px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-lg: 0 20px 50px rgba(238, 66, 102, 0.18);
}

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

body, html {
  width: 100%;
  font-family: var(--font-primary);
  color: #3A1C25;
  user-select: none;
  background: linear-gradient(135deg, #FFF0F5 0%, #FFEBEF 35%, #FFF8FA 70%, #FCE4EC 100%);
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  overscroll-behavior-y: contain;
}

/* Background Wallpaper Overlay System (Romantic Theme Permanent) */
.focus-bg-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, #FFF0F5 0%, #FFEBEF 35%, #FFF8FA 70%, #FCE4EC 100%);
  background-size: cover;
  background-position: center;
}

.focus-bg-overlay {
  display: none !important;
}

/* Romantic Floating Particles Canvas System */
.romantic-particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 1 !important;
}

/* Main App Shell Layout */
.focus-app {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 36px;
  box-sizing: border-box;
}

/* Header Bar */
.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
}

.focus-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #EE4266;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.focus-brand:hover {
  transform: scale(1.04);
}

.focus-logo-icon {
  font-size: 1.8rem;
  line-height: 1;
  display: inline-block;
  transform-origin: center center;
  animation: flowerBreathingGlow 4s ease-in-out infinite;
  user-select: none;
  transition: filter 0.4s ease;
  will-change: filter;
}

@keyframes flowerBreathingGlow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(255, 101, 132, 0.35)) drop-shadow(0 0 12px rgba(238, 66, 102, 0.2));
  }
  50% {
    transform: scale(1.14) rotate(5deg);
    filter: drop-shadow(0 0 16px rgba(255, 101, 132, 0.85)) drop-shadow(0 0 28px rgba(238, 66, 102, 0.5));
  }
}

.focus-brand:hover .focus-logo-icon {
  filter: drop-shadow(0 0 18px rgba(255, 101, 132, 0.95)) drop-shadow(0 0 32px rgba(238, 66, 102, 0.65));
}

.focus-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #EE4266, #FF6584, #D81B60);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  transition: filter 0.3s ease;
}

.focus-brand:hover .focus-logo-text {
  color: #FF477E;
  text-shadow: 0 0 16px rgba(238, 66, 102, 0.35);
}

.focus-quote {
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.88) 100%);
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 183, 197, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(238, 66, 102, 0.12), inset 0 1px 1px rgba(255, 255, 255, 1);
  user-select: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-sizing: border-box;
  width: max-content;
  flex-shrink: 0;
}

.quote-sparkle {
  font-size: 0.92rem;
  line-height: 1;
  display: inline-block;
  animation: floatSparkle 2.5s ease-in-out infinite alternate;
}

@keyframes floatSparkle {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.25) rotate(12deg); }
}

.quote-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #3A1C25 0%, #EE4266 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.focus-quote:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFEBF0 100%);
  border-color: rgba(238, 66, 102, 0.45);
  box-shadow: 0 10px 28px rgba(238, 66, 102, 0.25), 0 0 14px rgba(255, 101, 132, 0.3);
}

/* Main Center Layout */
.focus-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: max(30px, calc(45vh - 240px));
  text-align: center;
  flex-grow: 1;
  width: 100%;
}

.focus-question {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #3A1C25;
  margin-bottom: 22px;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.95), 0 4px 18px rgba(238, 66, 102, 0.15);
  letter-spacing: -0.2px;
  transition: opacity 0.2s ease-out;
  will-change: opacity;
}

.focus-question.changing {
  opacity: 0;
}

/* Timer Mode Tabs - Glass Segmented Control */
.timer-mode-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(238, 66, 102, 0.25);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(238, 66, 102, 0.12);
  margin-bottom: 16px;
}

.mode-tab-glider {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #FF6584, #EE4266);
  box-shadow: 0 6px 20px rgba(238, 66, 102, 0.4);
  transition: transform 0.42s cubic-bezier(0.34, 1.45, 0.64, 1), width 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.mode-tab-btn {
  position: relative;
  z-index: 2;
  height: 42px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none;
  outline: none;
  border-radius: var(--radius-full);
  color: #6B3244;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.3s ease;
}

.mode-tab-btn:hover {
  color: #EE4266;
}

.mode-tab-btn.active {
  color: #FFFFFF !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Sub-Panels Container with fast, responsive height expand (pushes main timer down gracefully) */
.sub-panel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0px;
  margin-bottom: 0px;
  opacity: 0;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
  transition: height 0.24s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.sub-panel-container.active {
  height: 52px;
  margin-bottom: 16px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
}

.mode-sub-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(238, 66, 102, 0.22);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(238, 66, 102, 0.1);
  margin-bottom: 0;
  will-change: opacity;
}

@keyframes subPanelPureFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.sub-panel-label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #3A1C25;
  font-weight: 800;
  margin-right: 4px;
}

/* Static, Non-jumping Uniform Button Design System */
.sub-option-btn, .preset-pill-btn {
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(238, 66, 102, 0.28);
  outline: none;
  border-radius: var(--radius-full);
  color: #6B3244;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.sub-option-btn {
  min-width: 98px;
}

.preset-pill-btn {
  min-width: 50px;
  height: 36px;
  padding: 0 14px;
}

.sub-option-btn:hover, .preset-pill-btn:hover {
  color: #EE4266;
  background: #FFFFFF;
  border-color: rgba(238, 66, 102, 0.6);
  box-shadow: 0 4px 12px rgba(238, 66, 102, 0.12);
}

.sub-option-btn.active, .preset-pill-btn.active {
  background: linear-gradient(135deg, #FF6584, #EE4266) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #EE4266 !important;
  box-shadow: 0 4px 14px rgba(238, 66, 102, 0.35) !important;
}

.custom-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(238, 66, 102, 0.06);
  border: 1.5px solid rgba(238, 66, 102, 0.22);
  height: 38px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  box-sizing: border-box;
  flex-shrink: 0;
}

.stepper-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(238, 66, 102, 0.25);
  border-radius: 50%;
  color: #EE4266;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.stepper-btn:hover {
  background: #FFFFFF;
  border-color: #EE4266;
  transform: none !important;
}

.stepper-btn:active {
  transform: scale(0.92) !important;
}

.stepper-value {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #3A1C25;
  min-width: 62px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  user-select: none;
  white-space: nowrap;
}

.preset-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Larger Stationary Timer Display */
.timer-display-box {
  font-family: var(--font-timer);
  font-size: 10.5rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -4px;
  color: #3A1C25;
  text-shadow: 0 4px 20px rgba(238, 66, 102, 0.2), 0 8px 30px rgba(255, 183, 197, 0.3);
  margin-bottom: 34px;
  will-change: text-shadow;
}

/* Smooth Ambient Glow Animation (Digits stay crisp and clear) */
.timer-display-box.running {
  animation: timerGlowPulse 3s infinite ease-in-out;
}

@keyframes timerGlowPulse {
  0% {
    text-shadow: 
      0 4px 20px rgba(238, 66, 102, 0.2),
      0 8px 30px rgba(255, 183, 197, 0.3);
  }
  50% {
    text-shadow: 
      0 6px 30px rgba(238, 66, 102, 0.4),
      0 12px 40px rgba(255, 183, 197, 0.5);
  }
  100% {
    text-shadow: 
      0 4px 20px rgba(238, 66, 102, 0.2),
      0 8px 30px rgba(255, 183, 197, 0.3);
  }
}

/* Control Buttons Row */
.timer-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-timer-main {
  position: relative;
  padding: 16px 52px;
  background: linear-gradient(135deg, #FF6584 0%, #EE4266 100%);
  border: none;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(238, 66, 102, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  min-width: 160px;
  user-select: none;
  z-index: 1;
  will-change: transform;
}

/* Soft, ambient glowing aura strictly BEHIND the button without altering button surface color */
.btn-timer-main::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(255, 101, 132, 0.6) 0%, rgba(238, 66, 102, 0.6) 100%);
  filter: blur(14px);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
  pointer-events: none;
}

.btn-timer-main:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, #FF6584 0%, #EE4266 100%);
  box-shadow: 0 12px 32px rgba(238, 66, 102, 0.45);
}

.btn-timer-main:hover::before {
  opacity: 0.85;
  transform: scale(1.05);
}

.btn-timer-main:active {
  transform: scale(0.96);
}

.btn-timer-main:active::before {
  opacity: 0.3;
  transform: scale(0.95);
}

.btn-timer-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(238, 66, 102, 0.3);
  border-radius: 50%;
  color: #EE4266;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(238, 66, 102, 0.12);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-timer-icon:hover {
  background: #FFFFFF;
  border-color: #EE4266;
  box-shadow: 0 6px 20px rgba(238, 66, 102, 0.25);
  transform: none;
}

.btn-timer-icon:active {
  transform: scale(0.92);
}

.btn-timer-icon.spin-once svg {
  animation: spin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Bottom Floating Dock */
.focus-bottom-dock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dock-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(238, 66, 102, 0.25);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(238, 66, 102, 0.12);
}

.dock-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: #6B3244;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dock-btn:hover {
  background: rgba(238, 66, 102, 0.12);
  color: #EE4266;
}

#flying-toggle-btn.active {
  background: linear-gradient(135deg, #FF6584, #EE4266) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(238, 66, 102, 0.35);
}

.dock-badge {
  font-size: 0.85rem;
  color: #EE4266;
  font-weight: 800;
}

#focus-streak-count.streak-pop {
  display: inline-block;
  animation: streakPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #EE4266;
}

@keyframes streakPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); color: #FF497C; }
  100% { transform: scale(1); }
}

/* Modal Windows & Overlay */
.focus-widget-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 28, 37, 0.45);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.widget-card {
  width: 90%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(255, 183, 197, 0.8);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #3A1C25;
  box-shadow: 0 24px 60px rgba(238, 66, 102, 0.2), 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.focus-widget-modal.active .widget-card {
  transform: translateY(0) scale(1);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #3A1C25;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(238, 66, 102, 0.08);
  border: none;
  color: #EE4266;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.widget-close-btn:hover {
  background: #EE4266;
  color: #FFFFFF;
}

/* Form Inputs & Textareas */
.widget-input {
  flex: 1;
  background: #FFF5F7;
  border: 1.5px solid rgba(238, 66, 102, 0.2);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #3A1C25;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.widget-input::placeholder {
  color: #B58A96;
}

.widget-input:focus {
  border-color: #EE4266;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(238, 66, 102, 0.15);
}

/* Tasks Widget */
.tasks-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-add-task {
  height: 44px;
  padding: 0 22px;
  background: linear-gradient(135deg, #FF6584, #EE4266);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(238, 66, 102, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-add-task:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(238, 66, 102, 0.5);
}

.tasks-list {
  list-style: none;
  overflow-y: auto;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 245, 247, 0.8);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(238, 66, 102, 0.15);
  transition: all 0.2s ease;
}

.task-item:hover {
  background: #FFFFFF;
  border-color: rgba(238, 66, 102, 0.3);
}

.task-item.completed {
  opacity: 0.6;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: #A87C8A;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #EE4266;
  cursor: pointer;
}

.task-text {
  flex: 1;
  margin: 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3A1C25;
  word-break: break-word;
}

.task-del-btn {
  background: transparent;
  border: none;
  color: #B58A96;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.task-del-btn:hover {
  color: #EE4266;
}

/* Notepad Widget */
.notepad-meta {
  font-size: 0.85rem;
  color: #6B3244;
  font-weight: 700;
  margin-bottom: 12px;
}

.notepad-textarea {
  width: 100%;
  height: 240px;
  background: #FFF5F7;
  border: 1.5px solid rgba(238, 66, 102, 0.2);
  padding: 16px;
  border-radius: var(--radius-md);
  color: #3A1C25;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
}

.notepad-textarea::placeholder {
  color: #B58A96;
}

.notepad-textarea:focus {
  border-color: #EE4266;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(238, 66, 102, 0.15);
}

/* Music Player Widget */
.music-card-premium {
  max-width: 520px;
}

.music-now-playing-card {
  background: linear-gradient(135deg, #FFF0F4 0%, #FFEBF0 100%);
  border: 1px solid rgba(238, 66, 102, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(238, 66, 102, 0.08);
}

.now-playing-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.now-playing-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #3A1C25;
}

.now-playing-subtitle {
  font-size: 0.8rem;
  color: #7A4B59;
  font-weight: 600;
}

.modal-player-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.modal-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-play-main-btn {
  background: linear-gradient(135deg, #FF6584, #EE4266);
  color: #FFFFFF;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 115px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(238, 66, 102, 0.35);
  transition: all 0.2s ease;
}

.modal-play-main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(238, 66, 102, 0.5);
}

.modal-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-play-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 245, 247, 0.9);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid rgba(238, 66, 102, 0.15);
}

.auto-play-toggle-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #3A1C25;
}

.auto-play-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #EE4266;
  cursor: pointer;
}

.playlist-header-meta {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 14px 0 8px 0;
  color: #6B3244;
  display: flex;
  justify-content: space-between;
}

.music-playlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  max-height: 290px;
  overflow-y: auto;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 245, 247, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(238, 66, 102, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.track-item:hover {
  background: #FFFFFF;
  border-color: rgba(238, 66, 102, 0.35);
}

.track-item.active {
  background: linear-gradient(135deg, #FFF0F4, #FFEBEF);
  border: 1.5px solid #EE4266;
  box-shadow: 0 4px 16px rgba(238, 66, 102, 0.15);
}

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

.track-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #3A1C25;
}

.track-artist {
  font-size: 0.78rem;
  color: #7A4B59;
  font-weight: 600;
}

.track-play-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(238, 66, 102, 0.12);
  border: 1px solid rgba(238, 66, 102, 0.2);
  color: #EE4266;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.track-item:hover .track-play-badge,
.track-item.active .track-play-badge {
  background: #EE4266;
  color: #FFFFFF;
  border-color: #EE4266;
  box-shadow: 0 0 12px rgba(238, 66, 102, 0.4);
}

.modal-volume-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(238, 66, 102, 0.15);
  padding-top: 10px;
}

.custom-audio-section {
  border-top: 1px solid rgba(238, 66, 102, 0.15);
  padding-top: 14px;
  margin-top: 14px;
}

.custom-audio-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: #6B3244;
  font-weight: 800;
}

.custom-audio-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(238, 66, 102, 0.08);
  border: 1.5px dashed rgba(238, 66, 102, 0.35);
  border-radius: var(--radius-md);
  color: #EE4266;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.custom-file-upload-btn:hover {
  background: rgba(238, 66, 102, 0.15);
  border-color: #EE4266;
}

/* Main Floating Music Player Bar */
.floating-music-bar {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(238, 66, 102, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(24px);
  box-shadow: 0 14px 40px rgba(238, 66, 102, 0.2);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.floating-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vinyl-disc {
  width: 32px;
  height: 32px;
  background: rgba(238, 66, 102, 0.15);
  border: 1px solid rgba(238, 66, 102, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #EE4266;
}

.float-close-btn {
  background: transparent;
  border: none;
  color: #6B3244;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.float-close-btn:hover {
  color: #EE4266;
  background: rgba(238, 66, 102, 0.12);
}

.track-details {
  display: flex;
  flex-direction: column;
  max-width: 260px;
}

.floating-track-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #3A1C25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-track-artist {
  font-size: 0.78rem;
  color: #7A4B59;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.float-ctrl-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #6B3244;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.float-ctrl-btn:hover {
  color: #EE4266;
  background: rgba(238, 66, 102, 0.14);
  transform: scale(1.06);
}

.float-ctrl-main-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6584, #EE4266);
  border: none;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(238, 66, 102, 0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.float-ctrl-main-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #FF7B96, #F04B6F);
  box-shadow: 0 6px 20px rgba(238, 66, 102, 0.5);
}

.float-ctrl-main-btn:active,
.float-ctrl-btn:active {
  transform: scale(0.94);
}

.floating-volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(238, 66, 102, 0.2);
  padding-left: 14px;
}

.volume-range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 85px;
  height: 6px;
  background: rgba(238, 66, 102, 0.18);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
}

.volume-range-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(238, 66, 102, 0.2);
}

.volume-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #EE4266;
  box-shadow: 0 2px 8px rgba(238, 66, 102, 0.4);
  cursor: pointer;
  margin-top: -4px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.volume-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #FF6584;
}

.volume-range-input::-moz-range-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(238, 66, 102, 0.2);
}

.volume-range-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #EE4266;
  border: none;
  box-shadow: 0 2px 8px rgba(238, 66, 102, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

/* Happiness & Compliments Generator Modal */
.compliment-card-modal {
  width: 520px;
  max-width: 92vw;
  text-align: center;
}

.compliment-subtitle-text {
  font-size: 0.92rem;
  color: #7A4B59;
  font-weight: 600;
  margin-bottom: 16px;
}

.focus-compliment-display-box {
  background: linear-gradient(135deg, #FFF0F4 0%, #FFEBF0 100%);
  border: 2px dashed rgba(238, 66, 102, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 10px rgba(238, 66, 102, 0.05), 0 6px 20px rgba(238, 66, 102, 0.08);
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.focus-compliment-text {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: #3A1C25;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.focus-compliment-text.sparkle-pop {
  animation: complimentPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes complimentPop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.btn-compliment-sparkle {
  background: linear-gradient(135deg, #FF6584, #EE4266);
  color: #FFFFFF;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(238, 66, 102, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-compliment-sparkle:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(238, 66, 102, 0.55);
  background: linear-gradient(135deg, #FF7B98, #FF4B72);
}

/* Flying Emoji Burst Animation */
.romantic-burst-emoji {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  user-select: none;
  animation: emojiExplode 1.2s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}

@keyframes emojiExplode {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  40% {
    opacity: 1;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.3) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx) * 1.3), calc(-50% + var(--ty) * 1.4 + 40px)) scale(0.5) rotate(calc(var(--rot) * 2));
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .focus-app {
    padding: 10px 14px 24px 14px !important;
    justify-content: space-between;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: auto !important;
    box-sizing: border-box;
    overflow-y: visible !important;
  }

  .focus-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    margin-bottom: 14px;
    align-items: center;
    flex-shrink: 0;
  }

  .focus-brand-badge {
    font-size: 1.1rem;
    padding: 6px 14px;
  }

  .focus-quote {
    font-size: 0.88rem;
    padding: 5px 14px;
    margin-bottom: 0;
  }

  .focus-center-stage {
    padding-top: 0 !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .focus-question {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.2;
  }

  .timer-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    max-width: 330px;
    padding: 5px;
    border-radius: var(--radius-lg);
    margin-top: 0;
    margin-bottom: 6px;
  }

  .mode-tab-glider {
    display: none !important;
  }

  .mode-tab-btn {
    height: 34px;
    padding: 0 4px;
    font-size: 0.78rem;
    width: 100%;
    border-radius: var(--radius-md);
    background: transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
  }

  .mode-tab-btn.active {
    background: linear-gradient(135deg, #FF6584, #EE4266) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 10px rgba(238, 66, 102, 0.3);
  }

  /* Subpanels compact mobile styling */
  .sub-panel-container {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }

  .mode-sub-panel {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 330px;
    box-sizing: border-box;
    margin-bottom: 6px;
  }

  .sub-panel-label {
    display: none !important;
  }

  .sub-option-btn, .preset-pill-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 0.76rem;
    flex-shrink: 0;
  }

  .custom-stepper {
    gap: 6px;
    padding: 2px 4px;
  }

  .stepper-btn {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .stepper-value {
    font-size: 0.88rem;
    min-width: 50px;
  }

  .preset-pills {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  /* Symmetrical Hero Timer Digits on Mobile */
  .timer-display-box {
    font-size: 7.8rem;
    letter-spacing: -3px;
    margin-top: 8px;
    margin-bottom: 14px;
    line-height: 1;
  }

  .timer-main-actions {
    gap: 8px;
    margin-bottom: 8px;
  }

  .timer-primary-start-btn {
    height: 34px;
    padding: 0 18px;
    font-size: 0.85rem;
  }

  .timer-circle-action-btn {
    width: 30px;
    height: 30px;
  }

  .timer-circle-action-btn svg {
    width: 14px;
    height: 14px;
  }

  .focus-bottom-dock {
    width: 100%;
    max-width: 380px;
    padding: 8px 8px 28px 8px !important;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
  }

  .dock-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .dock-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  /* Floating Music Bar mobile fit */
  .floating-music-bar {
    width: calc(100% - 24px) !important;
    max-width: 360px !important;
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
  }

  .floating-track-info {
    gap: 8px !important;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .vinyl-disc {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }

  .track-details {
    max-width: 120px !important;
    overflow: hidden !important;
  }

  .floating-track-title {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .floating-track-artist {
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .floating-controls {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .float-ctrl-btn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
  }

  .float-ctrl-main-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .floating-volume-box {
    display: none !important;
  }

  .float-close-btn {
    padding: 2px 6px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }

  /* Widget Modal Cards & Premium Music Player mobile fit */
  .widget-card {
    padding: 18px 14px !important;
    width: calc(100% - 24px) !important;
    max-width: 380px !important;
    border-radius: var(--radius-lg) !important;
  }

  .widget-header {
    margin-bottom: 14px !important;
  }

  .music-now-playing-card {
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
  }

  .now-playing-title {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .now-playing-subtitle {
    font-size: 0.76rem !important;
  }

  .modal-player-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }

  .modal-player-controls {
    justify-content: center !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .modal-play-main-btn {
    padding: 6px 16px !important;
    font-size: 0.82rem !important;
    min-width: 105px !important;
  }

  .modal-volume-row {
    width: 100% !important;
    max-width: 260px !important;
    justify-content: center !important;
  }

  .auto-play-toggle-row {
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
  }

  .auto-play-toggle-label {
    font-size: 0.8rem !important;
  }

  .flying-albert-container {
    padding: 3px 10px !important;
    height: 26px !important;
    font-size: 0.68rem !important;
    max-width: 78vw !important;
    box-shadow: 0 2px 10px rgba(238, 66, 102, 0.2) !important;
    border-radius: var(--radius-full) !important;
  }

  .albert-avatar {
    font-size: 0.78rem !important;
  }

  .albert-text {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
  }

  #toast-container, .toast-container {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .timer-display-box {
    font-size: 6.8rem;
  }

  .mode-tab-btn {
    font-size: 0.74rem;
    padding: 0 2px;
  }

  .sub-option-btn, .preset-pill-btn {
    padding: 0 6px;
    font-size: 0.72rem;
  }
}

/* Flying Albert & Cats Easter Egg Styles - Micro Compact & Elegant */
.flying-albert-container {
  position: fixed;
  z-index: 999;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  max-width: none;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(238, 66, 102, 0.35);
  box-shadow: 0 4px 16px rgba(238, 66, 102, 0.18), 0 0 8px rgba(255, 101, 132, 0.15);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
}

.flying-albert-container:hover {
  transform: scale(1.12) rotate(2deg);
  box-shadow: 0 8px 24px rgba(238, 66, 102, 0.35), 0 0 16px rgba(255, 101, 132, 0.45);
  border-color: #EE4266;
}

.albert-avatar {
  font-size: 0.98rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.albert-text {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  color: #EE4266;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Flight animations with gentle wave */
@keyframes flyLeftToRight {
  0% {
    left: -160px;
    transform: translateY(0px) rotate(-2deg);
  }
  33% {
    transform: translateY(-18px) rotate(2deg);
  }
  66% {
    transform: translateY(12px) rotate(-1deg);
  }
  100% {
    left: 105vw;
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes flyRightToLeft {
  0% {
    left: 105vw;
    transform: translateY(0px) rotate(2deg);
  }
  33% {
    transform: translateY(-15px) rotate(-2deg);
  }
  66% {
    transform: translateY(15px) rotate(1deg);
  }
  100% {
    left: -160px;
    transform: translateY(0px) rotate(0deg);
  }
}

.flying-albert-caught {
  animation: none !important;
  transform: scale(1.1) !important;
  background: linear-gradient(135deg, #FF6584, #EE4266) !important;
  border: none !important;
  box-shadow: 0 8px 30px rgba(238, 66, 102, 0.5), 0 0 20px rgba(255, 101, 132, 0.6) !important;
  padding: 5px 13px;
}

.flying-albert-caught .albert-text {
  color: #FFFFFF !important;
  font-size: 0.82rem;
}

/* ==========================================================================
   Productivity Calendar Widget
   ========================================================================== */

.calendar-card {
  max-width: 520px;
  width: 95%;
  position: relative;
  padding-top: 0;
  overflow: hidden;
}

/* Close button positioned over the banner */
.cal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.cal-close-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Premium Gradient Banner Header */
.cal-header-banner {
  background: linear-gradient(135deg, #FF6584 0%, #EE4266 50%, #D63384 100%);
  margin: -28px -28px 20px -28px;
  padding: 36px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}

/* Decorative circles on banner */
.cal-header-banner::before {
  content: '';
  position: absolute;
  top: -25px;
  right: -25px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cal-header-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -15px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.cal-header-icon {
  font-size: 2.4rem;
  background: rgba(255, 255, 255, 0.2);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cal-header-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.3px;
}

.cal-header-subtitle {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Calendar content padding (since card padding-top is 0) */
.calendar-card .calendar-nav,
.calendar-card .calendar-weekdays,
.calendar-card .calendar-grid,
.calendar-card .cal-day-detail,
.calendar-card .cal-stats-row {
  margin-left: 0;
  margin-right: 0;
}

/* Delete buttons in day detail */
.cal-detail-delete-btn {
  background: none;
  border: none;
  color: rgba(238, 66, 102, 0.5);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.15s ease;
  line-height: 1;
}

.cal-detail-delete-btn:hover {
  color: #EE4266;
  background: rgba(238, 66, 102, 0.1);
  transform: scale(1.2);
}

/* Month Navigation */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 183, 197, 0.7);
  border-radius: 50%;
  background: rgba(255, 240, 245, 0.8);
  color: var(--rose-dark);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: var(--accent-pink);
  color: #fff;
  border-color: var(--accent-pink);
  transform: scale(1.1);
}

.cal-month-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rose-dark);
}

/* Weekday Headers */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 16px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose-dark);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.cal-day:hover:not(.cal-day-empty):not(.cal-day-future) {
  background: rgba(255, 240, 245, 0.9);
  border-color: rgba(255, 183, 197, 0.5);
  transform: scale(1.08);
}

.cal-day-empty {
  cursor: default;
}

.cal-day-future {
  opacity: 0.35;
  cursor: default;
}

.cal-day-today {
  background: linear-gradient(135deg, #FF6584, #EE4266);
  color: #fff;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(238, 66, 102, 0.35);
}

.cal-day-today:hover {
  background: linear-gradient(135deg, #FF6584, #EE4266) !important;
  color: #fff !important;
  transform: scale(1.12);
}

.cal-day-selected {
  border-color: var(--accent-pink) !important;
  background: rgba(238, 66, 102, 0.08);
}

.cal-day-selected.cal-day-today {
  background: linear-gradient(135deg, #FF6584, #EE4266) !important;
  box-shadow: 0 4px 14px rgba(238, 66, 102, 0.35), 0 0 0 3px rgba(238, 66, 102, 0.2);
}

/* Activity Indicators */
.cal-day-number {
  line-height: 1;
  z-index: 1;
}

.cal-day-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 12px;
  margin-top: 1px;
}

.cal-indicator-fire {
  font-size: 0.6rem;
  line-height: 1;
}

.cal-indicator-check {
  font-size: 0.6rem;
  line-height: 1;
}

.cal-indicator-note {
  font-size: 0.6rem;
  line-height: 1;
}

/* Day Detail Panel */
.cal-day-detail {
  background: rgba(255, 240, 245, 0.7);
  border: 1.5px solid rgba(255, 183, 197, 0.5);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  animation: calDetailIn 0.25s ease;
}

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

.cal-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-detail-date {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rose-dark);
}

.cal-detail-badges {
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
}

.cal-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.cal-badge-timer {
  background: rgba(238, 66, 102, 0.12);
  color: var(--accent-pink);
}

.cal-badge-tasks {
  background: rgba(255, 152, 0, 0.12);
  color: #E67E22;
}

.cal-badge-note {
  background: rgba(108, 99, 255, 0.12);
  color: #6C63FF;
}

.cal-detail-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 150px;
  overflow-y: auto;
}

.cal-detail-tasks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 183, 197, 0.3);
}

.cal-detail-tasks li:last-child {
  border-bottom: none;
}

.cal-detail-tasks li::before {
  content: '✓';
  color: #27AE60;
  font-weight: 800;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.cal-detail-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 8px 0;
  opacity: 0.7;
}

.cal-detail-note {
  background: rgba(108, 99, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px !important;
  margin-top: 6px;
  font-style: italic;
  border: 1px solid rgba(108, 99, 255, 0.15);
  display: block !important;
}

.cal-detail-note::before {
  content: none !important;
}

.cal-note-label {
  font-style: normal;
  font-weight: 700;
  color: #6C63FF;
}

/* Stats Footer */
.cal-stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 0 4px;
  border-top: 1.5px solid rgba(255, 183, 197, 0.4);
}

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

.cal-stat-icon {
  font-size: 1.1rem;
}

.cal-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cal-stat-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--rose-dark);
}

/* Calendar scrollable area */
.calendar-card .calendar-grid {
  overflow-y: auto;
}
