.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-section .friend-avatar {
    width: 56px;
    height: 56px;
    font-size: 24px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.user-title {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    line-height: 1;
}

.user-profile-section .streak-badge {
    flex-shrink: 0;
    margin-left: auto;
}


.streak-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #fed7aa;
}

.flame-icon {
    font-size: 18px;
}

.streak-number {
    font-size: 16px;
    font-weight: 700;
    color: #ea580c;
}

.streak-text {
    font-size: 14px;
    color: #9a3412;
}

.streak-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #fed7aa;
    transition: all 0.3s ease;
}

.streak-badge.streak-inactive {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    filter: grayscale(100%);
    opacity: 0.6;
}

.flame-icon {
    font-size: 18px;
}

.streak-number {
    font-size: 16px;
    font-weight: 700;
    color: #ea580c;
}

.streak-badge.streak-inactive .streak-number {
    color: #64748b;
}

.streak-text {
    font-size: 14px;
    color: #9a3412;
}

.streak-badge.streak-inactive .streak-text {
    color: #64748b;
}

.overview-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.overview-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.overview-icon {
    font-size: 32px;
}

.overview-content {
    flex: 1;
}

.overview-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.overview-label {
    font-size: 13px;
    color: #64748b;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.home-left,
.home-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.view-all-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #0f172a;
}

.view-all-link-bottom {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    border-top: 1px solid #e2e8f0;
    margin: 16px -24px -24px;
    border-radius: 0 0 12px 12px;
    transition: background 0.2s ease;
}

.view-all-link-bottom:hover {
    background: #f8fafc;
}

.continue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.continue-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.continue-item:hover {
    background: #e2e8f0;
}

.continue-icon {
    font-size: 28px;
}

.continue-content {
    flex: 1;
}

.continue-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.continue-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0f172a;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.timeline-icon {
    font-size: 24px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 12px;
    color: #94a3b8;
}

.timeline-badge {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: white;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.goal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}

.goal-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.goal-svg {
    transform: rotate(-90deg);
}

.goal-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.goal-text {
    text-align: center;
}

.goal-label {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 4px;
}

.goal-progress-text {
    font-size: 13px;
    color: #64748b;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.achievement-icon {
    font-size: 28px;
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: 12px;
    color: #64748b;
}

.welcome-header {
    margin-bottom: 40px;
}

.welcome-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-header p {
    font-size: 16px;
    color: #64748b;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.no-friends-message {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
    font-size: 14px;
}

.rainbow-dev {
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff8800,
    #fcca5f,
    #07f860,
    #5287fc,
    #7f35ff,
    #be185d
  );
  font-weight: 800;
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowMove 4.5s linear infinite;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.062),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

@keyframes rainbowMove {
  0% { background-position: 0% }
  100% { background-position: 300% }
}

.beat-creator {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 50%,
    #f093fb 100%
  );
  font-weight: 800;
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
}

.admin-glow {
  color: #fbbf24;
  font-weight: 800;
  animation: glowPulse 2s ease-in-out infinite;
  text-shadow:
    0 0 5px rgba(251, 191, 36, 0.8),
    0 0 10px rgba(251, 191, 36, 0.6),
    0 0 15px rgba(251, 191, 36, 0.4);
}

@keyframes glowPulse {
  0%, 100% { 
    text-shadow:
      0 0 5px rgba(251, 191, 36, 0.8),
      0 0 10px rgba(251, 191, 36, 0.6),
      0 0 15px rgba(251, 191, 36, 0.4);
  }
  50% { 
    text-shadow:
      0 0 10px rgba(251, 191, 36, 1),
      0 0 20px rgba(251, 191, 36, 0.8),
      0 0 30px rgba(251, 191, 36, 0.6);
  }
}

.legendary-shimmer {
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #ffed4e 25%,
    #ffd700 50%,
    #ffed4e 75%,
    #ffd700 100%
  );
  font-weight: 800;
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s linear infinite;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes shimmer {
  0% { background-position: -200% 0 }
  100% { background-position: 200% 0 }
}
.friend-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.friend-item-link:hover {
    transform: translateX(4px);
}

.friend-item-link:hover .friend-item {
    background: #f8fafc;
}

.leaderboard-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.lb-page-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.lb-page-btn:hover:not(:disabled) {
    background: #0f172a;
    color: #ffffff;
    transform: scale(1.08);
}

.lb-page-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.lb-page-btn:disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: default;
}

.lb-page-label {
    font-size: 12px;
    color: #94a3b8;
    min-width: 72px;
    text-align: center;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .section-card {
        overflow: visible;
    }
}

.friend-item-skeleton {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    flex-shrink: 0;
}

.skeleton-friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-line.medium { width: 60%; }
.skeleton-line.short  { width: 35%; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.leaderboard-row-skeleton {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.continue-item-skeleton {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 6px;
}