.user-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transition: all 0.25s ease;
}



.user-header-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}



.user-header-link:hover .user-header-avatar::before {
    opacity: 1;
}



.user-header-link:hover .user-header-avatar {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.25);
    transform: scale(1.02);
}



.user-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}



.profile-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 140px 0;
}



.profile-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



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



.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.35),
        0 4px 12px rgba(139, 92, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}



.profile-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}



.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}



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



.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



.profile-header .profile-group,
.profile-card .profile-group,
p.profile-group {
    font-size: 14px;
    color: rgba(156, 163, 175, 0.9);
    font-weight: 500;
    margin: 0;
    padding: 0;
    display: block;
}




.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}







.profile-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}



.profile-action:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}



.profile-action.logout {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}



.profile-action.logout:active {
    background: rgba(239, 68, 68, 0.05);
}



.profile-action.kodari-id {
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    text-decoration: none;
}



.profile-action.kodari-id:active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    transform: scale(0.98);
}



.profile-action.kodari-id img {
    border-radius: 4px;
}



.profile-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
}



.profile-card::before,
.profile-card::after {
    display: none;
}



.profile-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



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



.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.35),
        0 4px 12px rgba(139, 92, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}



.profile-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}



.profile-avatar:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow:
        0 12px 32px rgba(59, 130, 246, 0.45),
        0 6px 16px rgba(139, 92, 246, 0.35);
}



.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}



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



.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



.profile-action.edit-profile.full-width {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.profile-action.edit-profile.full-width:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}



.profile-action.edit-profile.full-width svg {
    color: #60a5fa;
}



.profile-details {
    margin: 24px 0;
    position: relative;
    z-index: 1;
}



.profile-section {
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}



.profile-section:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}



.profile-section h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}



.profile-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
}



.profile-moderation-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}


.profile-action {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}



.profile-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}



.profile-action:hover::before {
    opacity: 1;
}



.profile-action:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}



.profile-action:active {
    transform: translateY(0) scale(0.98);
}



.profile-action svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}



.profile-action:hover svg {
    transform: scale(1.1);
}



.profile-action.logout {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.05) 100%);
}



.profile-action.logout::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
}



.profile-action.logout:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}



.profile-action.kodari-id {
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    text-decoration: none;
}



.profile-action.kodari-id::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
}



.profile-action.kodari-id:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}



.profile-action.kodari-id img {
    border-radius: 6px;
}



.profile-action.telegram-bot {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(0, 180, 216, 0.1) 100%);
    border-color: rgba(0, 136, 204, 0.3);
}



.profile-action.telegram-bot::before {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.25) 0%, rgba(0, 180, 216, 0.15) 100%);
}



.profile-action.telegram-bot:hover {
    border-color: rgba(0, 136, 204, 0.5);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.2);
}



.profile-action.telegram-bot:hover .telegram-btn-arrow {
    color: rgba(255, 255, 255, 0.9);
    transform: translate(3px, -3px);
}



.skeleton-profile-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 24px;
}



.skeleton-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: shimmer 2.2s infinite;
}



.skeleton-profile-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
    border-radius: 20px;
}



.skeleton-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.skeleton-profile-name {
    width: 70%;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}



.skeleton-profile-group {
    width: 40%;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}



.skeleton-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}



.skeleton-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}



.skeleton-profile-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    height: 60px;
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}



.skeleton-profile-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: shimmer 1.7s infinite;
}



.profile-action.contacts {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}



.profile-action.contacts:active {
    background: rgba(16, 185, 129, 0.05);
}



.profile-action.clear-cache {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}



.profile-action.clear-cache:active {
    background: rgba(245, 158, 11, 0.05);
}



.profile-action.customization {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.2);
}

.profile-action.customization:active {
    background: rgba(168, 85, 247, 0.05);
}



.edit-profile-form {
    max-width: 100%;
}



.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}



.profile-moderation-section {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}



.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}



.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.profile-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}



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



.profile-info {
    flex: 1;
}



.profile-action.edit-profile.full-width {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}



.profile-action.edit-profile.full-width:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #5b21b6 100%);
}



.profile-action.edit-profile.full-width:active {
    transform: translateY(0);
}



.activity-achievement {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}



.user-header-avatar.kodari-connected {
    overflow: visible;
    border-color: rgba(139, 92, 246, 0.5);
}



.user-header-avatar.kodari-connected::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px dashed #8b5cf6;
    animation: rotate-dashed 20s linear infinite, color-cycle 4s linear infinite;
    z-index: -2;
    pointer-events: none;
}



.profile-actions-row {
    display: flex;
    gap: 12px;
}



.profile-actions-row .profile-action {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
}



.review-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}



.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}



.review-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}



.profile-action.reviews {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}



.profile-action.reviews:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}





.credentials-modal .modal-body {
    padding: 20px;
}





.credentials-modal .form-group {
    margin-bottom: 16px;
}





.credentials-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}





.credentials-modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.2s ease;
}





.credentials-modal .form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}





.credentials-modal .form-group input::placeholder {
    color: #6b7280;
}





.gaming-details-btn {
    margin-top: 16px;
    width: 100%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}





.gaming-details-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2);
}





.gaming-details-btn svg {
    color: #fbbf24;
}





.special-telegram-btn {
    padding: 14px 18px !important;
    border-radius: 18px !important;
}





.telegram-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}





.telegram-btn-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}





.special-telegram-btn {
    background: linear-gradient(135deg, #0088cc, #229ed9) !important;
    border: 2px solid rgba(34, 158, 217, 0.3) !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}





.special-telegram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}





.special-telegram-btn:hover::before {
    left: 100%;
}





.special-telegram-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4) !important;
    border-color: rgba(34, 158, 217, 0.6) !important;
}





.telegram-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}





.telegram-btn-title {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.2;
}





.special-telegram-btn:hover .telegram-btn-arrow {
    transform: translateX(3px);
}





.gaming-details-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    text-decoration: none;
}





.gaming-details-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}





.gaming-details-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.03);
}

.profile-action.payment {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.2);
}

.profile-action.payment:active {
    background: rgba(59, 130, 246, 0.05);
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.profile-actions>.profile-action {
    grid-column: span 1;
}

.profile-actions>.profile-action.kodari-id,
.profile-actions>.profile-action.update-credentials,
.profile-actions>.profile-action.telegram-bot,
.profile-actions>.profile-action.reviews,
.profile-actions>.profile-action.customization,
.profile-actions>.profile-action.clear-cache,
.profile-actions>.profile-action.logout {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .profile-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .profile-actions>.profile-action {
        grid-column: span 1 !important;
    }
}

@media (min-width: 1024px) {
    .profile-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .profile-actions>.profile-action {
        grid-column: span 1 !important;
    }

    .profile-actions>.profile-action.telegram-bot {
        grid-column: span 2 !important;
    }
}