/* Profile Page Styles */

/* ==================== PAGE LAYOUT ==================== */

.profile-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.header-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #94a3b8;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== PROFILE CARD SECTION ==================== */

.profile-card-section {
  padding: 2rem 1rem;
}

.profile-header-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ==================== PROFILE CARD ==================== */

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  position: relative;
  width: 100px;
  height: 100px;
}

.avatar-emoji {
  font-size: 4rem;
  line-height: 1;
}

.avatar-frame {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(135deg, #6366f1, #a855f7) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.avatar-frame-locked {
  opacity: 0.3;
  border-color: #475569;
  background: none;
}

.profile-info {
  text-align: center;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.profile-title {
  font-size: 1rem;
  color: #a855f7;
  font-weight: 500;
}

/* ==================== LEVEL DISPLAY ==================== */

.profile-level-display {
  width: 100%;
  max-width: 300px;
  margin-top: 0.5rem;
}

.level-badge-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.level-number-large {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.level-name-large {
  font-size: 1rem;
  color: #94a3b8;
}

.profile-level {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.level-name {
  font-size: 0.875rem;
  color: #a855f7;
  font-weight: 500;
}

.xp-bar-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.xp-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #f8fafc;
}

#xp-text {
  color: #a855f7;
  font-weight: 600;
}

#xp-next {
  color: #94a3b8;
}

.xp-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.xp-text {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

/* ==================== PROFILE STATS GRID ==================== */

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ==================== MAIN CONTENT ==================== */

.profile-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.profile-section {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
}

.section-icon {
  font-size: 1.25rem;
}

.section-link {
  font-size: 0.875rem;
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: #818cf8;
}

/* ==================== STREAK SECTION ==================== */

.streak-display-large {
  text-align: center;
  margin-bottom: 1.5rem;
}

.streak-fire-large {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: firePulse 1s ease infinite;
}

@keyframes firePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.streak-count-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f59e0b;
}

.streak-label {
  font-size: 1rem;
  color: #94a3b8;
}

.streak-week {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.day-name {
  font-size: 0.625rem;
  color: #64748b;
  text-transform: uppercase;
}

.day-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  transition: all 0.3s ease;
}

.day-indicator.completed {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-color: #f59e0b;
  color: #fff;
}

.day-indicator.today {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.streak-milestone-progress {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
}

.milestone-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.milestone-text {
  font-size: 0.875rem;
  color: #f59e0b;
}

.milestone-reward {
  font-size: 0.75rem;
  color: #fbbf24;
}

.milestone-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  height: 6px;
  overflow: hidden;
}

.milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* ==================== BADGES SECTION ==================== */

.badge-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
}

.badge-stat {
  text-align: center;
}

.badge-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
}

.badge-stat-label {
  font-size: 0.75rem;
  color: #64748b;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.badge-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.badge-item.locked:hover {
  opacity: 0.6;
}

.badge-emoji {
  font-size: 2rem;
}

.badge-name {
  font-size: 0.625rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Badge Rarity Borders */
.badge-item.rarity-common {
  border-color: rgba(148, 163, 184, 0.3);
}

.badge-item.rarity-uncommon {
  border-color: rgba(34, 197, 94, 0.3);
}

.badge-item.rarity-rare {
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-item.rarity-epic {
  border-color: rgba(168, 85, 247, 0.3);
}

.badge-item.rarity-legendary {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.badge-item.rarity-limited {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

/* ==================== STATS SECTION ==================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
}

/* ==================== HISTORY SECTION ==================== */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.history-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.history-info {
  flex: 1;
  min-width: 0;
}

.history-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-date {
  font-size: 0.75rem;
  color: #64748b;
}

.history-result {
  text-align: right;
  flex-shrink: 0;
}

.result-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a855f7;
  margin-bottom: 0.25rem;
}

.result-xp {
  font-size: 0.625rem;
  color: #f59e0b;
}

.history-empty {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

.history-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.history-empty-text {
  font-size: 0.875rem;
}

.view-all-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.75rem;
  color: #818cf8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-all-link:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* ==================== INVITE SECTION ==================== */

.invite-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.invite-reward {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 9999px;
  color: #f59e0b;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.invite-description {
  font-size: 0.875rem;
  color: #94a3b8;
}

.invite-link-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.invite-link-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #f8fafc;
  font-size: 0.875rem;
  font-family: monospace;
}

.invite-link-input:focus {
  outline: none;
  border-color: #6366f1;
}

.copy-btn {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.invite-share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.kakao {
  background: #fee500;
  color: #000;
}

.share-btn.twitter {
  background: #1da1f2;
  color: #fff;
}

.share-btn.facebook {
  background: #1877f2;
  color: #fff;
}

.share-btn.line {
  background: #00b900;
  color: #fff;
}

.share-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

.invite-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.invite-stat {
  text-align: center;
}

.invite-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
}

.invite-stat-label {
  font-size: 0.75rem;
  color: #64748b;
}

/* ==================== SETTINGS SECTION ==================== */

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-icon {
  font-size: 1.25rem;
}

.settings-label {
  font-size: 0.875rem;
  color: #f8fafc;
}

.settings-arrow {
  color: #64748b;
  font-size: 0.875rem;
}

.settings-item.danger {
  border-color: rgba(239, 68, 68, 0.2);
}

.settings-item.danger .settings-label {
  color: #ef4444;
}

/* ==================== LOGIN PROMPT ==================== */

.login-prompt-section {
  text-align: center;
  padding: 2rem;
}

.login-prompt-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.login-prompt-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.login-prompt-text {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.login-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ==================== FOOTER ==================== */

.profile-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #f8fafc;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
  .profile-header {
    padding: 1.5rem 1rem;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .avatar-emoji {
    font-size: 3rem;
  }

  .profile-name {
    font-size: 1.25rem;
  }

  .profile-main {
    padding: 1rem;
  }

  .profile-section {
    padding: 1.25rem;
    border-radius: 0.75rem;
  }

  .streak-fire-large {
    font-size: 2.5rem;
  }

  .streak-count-large {
    font-size: 2rem;
  }

  .day-indicator {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .badge-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.75rem;
  }

  .badge-emoji {
    font-size: 1.75rem;
  }

  .invite-link-box {
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  .share-btn {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }

  .badge-summary {
    gap: 1rem;
  }

  .invite-stats {
    gap: 1.5rem;
  }
}

/* ==================== ANIMATIONS ==================== */

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

.profile-section {
  animation: fadeIn 0.3s ease forwards;
}

.profile-section:nth-child(1) { animation-delay: 0.05s; }
.profile-section:nth-child(2) { animation-delay: 0.1s; }
.profile-section:nth-child(3) { animation-delay: 0.15s; }
.profile-section:nth-child(4) { animation-delay: 0.2s; }
.profile-section:nth-child(5) { animation-delay: 0.25s; }
.profile-section:nth-child(6) { animation-delay: 0.3s; }

/* Badge unlock animation */
.badge-item.just-unlocked {
  animation: badgeUnlock 0.5s ease;
}

@keyframes badgeUnlock {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Shimmer effect for loading */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==================== LOGIN PROMPT BANNER ==================== */

.login-prompt-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
}

.login-prompt-banner.hidden {
  display: none;
}

.login-prompt-text {
  font-size: 0.875rem;
  color: #f8fafc;
}

.login-prompt-btn {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.login-prompt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ==================== BADGE COUNT & LOCKED BADGES ==================== */

.badge-count {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 0.5rem;
}

.locked-badges-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 1.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#locked-count {
  color: #64748b;
}

.badge-grid-locked {
  opacity: 0.6;
}

.badge-rarity {
  font-size: 0.5rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.badge-rarity.common {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.badge-rarity.uncommon {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.badge-rarity.rare {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.badge-rarity.epic {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.badge-rarity.legendary {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.badge-rarity.limited {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ==================== STREAK CARD ==================== */

.streak-card {
  padding: 1rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 12px;
}

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

.streak-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.streak-fire {
  font-size: 2rem;
}

.streak-count {
  font-size: 2rem;
  font-weight: 800;
  color: #f59e0b;
}

.streak-label {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-left: 0.25rem;
}

.streak-best {
  text-align: right;
  font-size: 0.875rem;
  color: #94a3b8;
}

.streak-best-label {
  color: #64748b;
}

.streak-best-value {
  color: #f8fafc;
  font-weight: 700;
  margin-left: 0.25rem;
}

.streak-week {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.streak-day-name {
  font-size: 0.625rem;
  color: #64748b;
  text-transform: uppercase;
}

.streak-day-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #64748b;
  transition: all 0.3s ease;
}

.streak-day.completed .streak-day-icon {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-color: #f59e0b;
  color: #fff;
}

.streak-day.today .streak-day-icon {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.streak-day.future .streak-day-icon {
  opacity: 0.5;
}

.streak-milestone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  font-size: 0.875rem;
  color: #f59e0b;
}

.milestone-remaining {
  color: #fbbf24;
  font-weight: 600;
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: #94a3b8;
  text-align: center;
}

.empty-state > span:first-child {
  font-size: 2.5rem;
  opacity: 0.5;
}

.empty-state > span:last-child {
  font-size: 0.875rem;
}

/* ==================== TEST HISTORY ==================== */

.most-common-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 8px;
  font-size: 0.875rem;
  color: #f8fafc;
}

.most-common-type.hidden {
  display: none;
}

.type-name {
  color: #a855f7;
  font-weight: 600;
}

.type-count {
  color: #94a3b8;
  font-size: 0.75rem;
}

.test-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.875rem;
}

.history-date {
  color: #64748b;
  font-size: 0.75rem;
}

.history-type {
  color: #f8fafc;
  font-weight: 500;
}

.history-summary {
  color: #94a3b8;
  font-size: 0.75rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== INVITE SECTION ==================== */

.invite-section {
  text-align: center;
}

.invite-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.invite-subtitle {
  font-size: 0.875rem;
  color: #f59e0b;
  margin-bottom: 1.5rem;
}

.invite-link-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.invite-link-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.75rem;
  font-family: monospace;
}

.invite-link-input:focus {
  outline: none;
  border-color: #6366f1;
}

.invite-copy-btn {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.invite-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.invite-share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.invite-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.invite-share-btn:hover {
  transform: translateY(-2px);
}

.invite-share-btn.kakao {
  background: #fee500;
  color: #000;
}

.invite-share-btn.line {
  background: #00b900;
  color: #fff;
}

.invite-share-btn.copy {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.invite-share-btn.copy:hover {
  background: rgba(99, 102, 241, 0.3);
}

.invite-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.invite-stat {
  text-align: center;
}

.invite-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  display: block;
}

.invite-stat-label {
  font-size: 0.75rem;
  color: #64748b;
}

/* ==================== LOGOUT BUTTON ==================== */

.logout-btn {
  width: 100%;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ==================== PROFILE NAVIGATION ==================== */

.profile-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  bottom: 0;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

/* ==================== MOBILE RESPONSIVE ADDITIONS ==================== */

@media (max-width: 640px) {
  .profile-header {
    padding: 0.75rem 1rem;
  }

  .profile-card-section {
    padding: 1.5rem 1rem;
  }

  .profile-header-info {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-level {
    justify-content: center;
  }

  .invite-link-box {
    flex-direction: column;
  }

  .invite-share-btn {
    flex: 1;
    min-width: calc(50% - 0.375rem);
    justify-content: center;
  }

  .streak-day-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .invite-stats {
    gap: 2rem;
  }

  .profile-nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}
