/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, rgba(15, 23, 43, 1) 0%, rgba(89, 22, 139, 1) 50%, rgba(30, 26, 77, 1) 100%);
  color: #E9D4FF;
  position: relative;
  min-height: 100vh;
}

/* App Container */
.app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* Background Container */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

/* Fallback if image doesn't exist */
@supports not (background-image: url('assets/images/background.png')) {
  .background-container {
    background: linear-gradient(180deg, rgba(15, 23, 43, 0.8) 0%, rgba(89, 22, 139, 0.8) 50%, rgba(30, 26, 77, 0.8) 100%);
  }
}

/* Decorative Blur Circles */
.decor {
  position: absolute;
  border-radius: 33554400px;
  filter: blur(128px);
  pointer-events: none;
  z-index: 1;
}

.decor-a {
  width: 128px;
  height: 128px;
  left: 40px;
  top: 80px;
  background: rgba(173, 70, 255, 0.1);
}

.decor-b {
  width: 160px;
  height: 160px;
  right: 40px;
  bottom: 40px;
  background: rgba(43, 127, 255, 0.1);
}

/* Snowflakes */
.snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flake {
  position: absolute;
  background: #FFFFFF;
  border-radius: 33554400px;
  filter: blur(16px);
}

.f1 { width: 14.16px; height: 14.16px; left: 88.06%; top: 26.66%; opacity: 0.5527; }
.f2 { width: 15.97px; height: 15.97px; left: 15.13%; top: 35.55%; opacity: 0.4716; }
.f3 { width: 15.88px; height: 15.88px; left: 27.52%; top: 35.19%; opacity: 0.5172; }
.f4 { width: 11.95px; height: 11.95px; left: 34.93%; top: 5.72%; opacity: 0.6476; }
.f5 { width: 13.4px; height: 13.4px; left: 59.27%; top: 21.15%; opacity: 0.5634; }
.f6 { width: 15.99px; height: 15.99px; left: 26.83%; top: 2.05%; opacity: 0.4275; }
.f7 { width: 14.95px; height: 14.95px; left: 60.93%; top: 26.00%; opacity: 0.7000; }
.f8 { width: 15.75px; height: 15.75px; left: 30.12%; top: 0.93%; opacity: 0.4478; }
.f9 { width: 10.41px; height: 10.41px; left: 64.41%; top: 31.26%; opacity: 0.5855; }
.f10 { width: 13.62px; height: 13.62px; left: 89.50%; top: 15.78%; opacity: 0.5839; }
.f11 { width: 11.17px; height: 11.17px; left: 64.97%; top: 9.01%; opacity: 0.4684; }
.f12 { width: 15.25px; height: 15.25px; left: 80.80%; top: 22.48%; opacity: 0.5340; }
.f13 { width: 11.18px; height: 11.18px; left: 51.27%; top: 17.16%; opacity: 0.6011; }
.f14 { width: 12.92px; height: 12.92px; left: 50.92%; top: 16.20%; opacity: 0.4480; }
.f15 { width: 13.85px; height: 13.85px; left: 82.94%; top: -0.89%; opacity: 0.3730; }
.f16 { width: 13.46px; height: 13.46px; left: 93.80%; top: 10.16%; opacity: 0.5533; }
.f17 { width: 10.16px; height: 10.16px; left: 39.58%; top: 40.96%; opacity: 0.3348; }
.f18 { width: 15.76px; height: 15.76px; left: 50.16%; top: 34.94%; opacity: 0.5137; }
.f19 { width: 15.97px; height: 15.97px; left: 52.21%; top: 23.72%; opacity: 0.6553; }
.f20 { width: 15.56px; height: 15.56px; left: 78.09%; top: 3.05%; opacity: 0.6900; }

/* Container */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 2176px;
  margin: 0 auto;
  padding: 0;
}

/* Header */
.header {
  position: relative;
  width: 100%;
  height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-content {
  text-align: center;
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.brand {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1em;
  letter-spacing: 0.17%;
  text-align: center;
  background: linear-gradient(90deg, rgba(190, 219, 255, 1) 0%, rgba(233, 212, 255, 1) 50%, rgba(252, 206, 232, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  height: 72px;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}

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

.brand-pill {
  width: 144px;
  height: 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(194, 122, 255, 1) 50%, rgba(0, 0, 0, 0) 100%);
  margin-top: 8px;
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4em;
  letter-spacing: -2.25%;
  text-align: center;
  color: #E9D4FF;
  margin: 0;
}

/* Main Content */
.main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Card Base Styles */
.card {
  border-radius: 24px;
  padding: 33px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

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

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Player Profile Card */
.player-profile {
  background: linear-gradient(135deg, rgba(89, 22, 139, 0.4) 0%, rgba(28, 57, 142, 0.4) 100%);
  border: 1px solid rgba(173, 70, 255, 0.3);
  min-height: 296px;
}

.card-content {
  display: flex;
  gap: 0;
  height: 230px;
  align-items: flex-start;
  position: relative;
}

.profile-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: 224px;
  width: 958px;
  min-width: 0;
}

.stats-grid-wrapper {
  width: 100%;
  max-width: 958px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.player-name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.111em;
  letter-spacing: 1.03%;
  color: #F3E8FF;
  margin: 0;
}

.verified-badge {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.625em;
  letter-spacing: -1.95%;
  color: #E9D4FF;
  width: 672px;
  margin: 0 0 24px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 958px;
  height: 98px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 17px;
  background: rgba(60, 3, 102, 0.5);
  border: 1px solid rgba(194, 122, 255, 0.3);
  border-radius: 16.4px;
  height: 100%;
  transition: all 0.3s ease;
  animation: slideInLeft 0.5s ease forwards;
  opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0.5s; }
.stat-item:nth-child(2) { animation-delay: 0.6s; }
.stat-item:nth-child(3) { animation-delay: 0.7s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(173, 70, 255, 0.3);
  border-color: rgba(194, 122, 255, 0.5);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stat-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.chip-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.chip-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  letter-spacing: -1.95%;
  color: #DAB2FF;
}

.stat-value {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.333em;
  letter-spacing: 0.29%;
  text-align: center;
  color: #FFFFFF;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-right {
  position: absolute;
  left: 0;
  top: 19px;
  width: 192px;
  height: 192px;
  flex-shrink: 0;
}

.avatar-glow {
  position: absolute;
  width: 192px;
  height: 192px;
  background: linear-gradient(90deg, rgba(173, 70, 255, 1) 0%, rgba(246, 51, 154, 1) 100%);
  filter: blur(48px);
  opacity: 0.7;
  border-radius: 33554400px;
}

.avatar-container {
  position: relative;
  width: 192px;
  height: 192px;
  padding: 4px;
  background: rgba(255, 255, 255, 0);
  border: 4px solid rgba(218, 178, 255, 0.5);
  border-radius: 33554400px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(173, 70, 255, 0.4);
  }
  50% {
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 20px rgba(173, 70, 255, 0);
  }
}

.avatar-image {
  width: 100%;
  height: 184px;
  background-image: url('assets/images/character.png');
  background-size: cover;
  background-position: center;
  border-radius: 33554400px;
  background-color: rgba(173, 70, 255, 0.2);
}

/* Fallback if image doesn't exist */
@supports not (background-image: url('assets/images/character.png')) {
  .avatar-image {
    background: linear-gradient(135deg, rgba(173, 70, 255, 0.3) 0%, rgba(246, 51, 154, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .avatar-image::after {
    content: '玖月';
    color: rgba(255, 255, 255, 0.8);
    font-size: 48px;
    font-weight: 400;
  }
}

.crown-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 48px;
  height: 48px;
  padding: 12px 12px 0 12px;
  background: linear-gradient(135deg, rgba(253, 199, 0, 1) 0%, rgba(225, 113, 0, 1) 100%);
  border-radius: 33554400px;
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Achievements and Skill Stats Container */
.achievements-skill-container {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

/* Achievements Card */
.achievements {
  background: linear-gradient(135deg, rgba(89, 22, 139, 0.4) 0%, rgba(49, 44, 133, 0.4) 100%);
  border: 1px solid rgba(173, 70, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
}

.header-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2em;
  letter-spacing: 1.32%;
  color: #F3E8FF;
  margin: 0;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px;
  border-radius: 16.4px;
  border: 1px solid rgba(194, 122, 255, 0.2);
  transition: all 0.3s ease;
  animation: fadeInScale 0.5s ease forwards;
  opacity: 0;
}

.achievement-item:nth-child(1) { animation-delay: 0.1s; }
.achievement-item:nth-child(2) { animation-delay: 0.2s; }
.achievement-item:nth-child(3) { animation-delay: 0.3s; }
.achievement-item:nth-child(4) { animation-delay: 0.4s; }
.achievement-item:nth-child(5) { animation-delay: 0.5s; }
.achievement-item:nth-child(6) { animation-delay: 0.6s; }

.achievement-item:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 24px rgba(173, 70, 255, 0.2);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.achievement-item:nth-child(1) {
  background: rgba(43, 127, 255, 0.2);
}

.achievement-item:nth-child(2) {
  background: rgba(173, 70, 255, 0.2);
}

.achievement-item:nth-child(3) {
  background: rgba(240, 177, 0, 0.2);
}

.achievement-item:nth-child(4) {
  background: rgba(0, 188, 125, 0.2);
}

.achievement-item:nth-child(5) {
  background: rgba(255, 32, 86, 0.2);
}

.achievement-item:nth-child(6) {
  background: rgba(97, 95, 255, 0.2);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.achievement-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.achievement-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  letter-spacing: -1.95%;
  color: #FFFFFF;
  margin: 0;
}

.achievement-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.429em;
  letter-spacing: -1.07%;
  color: #E9D4FF;
  margin: 0;
}

/* Skill Stats Card */
.skill-stats {
  background: linear-gradient(135deg, rgba(49, 44, 133, 0.4) 0%, rgba(89, 22, 139, 0.4) 100%);
  border: 1px solid rgba(173, 70, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.skill-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.radar-chart-container {
  flex: 1;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-summary {
  display: grid;
  grid-template-columns: 279px 1fr;
  gap: 0;
  width: 100%;
  height: 122px;
  margin-left: 0;
  margin-top: 24px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px 17px 1px;
  background: rgba(60, 3, 102, 0.5);
  border: 1px solid rgba(194, 122, 255, 0.3);
  border-radius: 16.4px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.summary-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.429em;
  letter-spacing: -1.07%;
  color: #DAB2FF;
  margin: 0;
  height: 20px;
}

.summary-value {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2em;
  letter-spacing: 1.32%;
  color: #FFFFFF;
  margin: 0;
  flex: 1;
}

.summary-value.rank {
  background: linear-gradient(90deg, rgba(253, 199, 0, 1) 0%, rgba(255, 185, 0, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-subtext {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.429em;
  letter-spacing: -1.07%;
  color: #DAB2FF;
  margin: 0;
  height: 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #3C0366;
  border-radius: 33554400px;
  padding-right: 6.1875px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(173, 70, 255, 1) 0%, rgba(246, 51, 154, 1) 100%);
  border-radius: 33554400px;
}

/* Fan Comments Card */
/* Tab content styling */
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.heart-icon {
  width: 20px;
  height: 20px;
}

.fans-count {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  letter-spacing: -1.95%;
  color: #E9D4FF;
}


.comment-item {
  display: flex;
  gap: 16px;
  padding: 25px;
  background: rgba(60, 3, 102, 0.3);
  border: 1px solid rgba(194, 122, 255, 0.2);
  border-radius: 16px;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 33554400px;
  background: linear-gradient(135deg, rgba(173, 70, 255, 1) 0%, rgba(246, 51, 154, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  letter-spacing: -1.95%;
  color: #FFFFFF;
  margin: 0;
}

.star-rating {
  display: flex;
  gap: 2px;
}

.star {
  width: 12px;
  height: 12px;
  color: #FDC700;
  font-size: 10px;
  line-height: 12px;
}

.comment-time {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.429em;
  letter-spacing: -1.07%;
  color: #DAB2FF;
}

.comment-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.625em;
  letter-spacing: -1.95%;
  color: #F3E8FF;
  margin: 0;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.comment-actions:hover {
  transform: translateY(-2px);
}

.comment-actions:active {
  transform: translateY(0) scale(0.95);
}

.like-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.comment-actions:hover .like-icon {
  transform: scale(1.2);
}

.comment-actions.liked .like-icon path {
  fill: #FB64B6;
  stroke: #FB64B6;
}

.like-count {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.429em;
  letter-spacing: -1.07%;
  color: #FDA5D5;
  min-width: 30px;
  text-align: left;
}

.view-more-btn {
  width: 160px;
  height: 48px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(152, 16, 250, 1) 0%, rgba(230, 0, 118, 1) 100%);
  border: none;
  border-radius: 33554400px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  letter-spacing: -1.95%;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.view-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 8px -4px rgba(0, 0, 0, 0.15), 0px 12px 18px -3px rgba(0, 0, 0, 0.15);
}

.view-more-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1400px) {
  .container {
    max-width: 100%;
  }
  
  .main {
    max-width: 100%;
  }
  
  .profile-left {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }
  
  .profile-right {
    position: relative;
    top: 0;
    left: 0;
    margin: 0 auto 24px;
  }
  
  .card-content {
    flex-direction: column;
    height: auto;
    align-items: center;
  }
  
  .stats-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }
  
  .stat-item {
    height: auto;
    min-height: 98px;
  }
  
  .achievements-skill-container {
    flex-direction: column;
  }
  
  .skill-content {
    flex-direction: column;
  }
  
  .skill-summary {
    width: 100%;
    margin-left: 0;
    margin-top: 24px;
  }
}

/* Comment Modal */
.comment-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.comment-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.donation-widget {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 1200;
  transform: translate(70vw, 70vh); /* 初始靠右下 */
  transition: transform 3.8s ease-in-out;
  pointer-events: auto;
}

.donation-widget:hover {
  transition: none; /* 悬停时停止过渡，便于点击 */
}

.donation-toggle {
  padding: 10px 14px;
  background: linear-gradient(135deg, #f6339a, #ad46ff);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(173, 70, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.donation-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(173, 70, 255, 0.45);
}

.donation-toggle:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(173, 70, 255, 0.35);
}

.donation-card {
  width: 240px;
  padding: 14px 14px 12px;
  background: rgba(40, 0, 70, 0.9);
  border: 1px solid rgba(194, 122, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  gap: 10px;
}

.donation-card.open {
  display: flex;
}

.donation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.donation-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.donation-close {
  background: none;
  border: none;
  color: #dab2ff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.donation-close:hover {
  color: #ffffff;
  transform: scale(1.08);
}

.donation-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: #e9d4ff;
  margin: 0;
}

.donation-qr {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
}

.modal-content {
  background: linear-gradient(135deg, rgba(89, 22, 139, 0.95) 0%, rgba(49, 44, 133, 0.95) 100%);
  border: 1px solid rgba(173, 70, 255, 0.5);
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(173, 70, 255, 0.3);
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #F3E8FF;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #E9D4FF;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #FFFFFF;
}

.modal-body {
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #DAB2FF;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(60, 3, 102, 0.5);
  border: 1px solid rgba(194, 122, 255, 0.3);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(173, 70, 255, 0.8);
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
  color: rgba(233, 212, 255, 0.5);
}

.avatar-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.avatar-option {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(60, 3, 102, 0.5);
  border: 2px solid rgba(194, 122, 255, 0.3);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-option:hover {
  background: rgba(173, 70, 255, 0.3);
  border-color: rgba(173, 70, 255, 0.8);
  transform: scale(1.1);
}

.avatar-option.selected {
  background: linear-gradient(90deg, rgba(173, 70, 255, 1) 0%, rgba(246, 51, 154, 1) 100%);
  border-color: #FFFFFF;
  box-shadow: 0 0 20px rgba(173, 70, 255, 0.5);
}

.char-count {
  text-align: right;
  font-size: 14px;
  color: #DAB2FF;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 32px;
}

.btn-cancel,
.btn-submit {
  padding: 12px 32px;
  border-radius: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-cancel {
  background: rgba(60, 3, 102, 0.5);
  border: 1px solid rgba(194, 122, 255, 0.3);
  color: #E9D4FF;
}

.btn-cancel:hover {
  background: rgba(60, 3, 102, 0.8);
  border-color: rgba(194, 122, 255, 0.5);
}

.btn-submit {
  background: linear-gradient(90deg, rgba(152, 16, 250, 1) 0%, rgba(230, 0, 118, 1) 100%);
  color: #FFFFFF;
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.2), 0px 10px 15px -3px rgba(0, 0, 0, 0.2), 0 0 20px rgba(152, 16, 250, 0.5);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Comments scrolling animation */
.comments-list {
  max-height: 608px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comments-list-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comments-list-inner.scrolling {
  animation: scrollComments var(--scroll-duration, 60s) linear infinite;
  animation-play-state: running;
}

.comments-list-inner.scrolling:hover {
  animation-play-state: paused;
}

@keyframes scrollComments {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.comment-item-clone {
  opacity: 1;
  animation: none;
}

.comment-item {
  animation: slideInComment 0.5s ease forwards;
  opacity: 0;
  transition: all 0.3s ease;
}

.comment-item:hover {
  transform: translateX(4px);
  background: rgba(60, 3, 102, 0.2);
}

@keyframes slideInComment {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.2);
  }
}

/* Responsive for modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 16px;
  }
  
  .modal-header,
  .modal-body {
    padding: 16px;
  }
  
  .form-actions {
    flex-direction: column-reverse;
  }
  
  .btn-cancel,
  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .brand {
    font-size: 48px;
  }
  
  .player-name {
    font-size: 28px;
  }
  
  .player-desc {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .profile-right {
    position: relative;
    top: 0;
    left: 0;
    margin: 0 auto 24px;
  }
  
  .profile-left {
    margin-left: 0;
  }
  
  .card {
    padding: 24px;
  }
}

/* Community Card with Tabs */
.community-card {
  background: linear-gradient(135deg, rgba(89, 22, 139, 0.4) 0%, rgba(49, 44, 133, 0.4) 100%);
  border: 1px solid rgba(173, 70, 255, 0.3);
  padding: 0 !important;
  overflow: hidden;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 0;
  background: rgba(60, 3, 102, 0.5);
  border-bottom: 2px solid rgba(173, 70, 255, 0.3);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #DAB2FF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #AD46FF 0%, #F6339A 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  background: rgba(173, 70, 255, 0.1);
  color: #F3E8FF;
}

.tab-btn.active {
  color: #FFFFFF;
  background: rgba(173, 70, 255, 0.2);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.tab-btn:hover .tab-icon {
  transform: scale(1.1);
}

.tab-btn.active .tab-icon {
  animation: tabIconPulse 2s ease-in-out infinite;
}

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

.tab-badge {
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(173, 70, 255, 0.3) 0%, rgba(246, 51, 154, 0.3) 100%);
  border: 1px solid rgba(173, 70, 255, 0.4);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #FFB6E1;
}

.tab-btn.active .tab-badge {
  background: linear-gradient(135deg, rgba(173, 70, 255, 0.6) 0%, rgba(246, 51, 154, 0.6) 100%);
  border-color: rgba(173, 70, 255, 0.8);
  color: #FFFFFF;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 32px;
  animation: tabFadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(173, 70, 255, 0.2);
}

.guides-count {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #DAB2FF;
}

.fans-count {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #DAB2FF;
}

.guides-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-item {
  background: rgba(60, 3, 102, 0.3);
  border: 1px solid rgba(194, 122, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.guide-item:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 122, 255, 0.5);
  box-shadow: 0 8px 24px rgba(173, 70, 255, 0.3);
}

.guide-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: rgba(89, 22, 139, 0.2);
  display: block;
}

.guide-image-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(173, 70, 255, 0.3) 0%, rgba(246, 51, 154, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-image-placeholder::after {
  content: '🎮';
  font-size: 48px;
  opacity: 0.5;
}

.guide-content {
  padding: 16px;
}

.guide-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4em;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-summary {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5em;
  color: #DAB2FF;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.guide-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.guide-author-name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #F3E8FF;
}

.guide-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #DAB2FF;
}

.guide-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.guide-stat-icon {
  width: 14px;
  height: 14px;
  fill: #FDA5D5;
}

.guides-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
}

.pagination-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(173, 70, 255, 0.6) 0%, rgba(246, 51, 154, 0.6) 100%);
  border: 1px solid rgba(194, 122, 255, 0.4);
  border-radius: 8px;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(173, 70, 255, 0.8) 0%, rgba(246, 51, 154, 0.8) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(173, 70, 255, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #E9D4FF;
  padding: 0 8px;
}

@media (max-width: 768px) {
  .guides-list {
    grid-template-columns: 1fr;
  }
  
  .tab-btn {
    font-size: 14px;
    padding: 16px 12px;
  }
  
  .tab-btn span:not(.tab-badge) {
    display: none;
  }
  
  .tab-content {
    padding: 24px 16px;
  }
}
