.dashboard-page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  animation: slideInBottom 0.5s ease-out;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

.dashboard-subtitle strong {
  color: #000;
  font-weight: 700;
}

/* 프로그레스 영역 */
.progress-card {
  background-color: #000;
  color: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.progress-label {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.progress-value {
  font-size: 2.25rem;
  font-weight: 900;
}

.progress-next {
  font-size: 0.75rem;
  color: #facc15;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.progress-bar-bg {
  width: 100%;
  background-color: #1f2937;
  height: 0.75rem;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.progress-bar-fill {
  background-color: #facc15;
  height: 100%;
  transition: width 1s ease-in-out;
}

.progress-bg-icon {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  opacity: 0.1;
  color: #fff;
  z-index: 1;
}

/* 지표 카드 (메트릭스) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}

.metric-card {
  background-color: #fff;
  border: 1px solid #f3f4f6;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.metric-label {
  color: #9ca3af;
  font-size: 0.625rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .metric-label { font-size: 0.75rem; }
}

.metric-value {
  font-size: 1.125rem;
  font-weight: 900;
  color: #000;
}

@media (min-width: 768px) {
  .metric-value { font-size: 1.25rem; }
}

.metric-value.highlight {
  color: #2563eb;
}

.metric-sub {
  font-size: 0.625rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* 탭 네비게이션 */
.dashboard-tabs {
  display: flex;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.dashboard-tab {
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.dashboard-tab.active {
  color: #000;
  border-bottom-color: #000;
}

/* 추천 미션 배너 */
.mission-banner {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  padding: 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mission-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.mission-icon-box {
  background-color: #facc15;
  padding: 0.5rem;
  border-radius: 0.75rem;
  margin-top: 0.25rem;
  color: #000;
}

.mission-title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.mission-desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

.mission-btn {
  background-color: #fff;
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-btn:hover {
  transform: scale(1.1);
}
/* 프로그레스 카드 내 진행 그룹 배지 */
.ongoing-badge-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
  -webkit-overflow-scrolling: touch;
}
.ongoing-badge-container::-webkit-scrollbar { display: none; }

.ongoing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s;
}
.ongoing-badge:hover { transform: translateY(-2px); }

.ongoing-badge i {
  color: #facc15;
}

.ongoing-badge .badge-count {
  opacity: 0.7;
  font-size: 0.65rem;
  margin-left: 2px;
}

/* 비로그인 게스트 뷰 전용 */
.dashboard-guest-wrapper {
  position: relative;
}

.guest-blur {
  filter: blur(2px); /* 8px -> 2px로 대폭 완화하여 가독성 확보 */
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

/* 티저용 포인트 살리기 */
.guest-teaser-value {
  filter: none !important;
  position: relative;
  z-index: 60;
  pointer-events: auto !important;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.2) !important;
  border: 1px solid #facc15 !important;
  overflow: visible !important; /* 배지(::after)가 잘리지 않도록 허용 */
}

.guest-teaser-value::after {
  content: 'PREVIEW';
  position: absolute;
  top: -10px;
  right: -10px;
  background: #facc15;
  color: #000;
  font-size: 0.5rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 하단 스티키 CTA 바 (팝업 대체) */
.guest-sticky-bar {
  position: fixed !important;
  bottom: 70px !important; /* 하단 퀵메뉴(70px) 위로 배치 */
  left: 0 !important;
  right: 0 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border-top: 1px solid #f3f4f6;
  padding: 1rem 1.5rem;
  z-index: 1000 !important; /* 퀵메뉴(1000)와 동일하거나 소폭 조정 */
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  animation: slideInBottom 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: none;
}

.sticky-bar-content {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sticky-bar-text {
  flex: 1;
}

.sticky-bar-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 2px;
}

.sticky-bar-desc {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

.btn-kakao-sticky {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #FEE500;
  color: #111827;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-kakao-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(254, 229, 0, 0.4);
}

@media (max-width: 480px) {
  .sticky-bar-desc { display: none; }
  .sticky-bar-title { font-size: 0.85rem; }
  .guest-sticky-bar { bottom: 70px !important; }
}

@media (min-width: 768px) {
  .guest-sticky-bar { bottom: 80px !important; }
}

/* 기존 오버레이 제거 또는 투명화 */
.guest-overlay { display: none; }
.guest-cta-card { display: none; }

@keyframes slideInBottom {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.guest-preview-mode {
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: fadeIn 0.5s ease-in-out;
}

/* [추가] 일반 회원용 프리미엄 락 UI */
.premium-lock-container {
    position: relative;
    overflow: hidden;
}
.premium-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: inherit;
}
.premium-badge-subtle {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #facc15;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(250, 204, 21, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.premium-lock-msg {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 700;
    margin-top: 6px;
}
