@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --bg-dark: #ffffff;
  --bg-card: #f9f9f9;
  --bg-card-border: #e6e6e6;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  
  /* Running Theme Variables (Nike Volt style) */
  --run-primary: #84cc16;
  --run-secondary: #baff00;
  --run-gradient: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
  --run-glow: rgba(0, 0, 0, 0.05);
  
  /* Squat Theme Variables */
  --squat-primary: #ff3366;
  --squat-secondary: #ff3366;
  --squat-gradient: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
  --squat-glow: rgba(0, 0, 0, 0.05);
  
  /* Glassmorphism Details -> NRC Minimal clean shadows */
  --glass-blur: none;
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --volt-color: #cfff00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  background-color: #0f1013;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Device Shell Mockup */
.device-wrapper {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 932px; /* iPhone 15 Pro Ratio */
  background: var(--bg-dark);
  border: 12px solid #111111;
  border-radius: 48px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.device-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 16px 40px 16px;
  position: relative;
  scrollbar-width: none;
}

.device-screen::-webkit-scrollbar {
  display: none;
}

/* Status Bar & Notch */
.device-header {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  background: var(--bg-dark);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 10;
  flex-shrink: 0;
}

.device-notch {
  width: 110px;
  height: 30px;
  background: #111111;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
}

/* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 10px;
}

.app-logo {
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  color: #111111;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo span {
  font-size: 11px;
  background: #111111;
  color: var(--volt-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 900;
  font-style: italic;
}

.points-badge {
  background: #111111;
  color: var(--volt-color);
  padding: 6px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.points-badge i {
  color: var(--volt-color);
}

/* Top Dashboard Summary Card (Streak + Highlights) */
.top-summary-card {
  background: #111111;
  border: none;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  flex-shrink: 0;
}

.summary-streak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.summary-streak-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.summary-streak-title strong {
  color: var(--volt-color);
}

.summary-streak-badge {
  background: var(--volt-color);
  color: #111111;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(207, 255, 0, 0.3);
}

.summary-highlights-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-highlight-title {
  font-size: 11px;
  font-weight: 800;
  color: #777777;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.summary-highlight-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.4;
  color: #dddddd;
}

.highlight-badge-mini {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.highlight-badge-mini.run {
  background: rgba(255, 255, 255, 0.1);
  color: var(--volt-color);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.highlight-badge-mini.squat {
  background: rgba(255, 51, 102, 0.15);
  color: #ff8fa3;
  border: 1px solid rgba(255, 51, 102, 0.25);
}

.highlight-badge-mini.calorie {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Section Group Divider Title */
.section-divider {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 10px 0 12px 6px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* General Card Styles */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.glass-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

.card-title {
  font-size: 17px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

/* Daily Workout Gage Section */
.workout-progress-section {
  text-align: center;
}

.progress-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.workout-value {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
}

.workout-unit {
  font-size: 16px;
  color: var(--text-secondary);
  margin-left: 4px;
  font-weight: 700;
}

/* Segmented Progress Bar */
.segmented-progress-container {
  position: relative;
  height: 12px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  margin: 30px 10px 45px 10px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.run-active .progress-bar-fill {
  background: #a3e635;
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.3);
}

.squat-active .progress-bar-fill {
  background: #ff3366;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
}

/* Milestone Markers */
.milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.milestone-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dddddd;
  border: 3px solid #f9f9f9;
  transition: var(--transition-smooth);
}

.milestone.reached .milestone-dot {
  background: #111111;
  transform: scale(1.1);
}

.run-active .milestone.reached .milestone-dot {
  border-color: #111111;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.squat-active .milestone.reached .milestone-dot {
  border-color: #ff3366;
  box-shadow: 0 0 6px rgba(255, 51, 102, 0.15);
}

.milestone-label {
  position: absolute;
  top: -24px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.milestone.reached .milestone-label {
  color: #111111;
}

/* Reward Buttons on Milestones */
.reward-btn {
  position: absolute;
  top: 24px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  width: 44px;
  height: 24px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  cursor: not-allowed;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.reward-btn.active {
  background: #111111;
  color: var(--volt-color);
  border-color: #111111;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  animation: pulse 1.5s infinite;
}

.reward-btn.claimed {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  border-color: transparent;
  cursor: default;
  box-shadow: none;
  animation: none;
}

/* Action Start Button */
.btn-primary-action {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  border: none;
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: none;
  margin-top: 10px;
}

.btn-primary-action.run-btn {
  background: #111111;
  color: #ffffff;
}

.btn-primary-action.run-btn:hover {
  background: #2a2a2a;
}

.btn-primary-action.squat-btn {
  background: #111111;
  color: #ffffff;
}

.btn-primary-action.squat-btn:hover {
  background: #2a2a2a;
}

/* Unified Weekly Challenge Card (with integrated raffle reviews) */
.weekly-challenge-card {
  border: none;
  background: #111111;
  color: #ffffff;
}

.weekly-challenge-card .card-title {
  color: #ffffff;
}

.weekly-challenge-card .card-subtitle {
  color: #888888;
}

.weekly-challenge-card .challenge-header-info {
  color: #ffffff;
}

.challenge-row {
  margin-bottom: 20px;
}

.challenge-header-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.challenge-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.challenge-fill {
  height: 100%;
  width: 0%;
  transition: width 0.8s ease;
}

#run-weekly-fill {
  background: var(--volt-color);
  box-shadow: 0 0 10px rgba(207, 255, 0, 0.4);
}

#squat-weekly-fill {
  background: #ff3366;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.btn-raffle-entry {
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  border: none;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  cursor: not-allowed;
  transition: var(--transition-smooth);
}

.btn-raffle-entry.locked {
  background: rgba(255, 255, 255, 0.08);
  color: #777777;
}

.btn-raffle-entry.active {
  background: var(--volt-color);
  color: #111111;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(207, 255, 0, 0.2);
  animation: pulse 1.5s infinite;
}

.btn-raffle-entry.claimed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  cursor: pointer;
  animation: none;
  transition: var(--transition-smooth);
}

.btn-raffle-entry.claimed:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* Weekly prizes inside challenge card */
.weekly-prizes-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.weekly-prizes-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--volt-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.weekly-prizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weekly-prize-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}

.weekly-prize-item img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  margin-bottom: 4px;
  border-radius: 8px;
}

.weekly-prize-name {
  font-size: 11px;
  font-weight: 700;
  color: #dddddd;
}

/* Integrated Reviews Feed block (Sub-box inside challenge card) */
.weekly-reviews-sub-box {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  margin-top: 18px;
}

.weekly-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
}

.weekly-reviews-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
}

/* Review Feed List Style */
.review-feed-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.review-item {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 14px;
  align-items: center;
  transition: var(--transition-smooth);
}

.review-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.review-prize-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.review-content-box {
  flex: 1;
  min-width: 0;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.review-user {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.review-prize {
  font-size: 9px;
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.review-text {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.refresh-indicator {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Graphs Section Wrapper with Floating Action Buttons */
.graphs-relative-wrapper {
  position: relative;
  width: 100%;
}

/* Floating Date Change Navigation Buttons - with visibility trigger */
.floating-nav-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(17, 20, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 242, 254, 0.1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
}

.floating-nav-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--run-primary);
  transform: translateY(-50%) scale(1.1);
}

.floating-nav-btn.prev {
  left: 26px; /* Bound to device mockup edges */
}

.floating-nav-btn.next {
  right: 26px;
}

.floating-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Custom Interactive Swipe SVG Charts */
.chart-viewbox {
  position: relative;
  overflow: hidden;
  height: 210px;
  width: 100%;
  margin-bottom: 4px;
  touch-action: pan-y;
  cursor: grab;
}

.chart-viewbox:active {
  cursor: grabbing;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-axis-line {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 1;
}

.chart-grid-text {
  fill: var(--text-muted);
  font-size: 9px;
  font-weight: 500;
}

.chart-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  opacity: 0.15;
}

.chart-nav-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-swipe-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.chart-swipe-btn:hover {
  color: white;
}

/* Modals & Dialog overlays */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 24px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111111;
}

.modal-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Permission List Item */
.perm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 8px;
  text-align: left;
}

.perm-icon {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #475569;
}

.perm-text {
  flex: 1;
}

.perm-name {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}

.perm-desc {
  font-size: 11px;
  color: #64748b;
}

.perm-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: transparent;
}

.perm-check.agreed {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.modal-action-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-secondary {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-accent {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: #111111;
  border: none;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-accent:hover {
  background: #2a2a2a;
}

.btn-accent-squat {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: var(--squat-gradient);
  border: none;
  color: white;
  font-weight: 800;
  cursor: pointer;
}
}

/* Success Point Particle Overlay */
.particle-point {
  position: absolute;
  color: #fbbf24;
  font-weight: 900;
  font-size: 20px;
  pointer-events: none;
  animation: floatUp 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  z-index: 200;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateY(-20px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-80px) scale(1); }
}

/* Countdown Overlay */
.countdown-screen {
  background: radial-gradient(circle at center, #161c2d 0%, #050608 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.countdown-number {
  font-size: 120px;
  font-weight: 900;
  background: var(--run-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: countdownPulse 1s ease infinite;
}

.countdown-label {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-top: 20px;
}

@keyframes countdownPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Form Styling in Review Dialog */
.textarea-review {
  width: 100%;
  height: 80px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #111111;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  margin-bottom: 12px;
  outline: none;
  transition: var(--transition-smooth);
}

.textarea-review:focus {
  border-color: #111111;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.05);
}

/* Responsive adjustments */
@media (max-height: 940px) {
  .device-wrapper {
    height: 100vh;
    border: none;
    border-radius: 0;
  }
  .floating-nav-btn {
    top: 62%;
  }
  .floating-nav-btn.prev {
    left: 10px;
  }
  .floating-nav-btn.next {
    right: 10px;
  }
}

/* Weekly Calendar Section */
.weekly-calendar-section {
  margin-bottom: 20px;
}

.weekly-calendar-container {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
}

.calendar-day-col {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border-radius: 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  position: relative;
}

.calendar-day-col:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.calendar-day-col.today {
  border: 1.5px solid #111111;
  background: rgba(0, 0, 0, 0.04);
}

.calendar-day-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
}

.calendar-day-col.today .calendar-day-label {
  color: #111111;
}

.calendar-day-date {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.calendar-day-indicators {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: var(--transition-smooth);
}

.indicator-dot.run {
  background: var(--run-primary);
  box-shadow: 0 0 6px var(--run-primary);
}

.indicator-dot.squat {
  background: var(--squat-primary);
  box-shadow: 0 0 6px var(--squat-primary);
}

/* Day Coloring based on workouts */
/* Day Coloring based on workouts - High contrast premium colors */
.calendar-day-col.workout-run {
  background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
  border-color: #84cc16;
}
.calendar-day-col.workout-run .calendar-day-label,
.calendar-day-col.workout-run .calendar-day-date {
  color: #ffffff;
}

.calendar-day-col.workout-squat {
  background: linear-gradient(135deg, #ff6b8b 0%, #ff3366 100%);
  border-color: #ff3366;
}
.calendar-day-col.workout-squat .calendar-day-label,
.calendar-day-col.workout-squat .calendar-day-date {
  color: #ffffff;
}

.calendar-day-col.workout-both {
  background: #4f46e5;
  border-color: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.calendar-day-col.workout-both .calendar-day-label,
.calendar-day-col.workout-both .calendar-day-date {
  color: #ffffff;
}

.calendar-day-badge {
  font-size: 14px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
}

/* Onboarding Section styling */
.onboarding-section {
  border: 1.5px solid rgba(207, 255, 0, 0.3);
  background: linear-gradient(135deg, rgba(207, 255, 0, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  position: relative;
  overflow: hidden;
}

.onboarding-section::after {
  content: 'WELCOME';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  color: rgba(207, 255, 0, 0.04);
  pointer-events: none;
}

.onboarding-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-prize-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 10px;
  border-radius: 16px;
}

.onboarding-prize-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
}

.onboarding-prize-info {
  text-align: left;
  min-width: 0;
  flex: 1;
}

.onboarding-prize-title {
  font-size: 13px;
  font-weight: 800;
  color: #111111;
  white-space: normal;
  word-break: keep-all;
}

.onboarding-prize-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: normal;
  word-break: keep-all;
}

.btn-onboarding-reward {
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  border: none;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  cursor: not-allowed;
  transition: var(--transition-smooth);
}

.btn-onboarding-reward.locked {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

.btn-onboarding-reward.active {
  background: var(--volt-color);
  color: #111111;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(207, 255, 0, 0.2);
  animation: pulse 1.5s infinite;
}

.btn-onboarding-reward.claimed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  cursor: default;
  animation: none;
}

/* MGM 친구 초대 섹션 스타일 */
.mgm-section {
  border: 1.5px solid rgba(132, 204, 22, 0.3);
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  position: relative;
  overflow: hidden;
}

.mgm-section::after {
  content: 'INVITE';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  color: rgba(132, 204, 22, 0.04);
  pointer-events: none;
}

.mgm-info-box {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 12px;
  border-radius: 16px;
  text-align: left;
}

.mgm-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mgm-code-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

#my-mgm-code {
  font-size: 16px;
  font-weight: 800;
  color: #111111;
  letter-spacing: 0.5px;
}

.btn-copy-code,
.btn-share-code {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-code:hover,
.btn-share-code:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.mgm-stats-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mgm-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.mgm-progress-fill {
  height: 100%;
  width: 30%;
  background: var(--run-primary);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.btn-mgm-reward {
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  border: none;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-mgm-reward.active {
  background: var(--run-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.2);
}

.btn-mgm-reward.active:hover {
  background: #65a30d;
}

.btn-mgm-reward.limit {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.mgm-badge {
  background: #ffffff;
  color: var(--run-primary);
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
  display: inline-block;
  line-height: 1.2;
  transition: var(--transition-smooth);
}

.btn-mgm-reward.limit .mgm-badge {
  display: none !important;
}

.btn-mgm-reward.locked {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-mgm-reward.locked .mgm-badge {
  background: #cbd5e1;
  color: #94a3b8;
}

/* MGM Banner Styles */
.mgm-banner-section {
  border: 1px solid rgba(132, 204, 22, 0.25);
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 14px 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mgm-banner-section:hover {
  border-color: rgba(132, 204, 22, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(132, 204, 22, 0.08);
}

.mgm-banner-section:active {
  transform: translateY(0) scale(0.98);
}

.mgm-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mgm-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mgm-banner-icon {
  font-size: 16px;
}

.mgm-banner-title {
  font-size: 13px;
  font-weight: 800;
  color: #111111;
}

.mgm-banner-right {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mgm-banner-right i {
  font-size: 9px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.mgm-banner-section:hover .mgm-banner-right i {
  transform: translateX(2px);
}

