* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #0d162e 50%, rgb(16, 12, 67) 100%);
  color: #e8e8e8;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 500;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.header {
  text-align: center;
  margin-bottom: 1rem;
  padding: 2rem 0;
  border-bottom: 3px solid rgba(147, 51, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.header-content {
  flex: 1;
  min-width: 300px;
}

.header h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #825df1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(90, 31, 145, 0.4);
  letter-spacing: -1px;
}

.header .subtitle {
  font-size: 1.2rem;
  color: #c0c0c0;
  font-weight: 600;
}
.subtitle2 {
  font-size: 0.75rem;
  color: #949494;
  font-weight: 600;
}

/* Floating Day/Time indicator */
.floating-indicator {
  display: block;
  position: absolute; /* ease-follow scroll to keep it visible */
  right: 16px;
  top: 300px; /* initial; JS will animate Y */
  z-index: 9999;
  width: 240px;
  padding: 0.85rem 0.95rem 0.95rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(147,51,234,0.22) 0%, rgba(6,182,212,0.16) 100%);
  border: 6px solid rgba(147, 51, 234, 0.45);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.28);
  backdrop-filter: blur(4px);
  color: #e8e8e8;
  pointer-events: auto;
}

.floating-indicator .fi-badge{
  position:absolute;
  width:90px; height:90px;
  top:-34px; left:-25px; /* hangs slightly outside the box */
  /* border-radius:12px; */
  /* box-shadow:0 8px 24px rgba(0,0,0,0.35); */
  z-index:1; /* above panel background, below close button */
  pointer-events:none; /* don’t block clicks */
  object-fit:cover; /* nice scaling if not square */
  image-rendering:auto;
}

.floating-indicator .fi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

/* always edit in setupFloatingIndicator as well */
.floating-indicator .fi-title {
  position: absolute;
  padding: 10px;
  left: 55px;
  top: 2px;
  z-index:10;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #84cc16;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.floating-indicator .fi-day {
  position: relative;
  text-decoration: underline;
  font-size: 2.2rem;
  font-weight: 900;
  z-index:10;
  color: #a78bfa; /* lavender accent from page palette */
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.floating-indicator .fi-day-sub {
  position: relative;
  font-size: 0.85rem;
  font-weight: 900;
  color: #a78bfa; /* lavender accent from page palette */
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.floating-indicator .fi-sub {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: #c0c0c0;
  font-weight: 600;
  line-height: 1.35;
}

.floating-indicator .fi-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  color: #cfcfcf;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.08s ease;
}
.floating-indicator .fi-close:hover { 
  background: rgba(147, 51, 234, 0.25);
  color: #fff;
}
.floating-indicator .fi-close:active { transform: scale(0.96); }

@media (max-width: 600px) {
  .floating-indicator {
      width: 200px;
      right: 10px;
      padding: 0.7rem 0.8rem 0.8rem 0.8rem;
  }
  .floating-indicator .fi-day { 
    position: relative;
    font-size: 1.6rem; 
    z-index:10;
  }
  .floating-indicator .fi-badge{
    width:72px; height:72px;
    top:-16px; left:-16px;
  }
  .floating-indicator .fi-title{
    font-size: 0.65rem;
    z-index:10;
  }
}

.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.countdown-label {
  color: #84cc16;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.flipbook-clock {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flip-card {
  position: relative;
  width: 80px;
  height: 100px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
}

.flip-card.flipping .flip-card-inner {
  transform: rotateX(-180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  border: 2px solid rgba(132, 204, 22, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.flip-card-back {
  transform: rotateX(180deg);
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
}

.flip-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', monospace;
}

.flip-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #84cc16;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.separator {
  font-size: 2rem;
  color: #06b6d4;
  font-weight: 900;
  margin: 0 0.5rem;
}

.date-display {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: rgba(6, 182, 212, 0.15);
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  color: #06b6d4;
  font-weight: 700;
  font-size: 1.1rem;
}

.section {
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2.5rem;
  border: 2px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.1);
}

.section h2 {
  color: #9333ea;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(147, 51, 234, 0.3);
}

.section h3 {
  color: #06b6d4;
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
  font-weight: 700;
}

.questions {
  background: rgba(147, 51, 234, 0.15);
  border-radius: 10px;
  padding: 0.5rem;
  margin: 1.5rem 0;
  border-left: 5px solid #9333ea;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.question {
  font-style: italic;
  color: #d0d0d0;
  margin: 0.8rem 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.tip {
  margin: 1.5rem 0;
  padding-left: 1rem;
}

.tip-title {
  font-weight: 800;
  color: #84cc16;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.examples {
  background: rgba(132, 204, 22, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid #84cc16;
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.1);
}

.example-item {
  margin: 0.7rem 0;
  color: #c8c8c8;
  font-weight: 500;
}

.warning {
  background: rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid #06b6d4;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.good-example {
  color: #84cc16;
  margin: 0.5rem 0;
  font-weight: 600;
}

.bad-example {
  color: #ef4444;
  margin: 0.5rem 0;
  font-weight: 600;
}

.resources {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-link {
  display: block;
  background: rgba(147, 51, 234, 0.15);
  color: #9333ea;
  text-decoration: none;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  border: 2px solid rgba(147, 51, 234, 0.4);
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 1.1rem;
}

.resource-link:hover {
  background: rgba(147, 51, 234, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
  border-color: rgba(147, 51, 234, 0.6);
}

.discord-instructions {
  background: rgba(6, 182, 212, 0.15);
  border-radius: 10px;
  padding: 1rem 2rem;
  margin-top: 1.5rem;
  border: 2px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.discord-instructions .role-request {
  color: #06d46d;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  background: rgba(6, 212, 78, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin: 0.25rem 0;
  font-size: 1rem;
}


.resources {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.resource-card {
  background: rgba(147, 51, 234, 0.15);
  padding: 1rem 2rem;
  border-radius: 10px;
  border: 2px solid rgba(147, 51, 234, 0.4);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.1);
}

.resource-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}


.resource-icon {
width: 48px;
height: 48px;
border-radius: 8px;
flex-shrink: 0;
}

.resource-text a {
font-weight: 600;
color: var(--accent);
text-decoration: none;
}

.resource-text a:hover {
text-decoration: underline;
}

.resource-desc {
font-size: 0.9rem;
color: #a0a0a0;
margin-top: 0.4rem;
}

.resource-title {
  color: #9333ea;
  font-size: 1.3rem;
  font-weight: 700;
}

.resource-description {
  color: #c0c0c0;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  color: #0a0a0a;
  text-decoration: none;
  padding: 0.4rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

.resource-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 204, 22, 0.4);
  background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
}

.link-icon {
  font-size: 0.9rem;
}

.discord-instructions h3 {
  color: #06b6d4;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.discord-instructions p {
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: #e0e0e0;
}

.role-request {
  color: #06b6d4;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  background: rgba(6, 182, 212, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
  margin: 0.2rem;
  font-size: 1rem;
}

.tracker-mockup {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1px;
  padding: 0rem 1rem 2rem 1rem;
  margin: 1.0rem 0;
  border: 2px dashed rgba(147, 51, 234, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin: 1rem 0;
}

.day-box {
  aspect-ratio: 1;
  background: rgba(147, 51, 234, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #9333ea;
  font-weight: 700;
  border: 1px solid rgba(147, 51, 234, 0.4);
}

.day-box.completed {
  background: #84cc16;
  color: #0a0a0a;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(132, 204, 22, 0.4);
}

.stats-mockup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stat-card {
  background: rgba(147, 51, 234, 0.15);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.1);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #84cc16;
  text-shadow: 0 2px 4px rgba(132, 204, 22, 0.3);
}

.stat-label {
  color: #b0b0b0;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.nav-container {
  margin: 1.0rem 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

.nav-buttons {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 0.5rem;
  gap: 0.75rem;
  border: 2px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.nav-btn {
  background: transparent;
  border: none;
  color: #c0c0c0;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.4rem 3rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.8s ease;
  font-family: inherit;
}

.nav-btn:hover {
  color: #9333ea;
  background: rgba(147, 51, 234, 0.1);
}

.nav-btn.active {
  background: #9333ea;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.month-calendar {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(147, 51, 234, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.1);
}

.month-title {
  color: #9333ea;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 1rem;
}

.day-header {
  background: rgba(145, 145, 145, 0.2);
  color: #a47ec7;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 0.2rem;
  text-align: center;
  border-radius: 4px;
}

.calendar-date {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.challenge-counter {
  position: absolute;
  bottom: -3px;
  right: 2px;
  font-size: 0.66rem;
  color: #ffa500; /* or something subtle */
  opacity: 0.5;
}

.calendar-date.other-month {
  color: #222;
  background: rgba(255, 255, 255, 0.02);
}

.calendar-date.current-month {
  color: #c0c0c0;
  background: rgba(255, 255, 255, 0.05);
}

.calendar-date.challenge-day {
  background: rgba(147, 51, 234, 0.3);
  color: #ffffff;
  border: 1px solid rgba(147, 51, 234, 0.5);
}

.calendar-date.today {
  background: #84cc16;
  border: 2px solid #8dff6d;
  color: #0a0a0a;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(132, 204, 22, 0.4);
}

/* .calendar-date.challenge-day.today {
  background: linear-gradient(135deg, #84cc16 0%, #9333ea 100%);
  color: #ffffff;
  border: 2px solid #06b6d4;
} */

/* Passed days: diagonal strike + 50% opacity */
.calendar-date { position: relative; } /* ensure pseudo-element positions correctly */

.calendar-date.passed {
  opacity: 0.40;
}
.calendar-date.other-month.passed {
  opacity: 0.20;
}

.calendar-date.passed::after {
  content: "";
  position: absolute;
  inset: 0;                 /* cover the whole day square */
  pointer-events: none;
  border-radius: 6px;       /* match your day rounded corners if any */
  /* Diagonal strike: subtle repeating diagonal lines */
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.25) 0 2px,
    transparent 2px 6px
  );
}


.legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.challenge {
  background: rgba(147, 51, 234, 0.6);
  border: 1px solid rgba(147, 51, 234, 0.8);
}

.legend-color.today {
  background: #84cc16;
}

.legend-color.both {
  background: linear-gradient(135deg, #84cc16 0%, #9333ea 100%);
  border: 1px solid #06b6d4;
}

.cta {
  text-align: center;
  margin: 3rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(132, 204, 22, 0.15) 50%, rgba(6, 182, 212, 0.15) 100%);
  border-radius: 15px;
  border: 2px solid rgba(147, 51, 234, 0.4);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.2);
}

.cta h2 {
  color: #9333ea;
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 2.2rem;
}

.cta p {
  font-size: 1.2rem;
  color: #d0d0d0;
  font-weight: 600;
}

@media (max-width: 600px) {
  .container {
      padding: 1rem;
  }
  
  .header {
      flex-direction: column;
      gap: 1rem;
  }
  
  .header-content {
      min-width: auto;
  }
  
  .header h1 {
      font-size: 2.2rem;
  }
  
  .flip-card {
      width: 60px;
      height: 80px;
  }
  
  .flip-number {
      font-size: 2rem;
  }
  
  .flipbook-clock {
      gap: 0.5rem;
  }
  
  .countdown-container {
      order: -1;
  }
  
  .section {
      padding: 2rem;
  }
  
  .section h2 {
      font-size: 1.7rem;
  }
  
  .tracker-grid {
      grid-template-columns: repeat(5, 1fr);
  }
}