@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Dancing+Script:wght@600;700&display=swap');

:root {
  --primary-forest: #5C6B54;
  --secondary-moss: #8B9A7C;
  --mist-blue: #A8B8B0;
  --cream: #F7F5F0;
  --warm-cream: #EDE8DF;
  --text-bark: #4A453E;
  --light-accent: #D8D9C8;
  --shadow: 0 4px 12px rgba(74, 69, 62, 0.08);
  --shadow-moss: rgba(139, 154, 124, 0.3);
  --transition: all 0.25s ease;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #EDEBE6 0%, #E5E3DA 100%), url('/images/nature-background.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text-bark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: var(--primary-forest);
}

button {
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  border: none;
}

textarea, input {
  font-family: 'Sora', sans-serif;
  color: var(--text-bark);
}

/* App Container */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(247, 245, 240, 0.7) 0%, rgba(237, 232, 223, 0.7) 100%), url('/images/nature-background.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* Loading */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 18px;
  color: var(--text-bark);
}

/* Glitter Message (Affirmation) */
.glitter-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-forest);
  font-family: 'Dancing Script', cursive;
  text-align: center;
  z-index: 1000;
  pointer-events: none;
  animation: glitterPulse 3s ease-out forwards;
}

@keyframes glitterPulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
    text-shadow: 0 0 10px rgba(92, 107, 84, 0.5),
                 0 0 20px rgba(139, 154, 124, 0.4),
                 0 0 30px rgba(216, 217, 200, 0.3);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    text-shadow: 0 0 20px rgba(92, 107, 84, 0.8),
                 0 0 40px rgba(139, 154, 124, 0.6),
                 0 0 60px rgba(216, 217, 200, 0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    text-shadow: 0 0 0px rgba(92, 107, 84, 0);
  }
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem;
  background: rgba(237, 232, 223, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 107, 84, 0.2);
  box-shadow: 0 2px 8px rgba(74, 69, 62, 0.06);
  position: relative;
  z-index: 20;
}

.header-content {
  flex: 1;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(237, 232, 223, 0.6);
  border-radius: 8px;
  border: 1px solid var(--primary-forest);
  height: 44px;
}

.upload-song-btn {
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--primary-forest);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  flex-shrink: 0;
}

.upload-song-btn:hover {
  background: rgba(92, 107, 84, 0.15);
}

.upload-song-btn svg {
  width: 18px;
  height: 18px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.volume-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-forest);
  flex-shrink: 0;
}

#volumeSlider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--light-accent);
  border-radius: 2px;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--primary-forest);
  border-radius: 50%;
  cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--primary-forest);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.track-name {
  font-size: 0.75rem;
  color: var(--text-bark);
  opacity: 0.7;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-pause-btn {
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--primary-forest);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.play-pause-btn:hover {
  background: rgba(139, 154, 124, 0.15);
}

.play-pause-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-content h1 {
  font-size: 2.9rem;
  color: var(--primary-forest);
  margin: 0;
  line-height: 1;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-bark);
  opacity: 0.7;
  margin-top: 0.25rem;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
}

.nav-button {
  padding: 0.75rem 1.25rem;
  background: var(--primary-forest);
  color: white;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(92, 107, 84, 0.2);
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 107, 84, 0.3);
}

.nav-button.secondary {
  background: var(--primary-forest);
  box-shadow: 0 2px 8px rgba(92, 107, 84, 0.2);
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-button.secondary:hover {
  box-shadow: 0 4px 12px rgba(92, 107, 84, 0.3);
}

.sign-in-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.optional-text {
  font-size: 0.8rem;
  color: var(--text-bark);
  opacity: 1;
  margin: 0;
  font-weight: 400;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.checkin-view .main-content {
  padding-bottom: 3rem;
}

/* Sections */
.checkin-section,
.challenge-section {
  background: rgba(232, 228, 220, 0.85);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.challenge-section {
  padding-bottom: 1.5rem;
}

.checkin-section h2,
.challenge-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-forest);
}

/* Prompt Card */
.prompt-card {
  background: rgba(222, 217, 208, 0.7);
  border: 2px solid var(--primary-forest);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.prompt-card:hover {
  border-color: var(--secondary-moss);
  box-shadow: 0 4px 12px rgba(92, 107, 84, 0.1);
}

.prompt-header {
  display: inline-block;
  margin-bottom: 1rem;
}

.prompt-icon {
  font-size: 1.8rem;
  color: var(--primary-forest);
  display: inline;
  margin-right: 0.5rem;
}

.challenge-icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--primary-forest);
  fill: var(--primary-forest);
  transition: var(--transition);
}

.challenge-category:hover .challenge-icon {
  fill: rgba(92, 107, 84, 0.1);
  filter: drop-shadow(0 0 4px rgba(92, 107, 84, 0.2));
}

.prompt-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-forest);
  letter-spacing: 0.5px;
}

.prompt-text {
  font-size: 1.1rem;
  color: var(--text-bark);
  line-height: 1.6;
  font-weight: 500;
}

/* Writing Area */
.writing-area {
  margin-bottom: 0.75rem;
}

.gratitude-textarea {
  width: 100%;
  min-height: 180px;
  padding: 1rem;
  border: 2px solid #D5D0C8;
  border-radius: 12px;
  font-size: 1rem;
  resize: vertical;
  transition: var(--transition);
  line-height: 1.6;
  background: #F5F2ED;
}

.gratitude-textarea:focus {
  outline: none;
  border-color: var(--primary-forest);
  box-shadow: 0 0 0 3px rgba(92, 107, 84, 0.1);
}

.gratitude-textarea::placeholder {
  color: var(--text-bark);
  opacity: 0.5;
}

/* Buttons */
.button-primary {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-forest) 0%, #485440 100%);
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Dancing Script', cursive;
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(92, 107, 84, 0.2);
  letter-spacing: 0.5px;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(92, 107, 84, 0.3);
}

.button-primary:active {
  transform: translateY(0);
}

.button-primary.completed {
  background: linear-gradient(135deg, var(--primary-forest) 0%, #485440 100%);
  box-shadow: 0 6px 16px rgba(92, 107, 84, 0.3);
}

.button-primary.secondary-btn {
  background: var(--secondary-moss);
  box-shadow: 0 4px 12px rgba(139, 154, 124, 0.2);
}

.button-primary.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 154, 124, 0.3);
}

/* Challenge Card */
.challenge-card {
  background: rgba(222, 217, 208, 0.7);
  border: 2px solid var(--primary-forest);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.challenge-category {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.category-emoji {
  font-size: 1.8rem;
  color: var(--primary-forest);
}

.category-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-forest);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.challenge-text {
  font-size: 1.15rem;
  color: var(--text-bark);
  line-height: 1.6;
  margin-bottom: 0;
  font-weight: 500;
}

.challenge-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-forest) 0%, #485440 100%);
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Dancing Script', cursive;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(92, 107, 84, 0.2);
}

.challenge-button:hover:not(.completed) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(92, 107, 84, 0.3);
}

.challenge-button.completed {
  background: linear-gradient(135deg, var(--primary-forest) 0%, #485440 100%);
  box-shadow: 0 6px 16px rgba(92, 107, 84, 0.3);
}

/* Celebration */
.celebration {
  position: relative;
  background: linear-gradient(135deg, var(--primary-forest) 0%, #485440 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  animation: slideUp 0.5s ease-out;
  margin-top: 1rem;
}

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

.confetti {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  animation: float 2s ease-in-out forwards;
}

@keyframes float {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-60px);
  }
}

/* Breathing Section */
.breathing-view .main-content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.breathing-section {
  background: rgba(232, 228, 220, 0.85);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.breathing-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-forest);
}

.breathing-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.breathing-info p {
  font-size: 1rem;
  color: var(--text-bark);
  opacity: 0.7;
  line-height: 1.6;
}

.breathing-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guide-step {
  background: rgba(237, 232, 223, 0.75);
  border: 2px solid var(--primary-forest);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-forest);
  font-family: 'Sora', sans-serif;
}

.guide-step p {
  font-size: 0.9rem;
  color: var(--text-bark);
  opacity: 0.8;
  margin: 0;
}

/* Breathing Exercise */
.breathing-exercise {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 2rem 0;
}

.breathing-circle {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-forest) 0%, var(--primary-forest) 100%);
  opacity: 0.2;
}

.breathing-inner {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--primary-forest);
  box-shadow: 0 4px 20px rgba(92, 107, 84, 0.3);
}

.breathing-circle.inhale .breathing-inner {
  animation: breatheIn 4s ease-in-out forwards;
}

.breathing-circle.hold .breathing-inner {
  animation: breatheHold 4s ease-in-out forwards;
}

.breathing-circle.exhale .breathing-inner {
  animation: breatheOut 4s ease-in-out forwards;
}

.breathing-circle.pause .breathing-inner {
  animation: breathePause 4s ease-in-out forwards;
}

@keyframes breatheIn {
  0% { transform: scale(0.8); }
  100% { transform: scale(1.2); }
}

@keyframes breatheOut {
  0% { transform: scale(1.2); }
  100% { transform: scale(0.8); }
}

@keyframes breatheHold {
  0%, 100% { transform: scale(1.2); }
}

@keyframes breathePause {
  0%, 100% { transform: scale(0.8); }
}

.breathing-instruction {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-forest);
  margin: 0;
}

.breathing-cycle {
  font-size: 0.95rem;
  color: var(--text-bark);
  opacity: 0.7;
  margin: 0;
}

/* Account View */
.account-view .main-content {
  padding-bottom: 3rem;
}

.account-section {
  background: rgba(232, 228, 220, 0.85);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.account-header h2 {
  font-size: 2rem;
  color: var(--primary-forest);
  margin: 0;
}

.sign-out-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-forest);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.sign-out-btn:hover {
  opacity: 0.9;
}

/* Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(237, 232, 223, 0.75);
  border: 2px solid var(--primary-forest);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-bark);
  opacity: 0.7;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toggle-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(237, 232, 223, 0.75);
  border: 2px solid var(--light-accent);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bark);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--primary-forest);
  color: white;
  border-color: var(--primary-forest);
}

.toggle-btn:hover {
  border-color: var(--primary-forest);
}

/* Calendar */
.calendar-container {
  background: rgba(237, 232, 223, 0.75);
  border-radius: 12px;
  padding: 1.5rem;
}

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

.calendar-header button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--primary-forest);
  cursor: pointer;
  padding: 0.5rem;
}

.calendar-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-forest);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: default;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-bark);
}

.calendar-day.header {
  font-weight: 600;
  color: var(--primary-forest);
  cursor: default;
  background: transparent;
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day.has-checkin {
  background: var(--primary-forest);
  color: white;
  font-weight: 600;
}

.calendar-day.today {
  border: 2px solid var(--primary-forest);
}

/* Check-ins List */
.checkins-list {
  background: rgba(237, 232, 223, 0.75);
  border-radius: 12px;
  padding: 1.5rem;
}

.checkins-scroll {
  max-height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkin-item {
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid var(--primary-forest);
  padding: 1rem;
  border-radius: 8px;
}

.checkin-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-forest);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.checkin-text {
  font-size: 0.95rem;
  color: var(--text-bark);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.checkin-challenge {
  font-size: 0.85rem;
  color: var(--secondary-moss);
  opacity: 0.8;
}

/* Support Section */
.support-section {
  background: rgba(237, 232, 223, 0.75);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.support-section h3 {
  font-size: 1.2rem;
  color: var(--primary-forest);
  margin-bottom: 0.75rem;
}

.support-section p {
  font-size: 0.95rem;
  color: var(--text-bark);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.appreciation-message {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-forest);
  opacity: 1;
  font-weight: 500;
}

.qr-link {
  display: inline-block;
  transition: var(--transition);
}

.qr-link:hover {
  transform: scale(1.05);
}

.paypal-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(92, 107, 84, 0.2);
}

/* Floating Breath Bubble */
.floating-breath-btn {
  position: fixed;
  top: calc(50% - 35px);
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-forest) 0%, #485440 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(92, 107, 84, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
}

.floating-breath-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(92, 107, 84, 0.5);
}

.floating-breath-btn:active {
  transform: translateY(-4px) scale(1.05);
}

.floating-breath-btn svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

/* Floating Audio Bubble */
.floating-audio-bubble {
  position: fixed;
  top: calc(50% + 35px);
  right: 1rem;
  z-index: 9999;
}

.audio-bubble-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-forest) 0%, #485440 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(92, 107, 84, 0.4);
  transition: all 0.3s ease;
}

.audio-bubble-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(92, 107, 84, 0.5);
}

.audio-bubble-btn:active {
  transform: translateY(-4px) scale(1.05);
}

.audio-bubble-btn svg {
  width: 32px;
  height: 32px;
}

/* Audio Controls */
.audio-controls {
  position: absolute;
  bottom: 90px;
  right: 0;
  background: rgba(232, 228, 220, 0.95);
  border: 2px solid var(--primary-forest);
  border-radius: 12px;
  padding: 0.75rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(92, 107, 84, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideUp 0.3s ease-out;
}

.audio-controls.hidden {
  display: none;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--primary-forest);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.control-btn:hover:not(.hidden) {
  background: #485440;
  transform: scale(1.05);
}

.control-btn svg {
  width: 24px;
  height: 24px;
}

.volume-slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.volume-slider-container .volume-icon {
  color: var(--primary-forest);
}

#floatingVolumeSlider {
  width: 50px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--light-accent);
  border-radius: 2px;
  cursor: pointer;
}

#floatingVolumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--primary-forest);
  border-radius: 50%;
  cursor: pointer;
}

#floatingVolumeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--primary-forest);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

@media (max-width: 600px) {
  .floating-audio-bubble {
    bottom: 85px;
    right: 1.5rem;
  }

  .audio-bubble-btn {
    width: 60px;
    height: 60px;
  }

  .audio-bubble-btn svg {
    width: 28px;
    height: 28px;
  }

  .audio-controls {
    bottom: 80px;
  }
}

.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-forest);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(92, 107, 84, 0.3);
  animation: slideUp 0.3s ease-out;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-content h1 {
    font-size: 2.3rem;
  }

  .nav-button {
    width: 100%;
  }

  .main-content {
    padding: 1rem;
    gap: 1.5rem;
  }

  .checkin-section,
  .challenge-section,
  .account-section {
    padding: 1.5rem;
  }

  .gratitude-textarea {
    min-height: 150px;
  }

  .breathing-circle {
    width: 180px;
    height: 180px;
  }

  .breathing-inner {
    width: 140px;
    height: 140px;
  }

  .breathing-instruction {
    font-size: 1.2rem;
  }

  .breathing-guide {
    grid-template-columns: repeat(2, 1fr);
  }

  .music-controls {
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
  }

  #volumeSlider {
    width: 50px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .account-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .sign-out-btn {
    width: 100%;
  }

  .view-toggle {
    gap: 0.5rem;
  }

  .floating-breath-btn {
    top: calc(50% - 35px);
    right: 0.5rem;
    width: 60px;
    height: 60px;
  }

  .floating-breath-btn svg {
    width: 28px;
    height: 28px;
  }

  .floating-audio-bubble {
    top: calc(50% + 35px);
    right: 0.5rem;
  }

  .support-section {
    padding: 1rem;
  }

  .paypal-qr {
    width: 120px;
    height: 120px;
  }
}

.paypal-qr {
  width: 100px;
  height: 100px;
}

@media (max-width: 400px) {
  .header-content h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .checkin-section h2,
  .challenge-section h2 {
    font-size: 1.4rem;
  }

  .prompt-text,
  .challenge-text {
    font-size: 0.95rem;
  }

  .button-primary,
  .challenge-button {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

/* Footer */
.app-footer {
  background: rgba(232, 228, 220, 0.85);
  border-top: 1px solid var(--light-accent);
  padding: 1.25rem 2rem;
  margin-top: auto;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  z-index: 1001;
}

.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.footer-top .footer-message {
  flex: 1;
  order: 0;
  text-align: center;
  margin-bottom: 0;
}

.footer-top .support-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.footer-top .share-container {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.app-footer .support-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: left;
}

.share-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  position: relative;
}

.share-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.share-wrapper h3 {
  font-size: 1.2rem;
  color: #3A3530;
  margin: 0;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  margin-top: 0.25rem;
  line-height: 1;
}

.qr-container h3 {
  line-height: 1;
}

.share-btn-square {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(92, 107, 84, 0.2);
  flex-shrink: 0;
}

.share-btn-square:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(92, 107, 84, 0.3);
}

.share-btn-square svg {
  width: 36px;
  height: 36px;
  color: var(--primary-forest);
}

.share-menu {
  position: absolute;
  bottom: 110%;
  right: -10px;
  margin-bottom: 0.75rem;
  background: white;
  border: 1px solid var(--light-accent);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(92, 107, 84, 0.15);
  overflow: hidden;
  min-width: 180px;
  animation: slideUp 0.2s ease-out;
  z-index: 1002;
}

.share-menu.hidden {
  display: none;
}

.share-option {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-bark);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  text-align: left;
  font-family: 'Sora', sans-serif;
}

.share-option:hover {
  background: rgba(92, 107, 84, 0.08);
  color: var(--primary-forest);
}

.share-option svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-message {
  text-align: center;
  font-size: 1.15rem;
  margin: 0;
  color: #3A3530;
  font-style: italic;
  font-weight: 600;
  line-height: 1.8;
}



.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.app-footer h3 {
  font-size: 0.8rem;
  margin: 0;
  color: #3A3530;
}

.share-wrapper h3,
.qr-container h3 {
  font-size: 1.2rem !important;
  margin-top: 0.25rem;
  color: #3A3530 !important;
}



.highlight-you {
  font-weight: normal;
  text-decoration: none;
  text-transform: lowercase;
}

.paypal-qr {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .app-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-top {
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: space-between;
  }

  .footer-top .footer-message {
    flex-basis: auto;
    order: 0;
    margin-bottom: 0;
    flex: 1;
    font-size: 0.75rem;
  }

  .footer-top .support-section {
    gap: 0.25rem;
  }

  .footer-top .share-container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .share-menu {
    position: fixed;
    bottom: auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    margin-bottom: 0;
    margin-top: 0;
    width: calc(100% - 3rem);
    max-width: 300px;
  }

  .app-footer h3 {
    font-size: 0.85rem;
  }

  .share-wrapper h3,
  .qr-container h3 {
    font-size: 1rem;
  }

  .footer-message {
    font-size: 0.75rem;
    margin: 0 0 1rem 0;
  }

  .paypal-qr {
    width: 65px;
    height: 65px;
  }

  .share-btn-square {
    width: 75px;
    height: 75px;
  }

  .share-btn-square svg {
    width: 30px;
    height: 30px;
  }

  .qr-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
}
