.profile-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: 700;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.profile-handle {
    font-size: 14px;
    color: #64748b;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.profile-email {
    font-size: 14px;
    color: #94a3b8;
}

.setting-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 13px;
    color: #64748b;
}

.secondary-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: #f8fafc;
}

.danger-zone {
    border-color: #fee2e2;
    background: #fef2f2;
}

.danger-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
}

.info-icon {
    font-size: 16px;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item .stat-label {
    font-size: 14px;
    color: #64748b;
}

.stat-item .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.quick-action-item:hover {
    background: #e2e8f0;
}

.quick-action-item span:first-child {
    font-size: 18px;
}

.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;
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .secondary-btn,
    .danger-btn {
        width: 100%;
    }
}

.current-title-display {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.title-preview {
    font-size: 18px;
    font-weight: 600;
}

.title-selection-scrollable {
    max-height: 500px;
    overflow-y: auto;
    padding: 8px;
}

.title-rarity-group {
    margin-bottom: 32px;
}

.title-rarity-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.title-rarity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.title-rarity-badge.common {
    background: #f1f5f9;
    color: #64748b;
}

.title-rarity-badge.uncommon {
    background: #dcfce7;
    color: #16a34a;
}

.title-rarity-badge.rare {
    background: #dbeafe;
    color: #2563eb;
}

.title-rarity-badge.epic {
    background: #fae8ff;
    color: #a855f7;
}

.title-rarity-badge.legendary {
    background: #fef3c7;
    color: #d97706;
}

.title-rarity-count {
    font-size: 14px;
    color: #64748b;
}

.title-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title-option {
    padding: 16px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-option:hover {
    border-color: #94a3b8;
    transform: translateX(4px);
}

.title-option.selected {
    border-color: #0f172a;
    background: #f8fafc;
}

.title-option-name {
    font-size: 16px;
    font-weight: 700;
}

.title-option-description {
    font-size: 13px;
    color: #64748b;
}

.title-option.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.title-option.locked:hover {
    transform: none;
    border-color: #e2e8f0;
}

.title-locked-icon {
    font-size: 14px;
    color: #94a3b8;
}

.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 }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.profile-title {
    font-size: 18px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.section-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-card-header {
    margin-bottom: 20px;
}

.section-card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.folder-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}

.folder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.folder-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.folder-stats {
    display: flex;
    gap: 20px;
    padding: 12px 0;
}

.folder-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.folder-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.folder-share-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.folder-share-code span {
    color: #64748b;
    font-weight: 500;
}

.folder-share-code code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.copy-folder-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-folder-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.copy-folder-btn:active {
    transform: translateY(0);
}

.no-content-message {
    text-align: center;
    color: #64748b;
    padding: 60px 20px;
    grid-column: 1 / -1;
    font-size: 16px;
}

.loading-message {
    text-align: center;
    color: #64748b;
    padding: 60px 20px;
    grid-column: 1 / -1;
    font-size: 16px;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .profile-info h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
}

.public-folders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.public-folder-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
}

.public-folder-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.folder-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.folder-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    min-width: 180px;
    flex-shrink: 0;
}

.folder-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.folder-info-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.folder-info-value {
    font-size: 14px;
    font-weight: 600;
}

.folder-share-code-inline {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    letter-spacing: 1px;
}

.copy-folder-btn-inline {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    white-space: nowrap;
}

.copy-folder-btn-inline:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.no-content-message {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-size: 16px;
}

.loading-message {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .public-folder-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .folder-info {
        min-width: auto;
    }
    
    .copy-folder-btn-inline {
        width: 100%;
        margin-left: 0;
    }
}